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) 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 {
// ProjectID is the ID of your project to use when creating a cluster
ProjectID string
// The zone to launch the cluster
Zone string
// The IP address range of the container pods
ClusterIpv4Cidr string
// An optional description of this cluster
Description string
// The number of nodes to create in this cluster
NodeCount int64
// the kubernetes master version
MasterVersion string
// The authentication information for accessing the master
MasterAuth *raw.MasterAuth
// the kubernetes node version
NodeVersion string
// The name of this cluster
Name string
// Parameters used in creating the cluster's nodes
NodeConfig *raw.NodeConfig
// The path to the credential file(key.json)
CredentialPath string
// Enable alpha feature
EnableAlphaFeature bool
// NodePool id
NodePoolID string
}
Driver defines the struct of gke driver
func (*Driver) Get ¶
func (d *Driver) Get() (*generic.ClusterInfo, error)
Get implements driver interface
func (*Driver) GetDriverCreateOptions ¶
func (d *Driver) GetDriverCreateOptions() (*generic.DriverFlags, error)
GetDriverCreateOptions implements driver interface
func (*Driver) GetDriverUpdateOptions ¶
func (d *Driver) GetDriverUpdateOptions() (*generic.DriverFlags, error)
GetDriverUpdateOptions implements driver interface
func (*Driver) SetDriverOptions ¶
func (d *Driver) SetDriverOptions(driverOptions *generic.DriverOptions) error
SetDriverOptions implements driver interface
Click to show internal directories.
Click to hide internal directories.