Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { // WaitForCacheSync waits for the initial sync to be completed. Returns false if the cache // fails to sync. WaitForCacheSync func(context.Context) bool // contains filtered or unexported fields }
Backend is a hardware Backend backed by a Backend cluster that contains hardware resources.
func NewBackend ¶
NewBackend creates a new Backend instance. It launches a goroutine to perform synchronization between the cluster and internal caches. Consumers can wait for the initial sync using WaitForCachesync(). See k8s.io/Backend-go/tools/Backendcmd for constructing *rest.Config objects.
func (*Backend) GetEC2Instance ¶
GetEC2InstanceByIP satisfies ec2.Client.
func (*Backend) GetHackInstance ¶ added in v0.10.1
type Config ¶ added in v0.11.1
type Config struct { // Kubeconfig is a path to a valid kubeconfig file. When in-cluster defaults to the in-cluster // config. Optional. Kubeconfig string // APIServerAddress is the address of the kubernetes cluster (https://hostname:port). Optional. APIServerAddress string // Namespace restricts the scope of the backend such that Hardware objects are retrieved from // this namespace only. Optional. Namespace string // ClientConfig is a Kubernetes client config. If specified, it will be used instead of // constructing a client using the other configuration in this object. Optional. ClientConfig *rest.Config }
Config used by the NewBackend function family.
Click to show internal directories.
Click to hide internal directories.