matchbox

package
v0.0.0-...-c1738d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 (f *MatchboxCloud) AddNetworkAnnotation(clustername string, instance *cluster.Instance, network *cluster.Network) error

func (*MatchboxCloud) Archon

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 (*MatchboxCloud) PublicIP

type MatchboxInstanceOptions

type MatchboxInstanceOptions struct {
	Mac           string `k8s:"mac"`
	Selector      string `k8s:"selector"`
	UseProfile    string `k8s:"use-profile"`
	UseIgnition   string `k8s:"use-ignition"`
	ExtraBootArgs string `k8s:"extra-boot-args"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL