Documentation ¶
Index ¶
- type Cluster
- func (c *Cluster) Clients() (*kubeclients.KubeClients, error)
- func (c *Cluster) Create(ctx context.Context) error
- func (c *Cluster) Destroy(_ context.Context) error
- func (c *Cluster) Exists() (bool, error)
- func (c *Cluster) ExportLogs(path string) error
- func (c *Cluster) ID() string
- func (c *Cluster) Kubeconfig(internal bool) (string, error)
- func (c *Cluster) KubeconfigPath() (string, error)
- func (c *Cluster) LoadImageFromTar(filePath string) error
- func (c *Cluster) Name() string
- func (c *Cluster) Run(ctx context.Context) error
- type ClusterInitFn
- type ClusterInitializer
- type ClusterLoadObjectFromClientObject
- type ClusterLoadObjectsFromFiles
- type ClusterLoadObjectsFromFolders
- type ClusterLoadObjectsFromHTTP
- type ClusterOption
- type WithClientOptions
- type WithClusterConfig
- type WithClusterInitializers
- type WithContainerRuntime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Represents a KinD cluster.
func NewCluster ¶
func NewCluster(name string, opts ...ClusterOption) *Cluster
func (*Cluster) Clients ¶
func (c *Cluster) Clients() (*kubeclients.KubeClients, error)
func (*Cluster) ExportLogs ¶
func (*Cluster) KubeconfigPath ¶
func (*Cluster) LoadImageFromTar ¶
Load an image from a tar archive into the environment.
type ClusterInitFn ¶
Run a function with access to the cluster object. Can be used to directly interact with the cluster.
type ClusterInitializer ¶
type ClusterLoadObjectFromClientObject ¶
Creates the referenced Object and waits for it to be ready.
type ClusterLoadObjectsFromFiles ¶
type ClusterLoadObjectsFromFiles []string
Load objects from given file paths and applies them into the cluster.
type ClusterLoadObjectsFromFolders ¶
type ClusterLoadObjectsFromFolders []string
Load objects from given folder paths and applies them into the cluster.
type ClusterLoadObjectsFromHTTP ¶
type ClusterLoadObjectsFromHTTP []string
Load objects from the given http urls and applies them into the cluster.
type ClusterOption ¶
type ClusterOption interface {
ApplyToCluster(kc *Cluster)
}
type WithClientOptions ¶
type WithClientOptions []kubeclients.Option
func (WithClientOptions) ApplyToCluster ¶
func (opts WithClientOptions) ApplyToCluster(kc *Cluster)
type WithClusterConfig ¶
type WithClusterConfig kindv1alpha4.Cluster
func (WithClusterConfig) ApplyToCluster ¶
func (opts WithClusterConfig) ApplyToCluster(kc *Cluster)
type WithClusterInitializers ¶
type WithClusterInitializers []ClusterInitializer
func (WithClusterInitializers) ApplyToCluster ¶
func (opts WithClusterInitializers) ApplyToCluster(kc *Cluster)
type WithContainerRuntime ¶
type WithContainerRuntime kubeutils.ContainerRuntime
func (WithContainerRuntime) ApplyToCluster ¶
func (cr WithContainerRuntime) ApplyToCluster(kc *Cluster)
Click to show internal directories.
Click to hide internal directories.