Package cloud.google.com/go/container (v1.45.0)

Note: To get more information about this package, such as access to older versions, viewthis package on pkg.go.dev.

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)

typeClientstruct{// contains filtered or unexported fields}

Client is a Google Container Engine client, which may be used to manageclusters with a project. It must be constructed via NewClient.

func NewClient (deprecated)

funcNewClient(ctxcontext.Context,projectIDstring,opts...option.ClientOption)(*Client,error)

NewClient creates a new Google Container Engine client.

func (*Client) Cluster (deprecated)

func(c*Client)Cluster(ctxcontext.Context,zone,namestring)(*Resource,error)

Cluster returns metadata about the specified cluster.

func (*Client) Clusters (deprecated)

func(c*Client)Clusters(ctxcontext.Context,zonestring)([]*Resource,error)

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)

func(c*Client)DeleteCluster(ctxcontext.Context,zone,namestring)error

DeleteCluster deletes a cluster.

func (*Client) Operation (deprecated)

func(c*Client)Operation(ctxcontext.Context,zone,namestring)(*Op,error)

Operation returns an operation.

func (*Client) Operations (deprecated)

func(c*Client)Operations(ctxcontext.Context,zonestring)([]*Op,error)

Operations returns a list of operations from the specified zone.If no zone is specified, it looks up for all of the operationsthat are running under the user's project.

Op (deprecated)

typeOpstruct{// Name is the name of the operation.Namestring// Zone is the Google Compute Engine zone.Zonestring// This field is ignored. It was removed from the underlying container API in v1.TargetURLstring// Type is the operation type. It could be either be TypeCreate or TypeDelete.TypeType// Status is the current status of this operation. It could be either// OpDone or OpPending.StatusStatus}

Op represents a Google Container Engine API operation.

Resource (deprecated)

typeResourcestruct{// Name is the name of this cluster. The name must be unique// within this project and zone, and can be up to 40 characters.Namestring// Description is the description of the cluster. Optional.Descriptionstring// Zone is the Google Compute Engine zone in which the cluster resides.Zonestring// Status is the current status of the cluster. It could either be// StatusError, StatusProvisioning, StatusRunning or StatusStopping.StatusStatus// Num is the number of the nodes in this cluster resource.Numint64// 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.APIVersionstring// 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.Endpointstring// Username is the username to use when accessing the Kubernetes master endpoint.Usernamestring// Password is the password to use when accessing the Kubernetes master endpoint.Passwordstring// ContainerIPv4CIDR is the IP addresses of the container pods in// this cluster, in CIDR notation (e.g. 1.2.3.4/29).ContainerIPv4CIDRstring// 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.ServicesIPv4CIDRstring// 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.MachineTypestring// This field is ignored. It was removed from the underlying container API in v1.SourceImagestring// Created is the creation time of this cluster.Createdtime.Time}

Resource is a Google Container Engine cluster resource.

Status (deprecated)

typeStatusstring

Status is the current status of the operation or resource.

Type (deprecated)

typeTypestring

Type is the operation type.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.