- 0.117.0 (latest)
- 0.116.0
- 0.115.1
- 0.114.0
- 0.113.0
- 0.112.2
- 0.111.0
- 0.110.10
- 0.109.0
- 0.108.0
- 0.107.0
- 0.106.0
- 0.105.0
- 0.104.0
- 0.103.0
- 0.102.1
- 0.101.1
- 0.100.2
- 0.99.0
- 0.98.0
- 0.97.0
- 0.96.0
- 0.95.0
- 0.94.1
- 0.93.3
- 0.92.3
- 0.91.1
- 0.90.0
- 0.89.0
- 0.88.0
- 0.87.0
- 0.86.0
- 0.85.0
- 0.84.0
- 0.83.0
- 0.82.0
- 0.81.0
- 0.80.0
- 0.79.0
- 0.78.0
- 0.77.0
- 0.76.0
- 0.75.0
Package container contains a deprecated Google Container Engine client.
Deprecated: Use cloud.google.com/go/container/apiv1 instead.
Constants
TypeCreate, TypeDelete (deprecated)
const (
// TypeCreate describes that the operation is "create cluster".
TypeCreate = Type("createCluster")
// TypeDelete describes that the operation is "delete cluster".
TypeDelete = Type("deleteCluster")
)
StatusDone, StatusPending, StatusRunning, StatusError, StatusProvisioning, StatusStopping (deprecated)
const (
// StatusDone is a status indicating that the resource or operation is in done state.
StatusDone = Status("done")
// StatusPending is a status indicating that the resource or operation is in pending state.
StatusPending = Status("pending")
// StatusRunning is a status indicating that the resource or operation is in running state.
StatusRunning = Status("running")
// StatusError is a status indicating that the resource or operation is in error state.
StatusError = Status("error")
// StatusProvisioning is a status indicating that the resource or operation is in provisioning state.
StatusProvisioning = Status("provisioning")
// StatusStopping is a status indicating that the resource or operation is in stopping state.
StatusStopping = Status("stopping")
)
Client (deprecated)
type Client struct {
// contains filtered or unexported fields
}
Client is a Google Container Engine client, which may be used to manage clusters with a project. It must be constructed via NewClient.
func NewClient (deprecated)
NewClient creates a new Google Container Engine client.
func (*Client) Cluster (deprecated)
Cluster returns metadata about the specified cluster.
func (*Client) Clusters (deprecated)
Clusters returns a list of cluster resources from the specified zone. If no zone is specified, it returns all clusters under the user project.
func (*Client) DeleteCluster (deprecated)
DeleteCluster deletes a cluster.
func (*Client) Operation (deprecated)
Operation returns an operation.
func (*Client) Operations (deprecated)
Operations returns a list of operations from the specified zone. If no zone is specified, it looks up for all of the operations that are running under the user's project.
Op (deprecated)
type Op struct {
// Name is the name of the operation.
Name string
// Zone is the Google Compute Engine zone.
Zone string
// This field is ignored. It was removed from the underlying container API in v1.
TargetURL string
// Type is the operation type. It could be either be TypeCreate or TypeDelete.
Type Type
// Status is the current status of this operation. It could be either
// OpDone or OpPending.
Status Status
}
Op represents a Google Container Engine API operation.
Resource (deprecated)
type Resource struct {
// Name is the name of this cluster. The name must be unique
// within this project and zone, and can be up to 40 characters.
Name string
// Description is the description of the cluster. Optional.
Description string
// Zone is the Google Compute Engine zone in which the cluster resides.
Zone string
// Status is the current status of the cluster. It could either be
// StatusError, StatusProvisioning, StatusRunning or StatusStopping.
Status Status
// Num is the number of the nodes in this cluster resource.
Num int64
// APIVersion is the version of the Kubernetes master and kubelets running
// in this cluster. Allowed value is 0.4.2, or leave blank to
// pick up the latest stable release.
APIVersion string
// Endpoint is the IP address of this cluster's Kubernetes master.
// The endpoint can be accessed at https://username:password@endpoint/.
// See Username and Password fields for the username and password information.
Endpoint string
// Username is the username to use when accessing the Kubernetes master endpoint.
Username string
// Password is the password to use when accessing the Kubernetes master endpoint.
Password string
// ContainerIPv4CIDR is the IP addresses of the container pods in
// this cluster, in CIDR notation (e.g. 1.2.3.4/29).
ContainerIPv4CIDR string
// ServicesIPv4CIDR is the IP addresses of the Kubernetes services in this
// cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are
// always in the 10.0.0.0/16 range.
ServicesIPv4CIDR string
// MachineType is a Google Compute Engine machine type (e.g. n1-standard-1).
// If none set, the default type is used while creating a new cluster.
MachineType string
// This field is ignored. It was removed from the underlying container API in v1.
SourceImage string
// Created is the creation time of this cluster.
Created time.Time
}
Resource is a Google Container Engine cluster resource.
Status (deprecated)
type Status string
Status is the current status of the operation or resource.
Type (deprecated)
type Type string
Type is the operation type.