Documentation ¶
Index ¶
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) Get() (*generic.ClusterInfo, error)
- func (d *Driver) GetDriverCreateOptions() (*generic.DriverFlags, error)
- func (d *Driver) GetDriverUpdateOptions() (*generic.DriverFlags, error)
- func (d *Driver) PostCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) SetDriverOptions(driverOptions *generic.DriverOptions) error
- func (d *Driver) Update() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { // The string representation of Config Yaml ConfigYaml string // Kubernetes master endpoint Endpoint string // Root certificates RootCA string // Client certificates ClientCert string // Client key ClientKey string // Cluster info ClusterInfo generic.ClusterInfo }
Driver is the struct of rke driver
func (*Driver) Get ¶
func (d *Driver) Get() (*generic.ClusterInfo, error)
Get retrieve the cluster info by name
func (*Driver) GetDriverCreateOptions ¶
func (d *Driver) GetDriverCreateOptions() (*generic.DriverFlags, error)
GetDriverCreateOptions returns create flags for rke driver
func (*Driver) GetDriverUpdateOptions ¶
func (d *Driver) GetDriverUpdateOptions() (*generic.DriverFlags, error)
GetDriverUpdateOptions returns update flags for rke driver
func (*Driver) SetDriverOptions ¶
func (d *Driver) SetDriverOptions(driverOptions *generic.DriverOptions) error
SetDriverOptions sets the drivers options to rke driver
Click to show internal directories.
Click to hide internal directories.