Involved Source Filescluster_manager_client.go
Package container is an auto-generated package for the
Kubernetes Engine API.
Builds and manages container-based applications, powered by the open
source Kubernetes technology.
Use of Context
The ctx passed to NewClient is used for authentication requests and
for creating the underlying connection, but is not used for subsequent calls.
Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
For information about setting deadlines, reusing contexts, and more
please visit pkg.go.dev/cloud.google.com/go.
Package-Level Type Names (total 5, in which 3 are exported)
ClusterManagerClient is a client for interacting with Kubernetes Engine API.
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
The call options for this service.
The gRPC API client.
Connection pool of gRPC connections to the service.
flag to opt out of default deadlines via GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE
The x-goog-* metadata to be sent with each request.
CancelOperation cancels the specified operation.
Close closes the connection to the API service. The user should invoke this when
the client is no longer required.
CompleteIPRotation completes master IP rotation.
Connection returns a connection to the API service.
Deprecated.
CreateCluster creates a cluster, consisting of the specified number and type of Google
Compute Engine instances.
By default, the cluster is created in the project’s
default network (at https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
One firewall is added for the cluster. After cluster creation,
the Kubelet creates routes for each node to allow the containers
on that node to communicate with all other instances in the
cluster.
Finally, an entry is added to the project’s global metadata indicating
which CIDR range the cluster is using.
CreateNodePool creates a node pool for a cluster.
DeleteCluster deletes the cluster, including the Kubernetes endpoint and all worker
nodes.
Firewalls and routes that were configured during cluster creation
are also deleted.
Other Google Compute Engine resources that might be in use by the cluster,
such as load balancer resources, are not deleted if they weren’t present
when the cluster was initially created.
DeleteNodePool deletes a node pool from a cluster.
GetCluster gets the details of a specific cluster.
GetNodePool retrieves the requested node pool.
GetOperation gets the specified operation.
GetServerConfig returns configuration info about the Google Kubernetes Engine service.
ListClusters lists all clusters owned by a project in either the specified zone or all
zones.
ListNodePools lists the node pools for a cluster.
ListOperations lists all operations in a project in a specific zone or all zones.
ListUsableSubnetworks lists subnetworks that are usable for creating clusters in a project.
RollbackNodePoolUpgrade rolls back a previously Aborted or Failed NodePool upgrade.
This makes no changes if the last upgrade successfully completed.
SetAddonsConfig sets the addons for a specific cluster.
SetLabels sets labels on a cluster.
SetLegacyAbac enables or disables the ABAC authorization mechanism on a cluster.
SetLocations sets the locations for a specific cluster.
SetLoggingService sets the logging service for a specific cluster.
SetMaintenancePolicy sets the maintenance policy for a cluster.
SetMasterAuth sets master auth materials. Currently supports changing the admin password
or a specific cluster, either via password generation or explicitly setting
the password.
SetMonitoringService sets the monitoring service for a specific cluster.
SetNetworkPolicy enables or disables Network Policy for a cluster.
SetNodePoolAutoscaling sets the autoscaling settings for the specified node pool.
SetNodePoolManagement sets the NodeManagement options for a node pool.
SetNodePoolSize sets the size for a specific node pool.
StartIPRotation starts master IP rotation.
UpdateCluster updates the settings of a specific cluster.
UpdateMaster updates the master for a specific cluster.
UpdateNodePool updates the version and/or image type for the specified node pool.
setGoogleClientInfo sets the name and version of the application in
the `x-goog-api-client` header passed on each request. Intended for
use by Google-written clients.
*T : io.Closer
func NewClusterManagerClient(ctx context.Context, opts ...option.ClientOption) (*ClusterManagerClient, error)
UsableSubnetworkIterator manages a stream of *containerpb.UsableSubnetwork.
InternalFetch is for use by the Google Cloud Libraries only.
It is not part of the stable interface of this package.
InternalFetch returns results from a single call to the underlying RPC.
The number of results is no greater than pageSize.
If there are no more results, nextPageToken is empty and err is nil.
Response is the raw response for the current page.
It must be cast to the RPC response type.
Calling Next() or InternalFetch() updates this value.
items[]*containerpb.UsableSubnetworknextFuncfunc() errorpageInfo*iterator.PageInfo
Next returns the next result. Its second return value is iterator.Done if there are no more
results. Once Next returns Done, all subsequent calls will return Done.
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
(*T) bufLen() int(*T) takeBuf() interface{}
*T : google.golang.org/api/iterator.Pageable
func (*ClusterManagerClient).ListUsableSubnetworks(ctx context.Context, req *containerpb.ListUsableSubnetworksRequest, opts ...gax.CallOption) *UsableSubnetworkIterator
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.