Documentation
¶
Index ¶
- Constants
- func TagName(kind ResourceKind) string
- type ConfigEntry
- type ConfigFile
- type Container
- type GetContainersOptions
- type Image
- type Options
- type Platform
- func (p *Platform) GetContainers(ctx context.Context, options *GetContainersOptions) ([]Container, error)
- func (p *Platform) GetImage(ctx context.Context, nameOrID string) (*Image, error)
- func (p *Platform) GetVersion(ctx context.Context) (string, string, error)
- func (p *Platform) Graph(ctx context.Context) (*graph.Graph[platform.Node], error)
- type Resource
- type ResourceKind
Constants ¶
View Source
const ( ResourceKindContainer = "container" ResourceKindSwarmTask = "swarm/task" ResourceKindSwarmService = "swarm/service" ResourceKindSwarmNamespace = "swarm/namespace" ResourceKindComposeProject = "compose/project" ResourceKindComposeService = "compose/service" )
Variables ¶
This section is empty.
Functions ¶
func TagName ¶
func TagName(kind ResourceKind) string
Types ¶
type ConfigEntry ¶ added in v0.16.0
type ConfigFile ¶ added in v0.16.0
type ConfigFile struct { Auths map[string]ConfigEntry `json:"auths"` HttpHeaders map[string]string `json:"HttpHeaders,omitempty"` }
type Container ¶
type GetContainersOptions ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func NewPlatform ¶
func (*Platform) GetContainers ¶
func (*Platform) GetVersion ¶
type Resource ¶
type Resource interface { platform.Node Kind() ResourceKind Name() string String() string }
type ResourceKind ¶
type ResourceKind string
Click to show internal directories.
Click to hide internal directories.