Documentation
¶
Index ¶
- Constants
- type Config
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetSSHHostname() (string, error)
- func (d *Driver) GetSSHKeyPath() string
- func (d *Driver) GetSSHPort() (int, error)
- func (d *Driver) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) RunSSHCommandFromDriver() error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- func (d *Driver) Unpause() error
Constants ¶
const BaseImage = "gcr.io/k8s-minikube/kicbase:v0.0.2@sha256:8f531b90901721a7bd4e67ceffbbc7ee6c4292b0e6d1a9d6eb59f117d57bc4e9"
BaseImage is the base image is used to spin up kic containers created by kind.
const DefaultBindIPV4 = "127.0.0.1"
DefaultBindIPV4 is The default IP the container will bind to.
const DefaultPodCIDR = "10.244.0.0/16"
DefaultPodCIDR is The CIDR to be used for pods inside the node.
const OverlayImage = "kindest/kindnetd:0.5.3"
OverlayImage is the cni plugin used for overlay image, created by kind.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MachineName string // maps to the container name being created CPU int // Number of CPU cores assigned to the container Memory int // max memory in MB StorePath string // libmachine store path OCIBinary string // oci tool to use (docker, podman,...) ImageDigest string // image name with sha to use for the node Mounts []oci.Mount // mounts APIServerPort int // kubernetes api server port inside the container PortMappings []oci.PortMapping // container port mappings Envs map[string]string // key,value of environment variables passed to the node }
Config is configuration for the kic driver used by registry
type Driver ¶
type Driver struct { *drivers.BaseDriver *pkgdrivers.CommonDriver URL string NodeConfig Config OCIBinary string // docker,podman // contains filtered or unexported fields }
Driver represents a kic driver https://minikube.sigs.k8s.io/docs/reference/drivers/kic/
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns hostname for use with ssh
func (*Driver) GetSSHKeyPath ¶
GetSSHKeyPath returns the ssh key path
func (*Driver) GetSSHPort ¶
GetSSHPort returns port for use with ssh
func (*Driver) GetSSHUsername ¶
GetSSHUsername returns the ssh username
func (*Driver) RunSSHCommandFromDriver ¶
RunSSHCommandFromDriver implements direct ssh control to the driver