Documentation ¶
Index ¶
- Constants
- Variables
- type FakeInstance
- type MatchboxCloud
- func (f *MatchboxCloud) AddNetworkAnnotation(clustername string, instance *cluster.Instance, network *cluster.Network) error
- func (f *MatchboxCloud) Archon() (archoncloudprovider.ArchonInterface, bool)
- func (f *MatchboxCloud) EnsureInstance(clusterName string, instance *cluster.Instance) (*cluster.InstanceStatus, error)
- func (f *MatchboxCloud) EnsureInstanceDeleted(clusterName string, instance *cluster.Instance) error
- func (f *MatchboxCloud) EnsureNetwork(clusterName string, network *cluster.Network) (status *cluster.NetworkStatus, err error)
- func (f *MatchboxCloud) EnsureNetworkDeleted(clusterName string, network *cluster.Network) (err error)
- func (f *MatchboxCloud) GetInstance(clusterName string, instance *cluster.Instance) (*cluster.InstanceStatus, error)
- func (f *MatchboxCloud) ListInstances(clusterName string, network *cluster.Network, selector map[string]string) ([]string, []*cluster.InstanceStatus, error)
- func (f *MatchboxCloud) PrivateIP() (archoncloudprovider.PrivateIPInterface, bool)
- func (f *MatchboxCloud) PublicIP() (archoncloudprovider.PublicIPInterface, bool)
- type MatchboxInstanceOptions
Constants ¶
View Source
const ProviderName = "matchbox"
Variables ¶
View Source
var ( ErrorNotFound = fmt.Errorf("Instance is not found") MatchboxAnnotationPrefix = "matchbox." + cluster.AnnotationPrefix )
Functions ¶
This section is empty.
Types ¶
type FakeInstance ¶
type FakeInstance struct {
// contains filtered or unexported fields
}
type MatchboxCloud ¶
type MatchboxCloud struct { fake.FakeCloud FakeInstances map[string]FakeInstance // contains filtered or unexported fields }
MatchboxCloud is a test-double implementation of Interface, LoadBalancer, Instances, and Routes. It is useful for testing.
func (*MatchboxCloud) AddNetworkAnnotation ¶
func (*MatchboxCloud) Archon ¶
func (f *MatchboxCloud) Archon() (archoncloudprovider.ArchonInterface, bool)
func (*MatchboxCloud) EnsureInstance ¶
func (f *MatchboxCloud) EnsureInstance(clusterName string, instance *cluster.Instance) (*cluster.InstanceStatus, error)
EnsureLoadBalancer is a test-spy implementation of LoadBalancer.EnsureLoadBalancer. It adds an entry "create" into the internal method call record.
func (*MatchboxCloud) EnsureInstanceDeleted ¶
func (f *MatchboxCloud) EnsureInstanceDeleted(clusterName string, instance *cluster.Instance) error
EnsureLoadBalancerDeleted is a test-spy implementation of LoadBalancer.EnsureLoadBalancerDeleted. It adds an entry "delete" into the internal method call record.
func (*MatchboxCloud) EnsureNetwork ¶
func (f *MatchboxCloud) EnsureNetwork(clusterName string, network *cluster.Network) (status *cluster.NetworkStatus, err error)
func (*MatchboxCloud) EnsureNetworkDeleted ¶
func (f *MatchboxCloud) EnsureNetworkDeleted(clusterName string, network *cluster.Network) (err error)
func (*MatchboxCloud) GetInstance ¶
func (f *MatchboxCloud) GetInstance(clusterName string, instance *cluster.Instance) (*cluster.InstanceStatus, error)
GetLoadBalancer is a stub implementation of LoadBalancer.GetLoadBalancer.
func (*MatchboxCloud) ListInstances ¶
func (f *MatchboxCloud) ListInstances(clusterName string, network *cluster.Network, selector map[string]string) ([]string, []*cluster.InstanceStatus, error)
List is a test-spy implementation of Instances.List. It adds an entry "list" into the internal method call record.
func (*MatchboxCloud) PrivateIP ¶
func (f *MatchboxCloud) PrivateIP() (archoncloudprovider.PrivateIPInterface, bool)
func (*MatchboxCloud) PublicIP ¶
func (f *MatchboxCloud) PublicIP() (archoncloudprovider.PublicIPInterface, bool)
Click to show internal directories.
Click to hide internal directories.