Documentation ¶
Index ¶
- type Cache
- func (c *Cache) AddContainer(node *v1alpha1.Node)
- func (c *Cache) AddInstance(instance *v1alpha1.Instance) error
- func (c *Cache) AssumeInstance(instance *v1alpha1.Instance) error
- func (c *Cache) FinishBinding(instance *v1alpha1.Instance) error
- func (c *Cache) ForgetInstance(instance *v1alpha1.Instance) error
- func (c *Cache) IsAssumedInstance(instance *v1alpha1.Instance) (bool, error)
- func (c *Cache) RemoveContainer(node *v1alpha1.Node) error
- func (c *Cache) RemoveInstance(instance *v1alpha1.Instance) error
- func (c *Cache) Snapshot() *Snapshot
- func (c *Cache) Start(ctx context.Context) error
- func (c *Cache) UpdateContainer(_, newNode *v1alpha1.Node)
- func (c *Cache) UpdateInstance(oldInstance, newInstance *v1alpha1.Instance) error
- type CacheStrategy
- type ContainerInfo
- type InstanceInfo
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) AddContainer ¶
func (*Cache) IsAssumedInstance ¶
func (*Cache) UpdateContainer ¶
type CacheStrategy ¶
type CacheStrategy interface { Key(instance *v1alpha1.Instance) (types.UID, error) ContainerKey(instance *v1alpha1.Instance) string }
var DefaultCacheStrategy CacheStrategy = defaultCacheStrategy{}
type ContainerInfo ¶
type ContainerInfo struct {
// contains filtered or unexported fields
}
func (*ContainerInfo) Instances ¶
func (n *ContainerInfo) Instances() []*InstanceInfo
func (*ContainerInfo) Node ¶
func (n *ContainerInfo) Node() *v1alpha1.Node
func (*ContainerInfo) NumInstances ¶
func (n *ContainerInfo) NumInstances() int
type InstanceInfo ¶
type InstanceInfo struct {
// contains filtered or unexported fields
}
func (*InstanceInfo) Instance ¶
func (i *InstanceInfo) Instance() *v1alpha1.Instance
Click to show internal directories.
Click to hide internal directories.