Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterOptions ¶
type ClusterOptions struct { Project string Zone string Network string Subnet string DynamicSubnet bool CIDR string ServicesCIDR string SecurityGroup string DiskType string DiskSizeGB int32 }
ClusterOptions stores options to use when creating GKE clusters, eg. which gcloud project to use.
type ClusterProvider ¶
type ClusterProvider struct {
// contains filtered or unexported fields
}
ClusterProvider creates a new GKE cluster for each call to GetCluster.
func NewClusterProvider ¶
func NewClusterProvider(clusterOpts *ClusterOptions, opts ...option.ClientOption) (*ClusterProvider, error)
NewClusterProvider returns a new ClusterProvider that can create new GKE clusters.
func (*ClusterProvider) Close ¶
func (p *ClusterProvider) Close() error
Close closes the GKE client.
func (*ClusterProvider) GetCluster ¶
func (p *ClusterProvider) GetCluster(ctx context.Context, spec *experimentpb.ClusterSpec) (*cluster.Context, func(), error)
GetCluster returns a new GKE cluster that adheres to the given spec.
Click to show internal directories.
Click to hide internal directories.