Documentation ¶
Overview ¶
Package container provides access to the Google Container Engine API.
See https://cloud.google.com/container-engine/
Usage example:
import "google.golang.org/api/container/v1" ... containerService, err := container.New(oauthHttpClient)
Index ¶
- Constants
- type Cluster
- type ClusterUpdate
- type CreateClusterRequest
- type ListClustersResponse
- type ListOperationsResponse
- type MasterAuth
- type NodeConfig
- type Operation
- type ProjectsService
- type ProjectsZonesClustersCreateCall
- func (c *ProjectsZonesClustersCreateCall) Context(ctx context.Context) *ProjectsZonesClustersCreateCall
- func (c *ProjectsZonesClustersCreateCall) Do() (*Operation, error)
- func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall
- func (c *ProjectsZonesClustersCreateCall) QuotaUser(quotaUser string) *ProjectsZonesClustersCreateCall
- type ProjectsZonesClustersDeleteCall
- func (c *ProjectsZonesClustersDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersDeleteCall
- func (c *ProjectsZonesClustersDeleteCall) Do() (*Operation, error)
- func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall
- func (c *ProjectsZonesClustersDeleteCall) QuotaUser(quotaUser string) *ProjectsZonesClustersDeleteCall
- type ProjectsZonesClustersGetCall
- func (c *ProjectsZonesClustersGetCall) Context(ctx context.Context) *ProjectsZonesClustersGetCall
- func (c *ProjectsZonesClustersGetCall) Do() (*Cluster, error)
- func (c *ProjectsZonesClustersGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersGetCall
- func (c *ProjectsZonesClustersGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersGetCall
- func (c *ProjectsZonesClustersGetCall) QuotaUser(quotaUser string) *ProjectsZonesClustersGetCall
- type ProjectsZonesClustersListCall
- func (c *ProjectsZonesClustersListCall) Context(ctx context.Context) *ProjectsZonesClustersListCall
- func (c *ProjectsZonesClustersListCall) Do() (*ListClustersResponse, error)
- func (c *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall
- func (c *ProjectsZonesClustersListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersListCall
- func (c *ProjectsZonesClustersListCall) QuotaUser(quotaUser string) *ProjectsZonesClustersListCall
- type ProjectsZonesClustersService
- func (r *ProjectsZonesClustersService) Create(projectId string, zone string, createclusterrequest *CreateClusterRequest) *ProjectsZonesClustersCreateCall
- func (r *ProjectsZonesClustersService) Delete(projectId string, zone string, clusterId string) *ProjectsZonesClustersDeleteCall
- func (r *ProjectsZonesClustersService) Get(projectId string, zone string, clusterId string) *ProjectsZonesClustersGetCall
- func (r *ProjectsZonesClustersService) List(projectId string, zone string) *ProjectsZonesClustersListCall
- func (r *ProjectsZonesClustersService) Update(projectId string, zone string, clusterId string, ...) *ProjectsZonesClustersUpdateCall
- type ProjectsZonesClustersUpdateCall
- func (c *ProjectsZonesClustersUpdateCall) Context(ctx context.Context) *ProjectsZonesClustersUpdateCall
- func (c *ProjectsZonesClustersUpdateCall) Do() (*Operation, error)
- func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall
- func (c *ProjectsZonesClustersUpdateCall) QuotaUser(quotaUser string) *ProjectsZonesClustersUpdateCall
- type ProjectsZonesGetServerconfigCall
- func (c *ProjectsZonesGetServerconfigCall) Context(ctx context.Context) *ProjectsZonesGetServerconfigCall
- func (c *ProjectsZonesGetServerconfigCall) Do() (*ServerConfig, error)
- func (c *ProjectsZonesGetServerconfigCall) Fields(s ...googleapi.Field) *ProjectsZonesGetServerconfigCall
- func (c *ProjectsZonesGetServerconfigCall) IfNoneMatch(entityTag string) *ProjectsZonesGetServerconfigCall
- func (c *ProjectsZonesGetServerconfigCall) QuotaUser(quotaUser string) *ProjectsZonesGetServerconfigCall
- type ProjectsZonesOperationsGetCall
- func (c *ProjectsZonesOperationsGetCall) Context(ctx context.Context) *ProjectsZonesOperationsGetCall
- func (c *ProjectsZonesOperationsGetCall) Do() (*Operation, error)
- func (c *ProjectsZonesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsGetCall
- func (c *ProjectsZonesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsGetCall
- func (c *ProjectsZonesOperationsGetCall) QuotaUser(quotaUser string) *ProjectsZonesOperationsGetCall
- type ProjectsZonesOperationsListCall
- func (c *ProjectsZonesOperationsListCall) Context(ctx context.Context) *ProjectsZonesOperationsListCall
- func (c *ProjectsZonesOperationsListCall) Do() (*ListOperationsResponse, error)
- func (c *ProjectsZonesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsListCall
- func (c *ProjectsZonesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsListCall
- func (c *ProjectsZonesOperationsListCall) QuotaUser(quotaUser string) *ProjectsZonesOperationsListCall
- type ProjectsZonesOperationsService
- type ProjectsZonesService
- type ServerConfig
- type Service
- type UpdateClusterRequest
Constants ¶
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { // ClusterIpv4Cidr: The IP address range of the container pods in this // cluster, in // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) // notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically // chosen or specify a `/14` block in `10.0.0.0/8`. ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"` // CreateTime: [Output only] The time the cluster was created, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. CreateTime string `json:"createTime,omitempty"` // CurrentMasterVersion: [Output only] The current software version of // the master endpoint. CurrentMasterVersion string `json:"currentMasterVersion,omitempty"` // CurrentNodeVersion: [Output only] The current version of the node // software components. If they are currently at different versions // because they're in the process of being upgraded, this reflects the // minimum version of any of them. CurrentNodeVersion string `json:"currentNodeVersion,omitempty"` // Description: An optional description of this cluster. Description string `json:"description,omitempty"` // Endpoint: [Output only] The IP address of this cluster's Kubernetes // master endpoint. The endpoint can be accessed from the internet at // `https://username:password@endpoint/`. See the `masterAuth` property // of this resource for username and password information. Endpoint string `json:"endpoint,omitempty"` // InitialClusterVersion: [Output only] The software version of // Kubernetes master and kubelets used in the cluster when it was first // created. The version can be upgraded over time. InitialClusterVersion string `json:"initialClusterVersion,omitempty"` // InitialNodeCount: The number of nodes to create in this cluster. You // must ensure that your Compute Engine [resource // quota](/compute/docs/resource-quotas) is sufficient for this number // of instances. You must also have available firewall and routes quota. InitialNodeCount int64 `json:"initialNodeCount,omitempty"` // InstanceGroupUrls: [Output only] The resource URLs of [instance // groups](/compute/docs/instance-groups/) associated with this cluster. InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"` // LoggingService: The logging service that the cluster should write // logs to. Currently available options: * "logging.googleapis.com" - // the Google Cloud Logging service * "none" - no logs will be exported // from the cluster * "" - default value; the default is // "logging.googleapis.com" LoggingService string `json:"loggingService,omitempty"` // MasterAuth: The authentication information for accessing the master. MasterAuth *MasterAuth `json:"masterAuth,omitempty"` // MonitoringService: The monitoring service that the cluster should // write metrics to. Currently available options: * // "monitoring.googleapis.com" - the Google Cloud Monitoring service * // "none" - no metrics will be exported from the cluster * "" - default // value; the default is "monitoring.googleapis.com" MonitoringService string `json:"monitoringService,omitempty"` // Name: The name of this cluster. The name must be unique within this // project and zone, and can be up to 40 characters with the following // restrictions: * Lowercase letters, numbers, and hyphens only. * Must // start with a letter. * Must end with a number or a letter. Name string `json:"name,omitempty"` // Network: The name of the Google Compute Engine // [network](/compute/docs/networking#networks_1) to which the cluster // is connected. If left unspecified, the "default" network will be // used. Network string `json:"network,omitempty"` // NodeConfig: Parameters used in creating the cluster's nodes. See the // descriptions of the child properties of `nodeConfig`. If unspecified, // the defaults for all child properties are used. NodeConfig *NodeConfig `json:"nodeConfig,omitempty"` // NodeIpv4CidrSize: [Output only] The size of the address space on each // node for hosting containers. This is provisioned from within the // container_ipv4_cidr range. NodeIpv4CidrSize int64 `json:"nodeIpv4CidrSize,omitempty"` // SelfLink: [Output only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // ServicesIpv4Cidr: [Output only] The IP address range of the // Kubernetes services in this cluster, in // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) // notation (e.g. `1.2.3.4/29`). Service addresses are typically put in // the last /16 from the container CIDR. ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"` // Status: [Output only] The current status of this cluster. // // Possible values: // "STATUS_UNSPECIFIED" // "PROVISIONING" // "RUNNING" // "RECONCILING" // "STOPPING" // "ERROR" Status string `json:"status,omitempty"` // StatusMessage: [Output only] Additional information about the current // status of this cluster, if available. StatusMessage string `json:"statusMessage,omitempty"` // Zone: [Output only] The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster resides. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ClusterIpv4Cidr") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Cluster: A Google Container Engine cluster.
func (*Cluster) MarshalJSON ¶
type ClusterUpdate ¶
type ClusterUpdate struct { // DesiredNodeVersion: The Kubernetes version to change the nodes to // (typically an upgrade). Use "-" to upgrade to the latest version // supported by the server. DesiredNodeVersion string `json:"desiredNodeVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "DesiredNodeVersion") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ClusterUpdate: ClusterUpdate describes an update to the cluster.
func (*ClusterUpdate) MarshalJSON ¶
func (s *ClusterUpdate) MarshalJSON() ([]byte, error)
type CreateClusterRequest ¶
type CreateClusterRequest struct { // Cluster: A [cluster // resource](/container-engine/reference/rest/v1/projects.zones.clusters) Cluster *Cluster `json:"cluster,omitempty"` // ForceSendFields is a list of field names (e.g. "Cluster") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
CreateClusterRequest: CreateClusterRequest creates a cluster.
func (*CreateClusterRequest) MarshalJSON ¶
func (s *CreateClusterRequest) MarshalJSON() ([]byte, error)
type ListClustersResponse ¶
type ListClustersResponse struct { // Clusters: A list of clusters in the project in the specified zone, or // across all ones. Clusters []*Cluster `json:"clusters,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Clusters") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListClustersResponse: ListClustersResponse is the result of ListClustersRequest.
func (*ListClustersResponse) MarshalJSON ¶
func (s *ListClustersResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // Operations: A list of operations in the project in the specified // zone. Operations []*Operation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Operations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ListOperationsResponse: ListOperationsResponse is the result of ListOperationsRequest.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type MasterAuth ¶
type MasterAuth struct { // ClientCertificate: [Output only] Base64 encoded public certificate // used by clients to authenticate to the cluster endpoint. ClientCertificate string `json:"clientCertificate,omitempty"` // ClientKey: [Output only] Base64 encoded private key used by clients // to authenticate to the cluster endpoint. ClientKey string `json:"clientKey,omitempty"` // ClusterCaCertificate: [Output only] Base64 encoded public certificate // that is the root of trust for the cluster. ClusterCaCertificate string `json:"clusterCaCertificate,omitempty"` // Password: The password to use for HTTP basic authentication when // accessing the Kubernetes master endpoint. Because the master endpoint // is open to the internet, you should create a strong password. Password string `json:"password,omitempty"` // Username: The username to use for HTTP basic authentication when // accessing the Kubernetes master endpoint. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientCertificate") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
MasterAuth: The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates.
func (*MasterAuth) MarshalJSON ¶
func (s *MasterAuth) MarshalJSON() ([]byte, error)
type NodeConfig ¶
type NodeConfig struct { // DiskSizeGb: Size of the disk attached to each node, specified in GB. // The smallest allowed disk size is 10GB. If unspecified, the default // disk size is 100GB. DiskSizeGb int64 `json:"diskSizeGb,omitempty"` // MachineType: The name of a Google Compute Engine [machine // type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If // unspecified, the default machine type is `n1-standard-1`. MachineType string `json:"machineType,omitempty"` // OauthScopes: The set of Google API scopes to be made available on all // of the node VMs under the "default" service account. The following // scopes are recommended, but not required, and by default are not // included: * `https://www.googleapis.com/auth/compute` is required for // mounting persistent storage on your nodes. * // `https://www.googleapis.com/auth/devstorage.read_only` is required // for communicating with *gcr.io*. If unspecified, no scopes are added. OauthScopes []string `json:"oauthScopes,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
NodeConfig: Per-node parameters.
func (*NodeConfig) MarshalJSON ¶
func (s *NodeConfig) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Name: The server-assigned ID for the operation. Name string `json:"name,omitempty"` // OperationType: The operation type. // // Possible values: // "TYPE_UNSPECIFIED" // "CREATE_CLUSTER" // "DELETE_CLUSTER" // "UPGRADE_MASTER" // "UPGRADE_NODES" // "REPAIR_CLUSTER" OperationType string `json:"operationType,omitempty"` // SelfLink: Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: The current status of the operation. // // Possible values: // "STATUS_UNSPECIFIED" // "PENDING" // "RUNNING" // "DONE" Status string `json:"status,omitempty"` // StatusMessage: If an error has occurred, a textual description of the // error. StatusMessage string `json:"statusMessage,omitempty"` // TargetLink: Server-defined URL for the target of the operation. TargetLink string `json:"targetLink,omitempty"` // Zone: The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the operation is // taking place. Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Operation: Defines the operation resource. All fields are output only.
func (*Operation) MarshalJSON ¶
type ProjectsService ¶
type ProjectsService struct { Zones *ProjectsZonesService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ProjectsZonesClustersCreateCall ¶
type ProjectsZonesClustersCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersCreateCall) Context ¶
func (c *ProjectsZonesClustersCreateCall) Context(ctx context.Context) *ProjectsZonesClustersCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesClustersCreateCall) Do ¶
func (c *ProjectsZonesClustersCreateCall) Do() (*Operation, error)
Do executes the "container.projects.zones.clusters.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesClustersCreateCall) Fields ¶
func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesClustersCreateCall) QuotaUser ¶
func (c *ProjectsZonesClustersCreateCall) QuotaUser(quotaUser string) *ProjectsZonesClustersCreateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesClustersDeleteCall ¶
type ProjectsZonesClustersDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersDeleteCall) Context ¶
func (c *ProjectsZonesClustersDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesClustersDeleteCall) Do ¶
func (c *ProjectsZonesClustersDeleteCall) Do() (*Operation, error)
Do executes the "container.projects.zones.clusters.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesClustersDeleteCall) Fields ¶
func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesClustersDeleteCall) QuotaUser ¶
func (c *ProjectsZonesClustersDeleteCall) QuotaUser(quotaUser string) *ProjectsZonesClustersDeleteCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesClustersGetCall ¶
type ProjectsZonesClustersGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersGetCall) Context ¶
func (c *ProjectsZonesClustersGetCall) Context(ctx context.Context) *ProjectsZonesClustersGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesClustersGetCall) Do ¶
func (c *ProjectsZonesClustersGetCall) Do() (*Cluster, error)
Do executes the "container.projects.zones.clusters.get" call. Exactly one of *Cluster or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Cluster.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesClustersGetCall) Fields ¶
func (c *ProjectsZonesClustersGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesClustersGetCall) IfNoneMatch ¶
func (c *ProjectsZonesClustersGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsZonesClustersGetCall) QuotaUser ¶
func (c *ProjectsZonesClustersGetCall) QuotaUser(quotaUser string) *ProjectsZonesClustersGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesClustersListCall ¶
type ProjectsZonesClustersListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersListCall) Context ¶
func (c *ProjectsZonesClustersListCall) Context(ctx context.Context) *ProjectsZonesClustersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesClustersListCall) Do ¶
func (c *ProjectsZonesClustersListCall) Do() (*ListClustersResponse, error)
Do executes the "container.projects.zones.clusters.list" call. Exactly one of *ListClustersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClustersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesClustersListCall) Fields ¶
func (c *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesClustersListCall) IfNoneMatch ¶
func (c *ProjectsZonesClustersListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsZonesClustersListCall) QuotaUser ¶
func (c *ProjectsZonesClustersListCall) QuotaUser(quotaUser string) *ProjectsZonesClustersListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesClustersService ¶
type ProjectsZonesClustersService struct {
// contains filtered or unexported fields
}
func NewProjectsZonesClustersService ¶
func NewProjectsZonesClustersService(s *Service) *ProjectsZonesClustersService
func (*ProjectsZonesClustersService) Create ¶
func (r *ProjectsZonesClustersService) Create(projectId string, zone string, createclusterrequest *CreateClusterRequest) *ProjectsZonesClustersCreateCall
Create: Creates a cluster, consisting of the specified number and type of Google Compute Engine instances, plus a Kubernetes master endpoint. By default, the cluster is created in the project's [default network](/compute/docs/networking#networks_1). One firewall is added for the cluster. After cluster creation, the cluster 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 is being used by the cluster.
func (*ProjectsZonesClustersService) Delete ¶
func (r *ProjectsZonesClustersService) Delete(projectId string, zone string, clusterId string) *ProjectsZonesClustersDeleteCall
Delete: Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted.
func (*ProjectsZonesClustersService) Get ¶
func (r *ProjectsZonesClustersService) Get(projectId string, zone string, clusterId string) *ProjectsZonesClustersGetCall
Get: Gets a specific cluster.
func (*ProjectsZonesClustersService) List ¶
func (r *ProjectsZonesClustersService) List(projectId string, zone string) *ProjectsZonesClustersListCall
List: Lists all clusters owned by a project in either the specified zone or all zones.
func (*ProjectsZonesClustersService) Update ¶
func (r *ProjectsZonesClustersService) Update(projectId string, zone string, clusterId string, updateclusterrequest *UpdateClusterRequest) *ProjectsZonesClustersUpdateCall
Update: Update settings of a specific cluster.
type ProjectsZonesClustersUpdateCall ¶
type ProjectsZonesClustersUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersUpdateCall) Context ¶
func (c *ProjectsZonesClustersUpdateCall) Context(ctx context.Context) *ProjectsZonesClustersUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesClustersUpdateCall) Do ¶
func (c *ProjectsZonesClustersUpdateCall) Do() (*Operation, error)
Do executes the "container.projects.zones.clusters.update" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesClustersUpdateCall) Fields ¶
func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesClustersUpdateCall) QuotaUser ¶
func (c *ProjectsZonesClustersUpdateCall) QuotaUser(quotaUser string) *ProjectsZonesClustersUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesGetServerconfigCall ¶
type ProjectsZonesGetServerconfigCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesGetServerconfigCall) Context ¶
func (c *ProjectsZonesGetServerconfigCall) Context(ctx context.Context) *ProjectsZonesGetServerconfigCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesGetServerconfigCall) Do ¶
func (c *ProjectsZonesGetServerconfigCall) Do() (*ServerConfig, error)
Do executes the "container.projects.zones.getServerconfig" call. Exactly one of *ServerConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ServerConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesGetServerconfigCall) Fields ¶
func (c *ProjectsZonesGetServerconfigCall) Fields(s ...googleapi.Field) *ProjectsZonesGetServerconfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesGetServerconfigCall) IfNoneMatch ¶
func (c *ProjectsZonesGetServerconfigCall) IfNoneMatch(entityTag string) *ProjectsZonesGetServerconfigCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsZonesGetServerconfigCall) QuotaUser ¶
func (c *ProjectsZonesGetServerconfigCall) QuotaUser(quotaUser string) *ProjectsZonesGetServerconfigCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesOperationsGetCall ¶
type ProjectsZonesOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesOperationsGetCall) Context ¶
func (c *ProjectsZonesOperationsGetCall) Context(ctx context.Context) *ProjectsZonesOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesOperationsGetCall) Do ¶
func (c *ProjectsZonesOperationsGetCall) Do() (*Operation, error)
Do executes the "container.projects.zones.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesOperationsGetCall) Fields ¶
func (c *ProjectsZonesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsZonesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsZonesOperationsGetCall) QuotaUser ¶
func (c *ProjectsZonesOperationsGetCall) QuotaUser(quotaUser string) *ProjectsZonesOperationsGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesOperationsListCall ¶
type ProjectsZonesOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesOperationsListCall) Context ¶
func (c *ProjectsZonesOperationsListCall) Context(ctx context.Context) *ProjectsZonesOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsZonesOperationsListCall) Do ¶
func (c *ProjectsZonesOperationsListCall) Do() (*ListOperationsResponse, error)
Do executes the "container.projects.zones.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsZonesOperationsListCall) Fields ¶
func (c *ProjectsZonesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesOperationsListCall) IfNoneMatch ¶
func (c *ProjectsZonesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsZonesOperationsListCall) QuotaUser ¶
func (c *ProjectsZonesOperationsListCall) QuotaUser(quotaUser string) *ProjectsZonesOperationsListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
type ProjectsZonesOperationsService ¶
type ProjectsZonesOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsZonesOperationsService ¶
func NewProjectsZonesOperationsService(s *Service) *ProjectsZonesOperationsService
func (*ProjectsZonesOperationsService) Get ¶
func (r *ProjectsZonesOperationsService) Get(projectId string, zone string, operationId string) *ProjectsZonesOperationsGetCall
Get: Gets the specified operation.
func (*ProjectsZonesOperationsService) List ¶
func (r *ProjectsZonesOperationsService) List(projectId string, zone string) *ProjectsZonesOperationsListCall
List: Lists all operations in a project in a specific zone or all zones.
type ProjectsZonesService ¶
type ProjectsZonesService struct { Clusters *ProjectsZonesClustersService Operations *ProjectsZonesOperationsService // contains filtered or unexported fields }
func NewProjectsZonesService ¶
func NewProjectsZonesService(s *Service) *ProjectsZonesService
func (*ProjectsZonesService) GetServerconfig ¶
func (r *ProjectsZonesService) GetServerconfig(projectId string, zone string) *ProjectsZonesGetServerconfigCall
GetServerconfig: Returns configuration info about the Container Engine service.
type ServerConfig ¶
type ServerConfig struct { // DefaultClusterVersion: What version this server deploys by default. DefaultClusterVersion string `json:"defaultClusterVersion,omitempty"` // ValidNodeVersions: List of valid node upgrade target versions. ValidNodeVersions []string `json:"validNodeVersions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "DefaultClusterVersion") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
ServerConfig: Container Engine Server configuration.
func (*ServerConfig) MarshalJSON ¶
func (s *ServerConfig) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
type UpdateClusterRequest ¶
type UpdateClusterRequest struct { // Update: A description of the update. Update *ClusterUpdate `json:"update,omitempty"` // ForceSendFields is a list of field names (e.g. "Update") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
UpdateClusterRequest: UpdateClusterRequest updates a cluster.
func (*UpdateClusterRequest) MarshalJSON ¶
func (s *UpdateClusterRequest) MarshalJSON() ([]byte, error)