Documentation
¶
Index ¶
- func FillDefaults(cluster *api.Cluster)
- func ListTypeMeta() api.TypeMeta
- func NewDockerMachine(ctx context.Context, errOut io.Writer) (*dockerMachine, error)
- func TypeMeta() api.TypeMeta
- type Admin
- type Controller
- func (c *Controller) Apply(ctx context.Context, desired *api.Cluster) (*api.Cluster, error)
- func (c *Controller) Delete(ctx context.Context, name string) error
- func (c *Controller) Get(ctx context.Context, name string) (*api.Cluster, error)
- func (c *Controller) List(ctx context.Context, options ListOptions) (*api.ClusterList, error)
- type DockerForMacClient
- type HTTPClient
- type ListOptions
- type Machine
- type Product
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillDefaults ¶
func ListTypeMeta ¶
func NewDockerMachine ¶
Types ¶
type Admin ¶
type Admin interface { EnsureInstalled(ctx context.Context) error Create(ctx context.Context, desired *api.Cluster, registry *api.Registry) error LocalRegistryHosting(registry *api.Registry) *localregistry.LocalRegistryHostingV1 Delete(ctx context.Context, config *api.Cluster) error }
A cluster admin provides the basic start/stop functionality of a cluster, independent of the configuration of the machine it's running on.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func DefaultController ¶
func DefaultController(iostreams genericclioptions.IOStreams) (*Controller, error)
func (*Controller) Apply ¶
Compare the desired cluster against the existing cluster, and reconcile the two to match.
func (*Controller) List ¶
func (c *Controller) List(ctx context.Context, options ListOptions) (*api.ClusterList, error)
type DockerForMacClient ¶
type DockerForMacClient struct {
// contains filtered or unexported fields
}
Uses the DockerForMac GUI protocol to control DockerForMac.
There isn't an off-the-shelf library or documented protocol we can use for this, so we do the best we can.
func NewDockerForMacClient ¶
func NewDockerForMacClient() (DockerForMacClient, error)
type ListOptions ¶
type ListOptions struct {
FieldSelector string
}
type Product ¶
type Product string
Enum of possible values for ctlptl.dev Cluster.product
Named in honor of the product component of the user-agent string, which we hope isn't foreshadowing.
const ( ProductUnknown Product = "unknown" ProductGKE Product = "gke" ProductMinikube Product = "minikube" ProductDockerDesktop Product = "docker-desktop" ProductMicroK8s Product = "microk8s" ProductCRC Product = "crc" ProductKrucible Product = "krucible" ProductKIND Product = "kind" ProductK3D Product = "k3d" )
func (Product) DefaultClusterName ¶
func (Product) IsDevCluster ¶
func (Product) UsesLocalDockerRegistry ¶
Click to show internal directories.
Click to hide internal directories.