Documentation ¶
Index ¶
- func Harvest(client dockeradapter.Harvester, targetContainerID string) map[string]types.Capability
- type CapabilitiesRegistry
- func (c CapabilitiesRegistry) Add(capability interface{})
- func (c CapabilitiesRegistry) AttachedCapabilities() []types.AttachedCapability
- func (c CapabilitiesRegistry) Count() int
- func (c CapabilitiesRegistry) DescribeCapability(capabilityID string) (string, error)
- func (c CapabilitiesRegistry) DockerAPICapabilities() []dockeradapter.DockerAPICapability
- func (c CapabilitiesRegistry) TypesCount() int
- type IRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Harvest ¶
func Harvest(client dockeradapter.Harvester, targetContainerID string) map[string]types.Capability
Harvest gathers data registered capabilities with the specified harvest type
Types ¶
type CapabilitiesRegistry ¶
type CapabilitiesRegistry struct {
// contains filtered or unexported fields
}
CapabilitiesRegistry contains a record of each registered capability by type, Attached or Docker API
var Registry CapabilitiesRegistry
Registry provisioned capabilities
func (CapabilitiesRegistry) Add ¶
func (c CapabilitiesRegistry) Add(capability interface{})
Add registers a capability
func (CapabilitiesRegistry) AttachedCapabilities ¶
func (c CapabilitiesRegistry) AttachedCapabilities() []types.AttachedCapability
AttachedCapabilities returns a list of AttachedCapability types
func (CapabilitiesRegistry) Count ¶
func (c CapabilitiesRegistry) Count() int
Count returns the total number of registered capabilities
func (CapabilitiesRegistry) DescribeCapability ¶
func (c CapabilitiesRegistry) DescribeCapability(capabilityID string) (string, error)
DescribeCapability returns the description of a capability whose type is supplied
func (CapabilitiesRegistry) DockerAPICapabilities ¶
func (c CapabilitiesRegistry) DockerAPICapabilities() []dockeradapter.DockerAPICapability
DockerAPICapabilities returns a list of AttachedCapability types
func (CapabilitiesRegistry) TypesCount ¶
func (c CapabilitiesRegistry) TypesCount() int
TypesCount returns the number of registered types.
type IRegistry ¶
type IRegistry interface { AttachedCapabilities() []types.AttachedCapability DockerAPICapabilities() []dockeradapter.DockerAPICapability Count() int TypesCount() int DescribeCapability(capabilityID string) (string, error) }
IRegistry TODO
Click to show internal directories.
Click to hide internal directories.