Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Option) usagestat.UsageStatServiceServer
Types ¶
type Option ¶
type Option func(*cfg)
Option of the Server's constructor.
func WithAuthorizedKeys ¶
WithAuthorizedKeys returns option to add list of public keys that have rights to use Control service.
func WithContainerSource ¶
WithContainerSource returns option to set container storage.
func WithKey ¶
func WithKey(key *ecdsa.PrivateKey) Option
WithKey returns option to set private key used for signing responses.
func WithLocalStorage ¶
func WithLocalStorage(engine *engine.StorageEngine) Option
WithLocalStorage returns option to set local storage engine.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListContainers ¶
func (s *Server) ListContainers(ctx context.Context, req *usagestat.ListContainersRequest) (*usagestat.ListContainersResponse, error)
ListContainers collects container usage statistics. This method supports pagination. If the `ContainerId` field is not set in the request body, the response is likely to be paginated (if the resulting container list exceeds limit). Such response sets `NextPageToken` that should be used for next invocations.
Click to show internal directories.
Click to hide internal directories.