Documentation ¶
Overview ¶
Package container provides access to the Google Container Engine API.
See https://cloud.google.com/container-engine/
Usage example:
import "github.com/skelterjohn/gcloud_apis/clients/container/v1" ... containerService, err := container.New(oauthHttpClient)
Index ¶
- Constants
- type AddonsConfig
- type AuthenticateRequest
- type AuthenticateResponse
- type AuthorizeRequest
- type AuthorizeResponse
- type AutoUpgradeOptions
- type CancelOperationRequest
- type CertificateSigningRequest
- type CertificateSigningRequestCondition
- type CertificateSigningRequestSpec
- type CertificateSigningRequestStatus
- type Cluster
- type ClusterUpdate
- type CreateClusterRequest
- type CreateNodePoolRequest
- type CreateSignedUrlsRequest
- type CreateTokenRequest
- type Empty
- type ExtraValue
- type HorizontalPodAutoscaling
- type HttpLoadBalancing
- type ImageReviewContainerSpec
- type ImageReviewRequest
- type ImageReviewResponse
- type ImageReviewSpec
- type ImageReviewStatus
- type ListClustersResponse
- type ListNodePoolsResponse
- type ListOperationsResponse
- type MasterAuth
- type MasterProjectsService
- type MasterProjectsZonesAuthenticateCall
- func (c *MasterProjectsZonesAuthenticateCall) Context(ctx context.Context) *MasterProjectsZonesAuthenticateCall
- func (c *MasterProjectsZonesAuthenticateCall) Do(opts ...googleapi.CallOption) (*AuthenticateResponse, error)
- func (c *MasterProjectsZonesAuthenticateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesAuthenticateCall
- type MasterProjectsZonesAuthorizeCall
- func (c *MasterProjectsZonesAuthorizeCall) Context(ctx context.Context) *MasterProjectsZonesAuthorizeCall
- func (c *MasterProjectsZonesAuthorizeCall) Do(opts ...googleapi.CallOption) (*AuthorizeResponse, error)
- func (c *MasterProjectsZonesAuthorizeCall) Fields(s ...googleapi.Field) *MasterProjectsZonesAuthorizeCall
- type MasterProjectsZonesImagereviewCall
- func (c *MasterProjectsZonesImagereviewCall) Context(ctx context.Context) *MasterProjectsZonesImagereviewCall
- func (c *MasterProjectsZonesImagereviewCall) Do(opts ...googleapi.CallOption) (*ImageReviewResponse, error)
- func (c *MasterProjectsZonesImagereviewCall) Fields(s ...googleapi.Field) *MasterProjectsZonesImagereviewCall
- type MasterProjectsZonesService
- func (r *MasterProjectsZonesService) Authenticate(masterProjectId string, zone string, projectNumber int64, clusterId string, ...) *MasterProjectsZonesAuthenticateCall
- func (r *MasterProjectsZonesService) Authorize(masterProjectId string, zone string, projectNumber int64, clusterId string, ...) *MasterProjectsZonesAuthorizeCall
- func (r *MasterProjectsZonesService) Imagereview(masterProjectId string, zone string, projectNumber int64, clusterId string, ...) *MasterProjectsZonesImagereviewCall
- func (r *MasterProjectsZonesService) Signcertificate(masterProjectId string, zone string, projectNumber int64, clusterId string, ...) *MasterProjectsZonesSigncertificateCall
- type MasterProjectsZonesSigncertificateCall
- func (c *MasterProjectsZonesSigncertificateCall) Context(ctx context.Context) *MasterProjectsZonesSigncertificateCall
- func (c *MasterProjectsZonesSigncertificateCall) Do(opts ...googleapi.CallOption) (*CertificateSigningRequest, error)
- func (c *MasterProjectsZonesSigncertificateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesSigncertificateCall
- type MasterProjectsZonesSignedUrlsCreateCall
- func (c *MasterProjectsZonesSignedUrlsCreateCall) Context(ctx context.Context) *MasterProjectsZonesSignedUrlsCreateCall
- func (c *MasterProjectsZonesSignedUrlsCreateCall) Do(opts ...googleapi.CallOption) (*SignedUrls, error)
- func (c *MasterProjectsZonesSignedUrlsCreateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesSignedUrlsCreateCall
- type MasterProjectsZonesSignedUrlsService
- type MasterProjectsZonesTokensCreateCall
- func (c *MasterProjectsZonesTokensCreateCall) Context(ctx context.Context) *MasterProjectsZonesTokensCreateCall
- func (c *MasterProjectsZonesTokensCreateCall) Do(opts ...googleapi.CallOption) (*Token, error)
- func (c *MasterProjectsZonesTokensCreateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesTokensCreateCall
- type MasterProjectsZonesTokensService
- type NodeConfig
- type NodeManagement
- type NodePool
- type NodePoolAutoscaling
- type NonResourceAttributes
- type ObjectMeta
- type Operation
- type ProjectsService
- type ProjectsZonesClustersCreateCall
- func (c *ProjectsZonesClustersCreateCall) Context(ctx context.Context) *ProjectsZonesClustersCreateCall
- func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall
- type ProjectsZonesClustersDeleteCall
- func (c *ProjectsZonesClustersDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersDeleteCall
- func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall
- type ProjectsZonesClustersGetCall
- func (c *ProjectsZonesClustersGetCall) Context(ctx context.Context) *ProjectsZonesClustersGetCall
- func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error)
- func (c *ProjectsZonesClustersGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersGetCall
- func (c *ProjectsZonesClustersGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersGetCall
- type ProjectsZonesClustersListCall
- func (c *ProjectsZonesClustersListCall) Context(ctx context.Context) *ProjectsZonesClustersListCall
- func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error)
- func (c *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall
- func (c *ProjectsZonesClustersListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersListCall
- type ProjectsZonesClustersNodePoolsCreateCall
- func (c *ProjectsZonesClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsCreateCall
- func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall
- type ProjectsZonesClustersNodePoolsDeleteCall
- func (c *ProjectsZonesClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsDeleteCall
- func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsDeleteCall
- type ProjectsZonesClustersNodePoolsGetCall
- func (c *ProjectsZonesClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsGetCall
- func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error)
- func (c *ProjectsZonesClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsGetCall
- func (c *ProjectsZonesClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsGetCall
- type ProjectsZonesClustersNodePoolsListCall
- func (c *ProjectsZonesClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsListCall
- func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error)
- func (c *ProjectsZonesClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsListCall
- func (c *ProjectsZonesClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsListCall
- type ProjectsZonesClustersNodePoolsRollbackCall
- func (c *ProjectsZonesClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsRollbackCall
- func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsRollbackCall
- type ProjectsZonesClustersNodePoolsService
- func (r *ProjectsZonesClustersNodePoolsService) Create(projectId string, zone string, clusterId string, ...) *ProjectsZonesClustersNodePoolsCreateCall
- func (r *ProjectsZonesClustersNodePoolsService) Delete(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsDeleteCall
- func (r *ProjectsZonesClustersNodePoolsService) Get(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsGetCall
- func (r *ProjectsZonesClustersNodePoolsService) List(projectId string, zone string, clusterId string) *ProjectsZonesClustersNodePoolsListCall
- func (r *ProjectsZonesClustersNodePoolsService) Rollback(projectId string, zone string, clusterId string, nodePoolId string, ...) *ProjectsZonesClustersNodePoolsRollbackCall
- func (r *ProjectsZonesClustersNodePoolsService) SetManagement(projectId string, zone string, clusterId string, nodePoolId string, ...) *ProjectsZonesClustersNodePoolsSetManagementCall
- type ProjectsZonesClustersNodePoolsSetManagementCall
- func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsSetManagementCall
- func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetManagementCall
- 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(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall
- type ProjectsZonesGetServerconfigCall
- func (c *ProjectsZonesGetServerconfigCall) Context(ctx context.Context) *ProjectsZonesGetServerconfigCall
- func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*ServerConfig, error)
- func (c *ProjectsZonesGetServerconfigCall) Fields(s ...googleapi.Field) *ProjectsZonesGetServerconfigCall
- func (c *ProjectsZonesGetServerconfigCall) IfNoneMatch(entityTag string) *ProjectsZonesGetServerconfigCall
- type ProjectsZonesOperationsCancelCall
- func (c *ProjectsZonesOperationsCancelCall) Context(ctx context.Context) *ProjectsZonesOperationsCancelCall
- func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsZonesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsCancelCall
- type ProjectsZonesOperationsGetCall
- func (c *ProjectsZonesOperationsGetCall) Context(ctx context.Context) *ProjectsZonesOperationsGetCall
- func (c *ProjectsZonesOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsZonesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsGetCall
- func (c *ProjectsZonesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsGetCall
- type ProjectsZonesOperationsListCall
- func (c *ProjectsZonesOperationsListCall) Context(ctx context.Context) *ProjectsZonesOperationsListCall
- func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsZonesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsListCall
- func (c *ProjectsZonesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsZonesOperationsListCall
- type ProjectsZonesOperationsService
- func (r *ProjectsZonesOperationsService) Cancel(projectId string, zone string, operationId string, ...) *ProjectsZonesOperationsCancelCall
- func (r *ProjectsZonesOperationsService) Get(projectId string, zone string, operationId string) *ProjectsZonesOperationsGetCall
- func (r *ProjectsZonesOperationsService) List(projectId string, zone string) *ProjectsZonesOperationsListCall
- type ProjectsZonesService
- type ResourceAttributes
- type RollbackNodePoolUpgradeRequest
- type ServerConfig
- type Service
- type SetNodePoolManagementRequest
- type SignedUrls
- type SubjectAccessReviewSpec
- type SubjectAccessReviewStatus
- type Token
- type TokenReviewSpec
- type TokenReviewStatus
- type UpdateClusterRequest
- type UserInfo
Constants ¶
const ( // View and manage your data across Google Cloud Platform services CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // View your email address UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddonsConfig ¶
type AddonsConfig struct { // HorizontalPodAutoscaling: Configuration for the horizontal pod // autoscaling feature, which // increases or decreases the number of replica pods a replication // controller // has based on the resource usage of the existing pods. HorizontalPodAutoscaling *HorizontalPodAutoscaling `json:"horizontalPodAutoscaling,omitempty"` // HttpLoadBalancing: Configuration for the HTTP (L7) load balancing // controller addon, which // makes it easy to set up HTTP load balancers for services in a // cluster. HttpLoadBalancing *HttpLoadBalancing `json:"httpLoadBalancing,omitempty"` // ForceSendFields is a list of field names (e.g. // "HorizontalPodAutoscaling") 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:"-"` }
AddonsConfig: Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality.
func (*AddonsConfig) MarshalJSON ¶
func (s *AddonsConfig) MarshalJSON() ([]byte, error)
type AuthenticateRequest ¶
type AuthenticateRequest struct { // ApiVersion: The api version of the TokenReview object. ApiVersion string `json:"apiVersion,omitempty"` // Kind: Fields from // "pkg/apis/authentication.k8s.io/v1beta1".TokenReview: // // The "kind" of the TokenReview object. Kind string `json:"kind,omitempty"` // Metadata: "pkg/api/types".ObjectMeta // TODO (b/30563544): Remove these unused fields. Metadata *ObjectMeta `json:"metadata,omitempty"` // Spec: The information about the request being evaluated. It contains // the token // that the server should authenticate. Spec *TokenReviewSpec `json:"spec,omitempty"` // Status: The response for the provided request. (this won't be filled // in for an // AuthenticateRequest, but it is part of the struct, so we need it here // to be // safe). Status *TokenReviewStatus `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") 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:"-"` }
AuthenticateRequest: A request to authenticate a user based on a provided OAuth2 token.
This should look very close to the TokenReview struct in http://github.com/kubernetes/kubernetes/blob/master/pkg/apis/authen tication.k8s.io/v1beta1/types.go. This message has 4 GKE-specific fields that get mapped from the path, but the other fields (the expected JSON payload) must match TokenReview.
func (*AuthenticateRequest) MarshalJSON ¶
func (s *AuthenticateRequest) MarshalJSON() ([]byte, error)
type AuthenticateResponse ¶
type AuthenticateResponse struct { // ApiVersion: The api version of the TokenReview object. ApiVersion string `json:"apiVersion,omitempty"` // Kind: The "kind" of the TokenReview object. Kind string `json:"kind,omitempty"` // Spec: The information about the request that was evaluated. // This field (along with kind & api_version) are returned unchanged // from the // AuthenticateRequest. The caller probably doesn't care, but it would // allow // the caller to verify the question the server thought it was // answering. Spec *TokenReviewSpec `json:"spec,omitempty"` // Status: The response for the provided request. Status *TokenReviewStatus `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ApiVersion") 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:"-"` }
AuthenticateResponse: A response with the authenticated identity. This should match exactly with the TokenReview struct from http://github.com/kubernetes/kubernetes/blob/master/pkg/apis/auth entication.k8s.io/types.go.
func (*AuthenticateResponse) MarshalJSON ¶
func (s *AuthenticateResponse) MarshalJSON() ([]byte, error)
type AuthorizeRequest ¶
type AuthorizeRequest struct { // ApiVersion: The api version of the SubjectAccessReview object. ApiVersion string `json:"apiVersion,omitempty"` // Kind: Fields from // "pkg/apis/authorization/v1beta1".SubjectAccessReview: // // The "kind" of the SubjectAccessReview object. Kind string `json:"kind,omitempty"` // Metadata: Fields from "pkg/api/types".ObjectMeta // TODO (b/30563544): Remove these unused fields. Metadata *ObjectMeta `json:"metadata,omitempty"` // Spec: The information about the user action being evaluated. Spec *SubjectAccessReviewSpec `json:"spec,omitempty"` // Status: The response for the provided request (this won't be filled // in for an // AuthorizeRequest, but it is part of the struct, so we need it here to // be // safe). Status *SubjectAccessReviewStatus `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") 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:"-"` }
AuthorizeRequest: A request to authorize a user action. The request contains the attributes of the action the user is attempting. These attributes are mapped to a GKE IAM permission and policy to check.
This should look very close to the SubjectAccessReview struct in http://github.com/kubernetes/kubernetes/blob/master/pkg/apis/author ization/v1beta1/types.go. This message has 4 GKE-specific fields that get mapped from the path, but the other fields (the expected JSON payload) must match SubjectAccessReview.
func (*AuthorizeRequest) MarshalJSON ¶
func (s *AuthorizeRequest) MarshalJSON() ([]byte, error)
type AuthorizeResponse ¶
type AuthorizeResponse struct { // ApiVersion: The api version of the SubjectAccessReview object. ApiVersion string `json:"apiVersion,omitempty"` // Kind: The "kind" of the SubjectAccessReview object. Kind string `json:"kind,omitempty"` // Spec: The information about the request that was evaluated. // This field (along with kind & api_version) are returned unchanged // from the // AuthorizeRequest. The caller probably doesn't care, but it would // allow the // caller to verify the question the server thought it was answering. Spec *SubjectAccessReviewSpec `json:"spec,omitempty"` // Status: The response for the provided request. Status *SubjectAccessReviewStatus `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ApiVersion") 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:"-"` }
AuthorizeResponse: A response to a request for authorization. This should match exactly with the SubjectAccessReview struct from http://github.com/kubernetes/kubernetes/blob/master/pkg/apis/v1be ta1/authorization/types.go.
func (*AuthorizeResponse) MarshalJSON ¶
func (s *AuthorizeResponse) MarshalJSON() ([]byte, error)
type AutoUpgradeOptions ¶
type AutoUpgradeOptions struct { // AutoUpgradeStartTime: [Output only] This field is set when upgrades // are about to commence // with the approximate start time for the upgrades, // in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. AutoUpgradeStartTime string `json:"autoUpgradeStartTime,omitempty"` // Description: [Output only] This field is set when upgrades are about // to commence // with the description of the upgrade. Description string `json:"description,omitempty"` // RequestedUpgradeStartTime: User requested start time, // in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. RequestedUpgradeStartTime string `json:"requestedUpgradeStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. // "AutoUpgradeStartTime") 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:"-"` }
AutoUpgradeOptions: AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed.
func (*AutoUpgradeOptions) MarshalJSON ¶
func (s *AutoUpgradeOptions) MarshalJSON() ([]byte, error)
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: CancelOperationRequest cancels a single operation.
type CertificateSigningRequest ¶
type CertificateSigningRequest struct { // ApiVersion: The api version of the CertificateSigningRequest object. ApiVersion string `json:"apiVersion,omitempty"` // ClusterId: The name of this master's cluster. ClusterId string `json:"clusterId,omitempty"` // Kind: The "kind" of the CertificateSigningRequest object. Kind string `json:"kind,omitempty"` // MasterProjectId: The hosted master project in which this master // resides. This can be // either a [project ID or // project // number](https://support.google.com/cloud/answer/6158840). MasterProjectId string `json:"masterProjectId,omitempty"` // Metadata: Additional metadata about the Kubernetes object. Metadata *ObjectMeta `json:"metadata,omitempty"` // ProjectNumber: The project number for which the certificate is being // signed. This is the // project in which this master's cluster resides. // // This is an int64, so it must be a project number, not a project ID. ProjectNumber int64 `json:"projectNumber,omitempty,string"` // Spec: The specification holds information about the certificate // requesting to be // signed. Spec *CertificateSigningRequestSpec `json:"spec,omitempty"` // Status: The status is populated at response time, and holds // information about the // success or failure of the operation along with the signed // certificate. Status *CertificateSigningRequestStatus `json:"status,omitempty"` // Zone: The zone of this master's cluster. 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. "ApiVersion") 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:"-"` }
CertificateSigningRequest: A request to sign a certificate. These fields must match the OSS definition in "pkg/apis/certificates/v1beta1", with additional fields prepending as part of the "SignCertificate" rpc definition.
func (*CertificateSigningRequest) MarshalJSON ¶
func (s *CertificateSigningRequest) MarshalJSON() ([]byte, error)
type CertificateSigningRequestCondition ¶
type CertificateSigningRequestCondition struct { // LastUpdateTime: The timestamp of the last update to this condition. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // Message: A human-readable message with details about the request // state. Message string `json:"message,omitempty"` // Reason: A brief reason for the request state. Reason string `json:"reason,omitempty"` // Type: The request approval state, currently either Approved or // Denied. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "LastUpdateTime") 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:"-"` }
CertificateSigningRequestCondition: A detailed condition of the state of the certificate signing request, such as whether it has been approved or denied. This must match the OSS definition in "pkg/apis/certificates/v1beta1".
func (*CertificateSigningRequestCondition) MarshalJSON ¶
func (s *CertificateSigningRequestCondition) MarshalJSON() ([]byte, error)
type CertificateSigningRequestSpec ¶
type CertificateSigningRequestSpec struct { // Groups: An optional list of groups for this request. Groups []string `json:"groups,omitempty"` // Request: The PEM-encoded body of the certificate. Request string `json:"request,omitempty"` // Uid: An optional UID for the CSR object. Uid string `json:"uid,omitempty"` // Usages: Allowed usages that the certificate will be valid for. // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 // https://tools.ietf.org/html/rfc5280#section-4.2.1.12 Usages []string `json:"usages,omitempty"` // Username: Information about the requesting user (if relevant). Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "Groups") 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:"-"` }
CertificateSigningRequestSpec: The specification for a certificate to be signed. This must match the OSS definition in "pkg/apis/certificates/v1beta1".
func (*CertificateSigningRequestSpec) MarshalJSON ¶
func (s *CertificateSigningRequestSpec) MarshalJSON() ([]byte, error)
type CertificateSigningRequestStatus ¶
type CertificateSigningRequestStatus struct { // Certificate: The bytes of the signed certificate, on success. Certificate string `json:"certificate,omitempty"` // Conditions: Conditions applied to the request, such as approval or // denial. Conditions []*CertificateSigningRequestCondition `json:"conditions,omitempty"` // ForceSendFields is a list of field names (e.g. "Certificate") 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:"-"` }
CertificateSigningRequestStatus: The status of the certificate signing request, populated at response time. This must match the OSS definition in "pkg/apis/certificates/v1beta1".
func (*CertificateSigningRequestStatus) MarshalJSON ¶
func (s *CertificateSigningRequestStatus) MarshalJSON() ([]byte, error)
type Cluster ¶
type Cluster struct { // AddonsConfig: Configurations for the various addons available to run // in the cluster. AddonsConfig *AddonsConfig `json:"addonsConfig,omitempty"` // 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"` // CurrentNodeCount: [Output only] The number of nodes currently in the // cluster. CurrentNodeCount int64 `json:"currentNodeCount,omitempty"` // CurrentNodeVersion: [Output only] The current version of the node // software components. // If they are currently at multiple versions because they're in the // process // of being upgraded, this reflects the minimum version of all nodes. CurrentNodeVersion string `json:"currentNodeVersion,omitempty"` // Description: An optional description of this cluster. Description string `json:"description,omitempty"` // EnableKubernetesAlpha: Kubernetes alpha features are enabled on this // cluster. This includes alpha // API groups (e.g. v1alpha1) and features that may not be production // ready in // the kubernetes version of the master and nodes. // The cluster has no SLA for uptime and master/node upgrades are // disabled. // Alpha enabled clusters are automatically deleted thirty days // after // creation. EnableKubernetesAlpha bool `json:"enableKubernetesAlpha,omitempty"` // Endpoint: [Output only] The IP address of this cluster's 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"` // ExpireTime: [Output only] The time the cluster will be // automatically // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text // format. ExpireTime string `json:"expireTime,omitempty"` // InitialClusterVersion: [Output only] The software version of the // master endpoint 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 <a href="/compute/docs/resource-quotas">resource // quota</a> // is sufficient for this number of instances. You must also have // available // firewall and routes quota. // For requests, this field should only be used in lieu of a // "node_pool" object, since this configuration (along with // the // "node_config") will be used to create a "NodePool" object with // an // auto-generated name. Do not use this and a node_pool at the same // time. 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"` // Locations: The list of Google Compute // Engine // [locations](/compute/docs/zones#available) in which the cluster's // nodes // should be located. Locations []string `json:"locations,omitempty"` // LoggingService: The logging service the cluster should use to write // logs. // Currently available options: // // * `logging.googleapis.com` - the Google Cloud Logging service. // * `none` - no logs will be exported from the cluster. // * if left as an empty string,`logging.googleapis.com` will be used. LoggingService string `json:"loggingService,omitempty"` // MasterAuth: The authentication information for accessing the master // endpoint. MasterAuth *MasterAuth `json:"masterAuth,omitempty"` // MonitoringService: The monitoring service the cluster should use to // write metrics. // Currently available options: // // * `monitoring.googleapis.com` - the Google Cloud Monitoring // service. // * `none` - no metrics will be exported from the cluster. // * if left as an empty string, `monitoring.googleapis.com` will be // used. 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/networks-and-firewalls#networks) 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 `nodeConfig` for the description of its properties. // For requests, this field should only be used in lieu of a // "node_pool" object, since this configuration (along with // the // "initial_node_count") will be used to create a "NodePool" object with // an // auto-generated name. Do not use this and a node_pool at the same // time. // For responses, this field will be populated with the node // configuration of // the first node pool. // // If unspecified, the defaults 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"` // NodePools: The node pools associated with this cluster. // This field should not be set if "node_config" or "initial_node_count" // are // specified. NodePools []*NodePool `json:"nodePools,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" - Not set. // "PROVISIONING" - The PROVISIONING state indicates the cluster is // being created. // "RUNNING" - The RUNNING state indicates the cluster has been // created and is fully // usable. // "RECONCILING" - The RECONCILING state indicates that some work is // actively being done on // the cluster, such as upgrading the master or node software. Details // can // be found in the `statusMessage` field. // "STOPPING" - The STOPPING state indicates the cluster is being // deleted. // "ERROR" - The ERROR state indicates the cluster may be unusable. // Details // can be found in the `statusMessage` field. Status string `json:"status,omitempty"` // StatusMessage: [Output only] Additional information about the current // status of this // cluster, if available. StatusMessage string `json:"statusMessage,omitempty"` // Subnetwork: The name of the Google Compute // Engine // [subnetwork](/compute/docs/subnetworks) to which the // cluster is connected. Subnetwork string `json:"subnetwork,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. "AddonsConfig") 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 { // DesiredAddonsConfig: Configurations for the various addons available // to run in the cluster. DesiredAddonsConfig *AddonsConfig `json:"desiredAddonsConfig,omitempty"` // DesiredImageType: The desired image type for the node pool. // NOTE: Set the "desired_node_pool" field as well. DesiredImageType string `json:"desiredImageType,omitempty"` // DesiredLocations: The desired list of Google Compute // Engine // [locations](/compute/docs/zones#available) in which the cluster's // nodes // should be located. Changing the locations a cluster is in will // result // in nodes being either created or removed from the cluster, depending // on // whether locations are being added or removed. // // This list must always include the cluster's primary zone. DesiredLocations []string `json:"desiredLocations,omitempty"` // DesiredMasterMachineType: The name of a Google Compute Engine // [machine // type](/compute/docs/machine-types) // (e.g. `n1-standard-8`) to change the master to. DesiredMasterMachineType string `json:"desiredMasterMachineType,omitempty"` // DesiredMasterVersion: The Kubernetes version to change the master to. // The only valid value is the // latest supported version. Use "-" to have the server automatically // select // the latest version. DesiredMasterVersion string `json:"desiredMasterVersion,omitempty"` // DesiredMonitoringService: The monitoring service the cluster should // use to write metrics. // Currently available options: // // * "monitoring.googleapis.com" - the Google Cloud Monitoring service // * "none" - no metrics will be exported from the cluster DesiredMonitoringService string `json:"desiredMonitoringService,omitempty"` // DesiredNodePoolAutoscaling: Autoscaler configuration for the node // pool specified in // desired_node_pool_id. If there is only one pool in the // cluster and desired_node_pool_id is not provided then // the change applies to that single node pool. DesiredNodePoolAutoscaling *NodePoolAutoscaling `json:"desiredNodePoolAutoscaling,omitempty"` // DesiredNodePoolId: The node pool to be upgraded. This field is // mandatory if // "desired_node_version", "desired_image_family" // or // "desired_node_pool_autoscaling" is specified and there is more than // one // node pool on the cluster. DesiredNodePoolId string `json:"desiredNodePoolId,omitempty"` // 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. "DesiredAddonsConfig") // 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. Exactly one update can be applied to a cluster with each request, so at most one field can be provided.
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 CreateNodePoolRequest ¶
type CreateNodePoolRequest struct { // NodePool: The node pool to create. NodePool *NodePool `json:"nodePool,omitempty"` // ForceSendFields is a list of field names (e.g. "NodePool") 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:"-"` }
CreateNodePoolRequest: CreateNodePoolRequest creates a node pool for a cluster.
func (*CreateNodePoolRequest) MarshalJSON ¶
func (s *CreateNodePoolRequest) MarshalJSON() ([]byte, error)
type CreateSignedUrlsRequest ¶
type CreateSignedUrlsRequest struct { // ClusterId: The name of this master's cluster. ClusterId string `json:"clusterId,omitempty"` // Filenames: The names of the files for which a signed URLs are being // requested. Filenames []string `json:"filenames,omitempty"` // ProjectNumber: The project number for which the signed URLs are being // requested. This is // the project in which this master's cluster resides. // // Note that this must be a project number, not a project ID. ProjectNumber int64 `json:"projectNumber,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ClusterId") 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:"-"` }
CreateSignedUrlsRequest: A request for signed URLs that allow for writing a file to a private GCS bucket for storing backups of hosted master data.
func (*CreateSignedUrlsRequest) MarshalJSON ¶
func (s *CreateSignedUrlsRequest) MarshalJSON() ([]byte, error)
type CreateTokenRequest ¶
type CreateTokenRequest struct { // ClusterId: The name of this master's cluster. ClusterId string `json:"clusterId,omitempty"` // ProjectNumber: The project number for which the access is being // requested. This is the // project in which this master's cluster resides. // // Note that this must be a project number, not a project ID. ProjectNumber int64 `json:"projectNumber,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ClusterId") 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:"-"` }
CreateTokenRequest: A request for a compute-read-write (https://www.googleapis.com/auth/compute) scoped OAuth2 access token for <project_number>, to allow hosted masters to make modifications to a user's project.
func (*CreateTokenRequest) MarshalJSON ¶
func (s *CreateTokenRequest) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty);
}
The JSON representation for `Empty` is empty JSON object `{}`.
type ExtraValue ¶
type ExtraValue struct { // Items: items, if empty, will result in an empty slice Items []string `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") 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:"-"` }
ExtraValue: ExtraValue allows the extra field to be a mapstringstring
func (*ExtraValue) MarshalJSON ¶
func (s *ExtraValue) MarshalJSON() ([]byte, error)
type HorizontalPodAutoscaling ¶
type HorizontalPodAutoscaling struct { // Disabled: Whether the Horizontal Pod Autoscaling feature is enabled // in the cluster. // When enabled, it ensures that a Heapster pod is running in the // cluster, // which is also used by the Cloud Monitoring service. Disabled bool `json:"disabled,omitempty"` // ForceSendFields is a list of field names (e.g. "Disabled") 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:"-"` }
HorizontalPodAutoscaling: Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
func (*HorizontalPodAutoscaling) MarshalJSON ¶
func (s *HorizontalPodAutoscaling) MarshalJSON() ([]byte, error)
type HttpLoadBalancing ¶
type HttpLoadBalancing struct { // Disabled: Whether the HTTP Load Balancing controller is enabled in // the cluster. // When enabled, it runs a small pod in the cluster that manages the // load // balancers. Disabled bool `json:"disabled,omitempty"` // ForceSendFields is a list of field names (e.g. "Disabled") 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:"-"` }
HttpLoadBalancing: Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
func (*HttpLoadBalancing) MarshalJSON ¶
func (s *HttpLoadBalancing) MarshalJSON() ([]byte, error)
type ImageReviewContainerSpec ¶
type ImageReviewContainerSpec struct { // Image: This can be in the form image:tag or // image@SHA:012345679abcdef. Image string `json:"image,omitempty"` // ForceSendFields is a list of field names (e.g. "Image") 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:"-"` }
ImageReviewContainerSpec: ImageReviewContainerSpec is a description of a container within the creation request.
func (*ImageReviewContainerSpec) MarshalJSON ¶
func (s *ImageReviewContainerSpec) MarshalJSON() ([]byte, error)
type ImageReviewRequest ¶
type ImageReviewRequest struct { // ApiVersion: The api version of the SubjectAccessReview object. ApiVersion string `json:"apiVersion,omitempty"` // Kind: Fields from // "pkg/apis/authorization/v1beta1".SubjectAccessReview: // // The "kind" of the SubjectAccessReview object. Kind string `json:"kind,omitempty"` // Metadata: Fields from "pkg/api/types".ObjectMeta // TODO (b/30563544): Remove these unused fields. Metadata *ObjectMeta `json:"metadata,omitempty"` // Spec: The information about the user action being evaluated. Spec *ImageReviewSpec `json:"spec,omitempty"` // Status: The response for the provided request (this won't be filled // in for an // AuthorizeRequest, but it is part of the struct, so we need it here to // be // safe). Status *ImageReviewStatus `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") 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:"-"` }
ImageReviewRequest: A request to verify an image. The request contains the attributes of the container to create. These are passed to BCID for verification.
This should look very close to the ImageReview struct in http://github.com/kubernetes/kubernetes/blob/master/pkg/apis/imagep olicy/v1beta1/types.go. This message has 4 GKE-specific fields that get mapped from the path, but the other fields (the expected JSON payload) must match ImageReview.
func (*ImageReviewRequest) MarshalJSON ¶
func (s *ImageReviewRequest) MarshalJSON() ([]byte, error)
type ImageReviewResponse ¶
type ImageReviewResponse struct { // ApiVersion: The api version of the ImageReview object. ApiVersion string `json:"apiVersion,omitempty"` // Kind: The "kind" of the ImageReview object. Kind string `json:"kind,omitempty"` // Spec: The information about the request that was evaluated. // This field (along with kind & api_version) are returned unchanged // from the // ImageReviewRequest. The caller probably doesn't care, but it would // allow the // caller to verify the question the server thought it was answering. Spec *ImageReviewSpec `json:"spec,omitempty"` // Status: The response for the provided request. Status *ImageReviewStatus `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ApiVersion") 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:"-"` }
ImageReviewResponse: A response to a request for image verification. This should match exactly with the ImageReview struct from http://github.com/kubernetes/kubernetes/blob/master/pkg/apis/v1be ta1/authorization/types.go.
func (*ImageReviewResponse) MarshalJSON ¶
func (s *ImageReviewResponse) MarshalJSON() ([]byte, error)
type ImageReviewSpec ¶
type ImageReviewSpec struct { // Annotations: Annotations is a list of key-value pairs extracted from // the Pod's annotations. // It only includes keys which match the pattern // `*.image-policy.k8s.io/*`. // It is up to each webhook backend to determine how to interpret these // annotations, if at all. Annotations map[string]string `json:"annotations,omitempty"` // Containers: Container is a subset of the information in the container // being created. Containers []*ImageReviewContainerSpec `json:"containers,omitempty"` // Namespace: Namespace is the namespace the pod is being created in. Namespace string `json:"namespace,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotations") 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:"-"` }
ImageReviewSpec: ImageReviewSpec is a description of the pod creation request.
func (*ImageReviewSpec) MarshalJSON ¶
func (s *ImageReviewSpec) MarshalJSON() ([]byte, error)
type ImageReviewStatus ¶
type ImageReviewStatus struct { // Allowed: Allowed indicates that the image is allowed to run. Allowed bool `json:"allowed,omitempty"` // Reason: Reason should be empty unless Allowed is false in which case // it // may contain a short description of what is wrong. Kubernetes // may truncate excessively long errors when displaying to the user. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Allowed") 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:"-"` }
ImageReviewStatus: ImageReviewStatus is the result of the token authentication request.
func (*ImageReviewStatus) MarshalJSON ¶
func (s *ImageReviewStatus) 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"` // MissingZones: If any zones are listed here, the list of clusters // returned // may be missing those zones. MissingZones []string `json:"missingZones,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 ListNodePoolsResponse ¶
type ListNodePoolsResponse struct { // NodePools: A list of node pools for a cluster. NodePools []*NodePool `json:"nodePools,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NodePools") 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:"-"` }
ListNodePoolsResponse: ListNodePoolsResponse is the result of ListNodePoolsRequest.
func (*ListNodePoolsResponse) MarshalJSON ¶
func (s *ListNodePoolsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // MissingZones: If any zones are listed here, the list of operations // returned // may be missing the operations from those zones. MissingZones []string `json:"missingZones,omitempty"` // 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. "MissingZones") 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 to the // 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 to the // 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 MasterProjectsService ¶
type MasterProjectsService struct { Zones *MasterProjectsZonesService // contains filtered or unexported fields }
func NewMasterProjectsService ¶
func NewMasterProjectsService(s *Service) *MasterProjectsService
type MasterProjectsZonesAuthenticateCall ¶
type MasterProjectsZonesAuthenticateCall struct {
// contains filtered or unexported fields
}
func (*MasterProjectsZonesAuthenticateCall) Context ¶
func (c *MasterProjectsZonesAuthenticateCall) Context(ctx context.Context) *MasterProjectsZonesAuthenticateCall
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 (*MasterProjectsZonesAuthenticateCall) Do ¶
func (c *MasterProjectsZonesAuthenticateCall) Do(opts ...googleapi.CallOption) (*AuthenticateResponse, error)
Do executes the "container.masterProjects.zones.authenticate" call. Exactly one of *AuthenticateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuthenticateResponse.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 (*MasterProjectsZonesAuthenticateCall) Fields ¶
func (c *MasterProjectsZonesAuthenticateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesAuthenticateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MasterProjectsZonesAuthorizeCall ¶
type MasterProjectsZonesAuthorizeCall struct {
// contains filtered or unexported fields
}
func (*MasterProjectsZonesAuthorizeCall) Context ¶
func (c *MasterProjectsZonesAuthorizeCall) Context(ctx context.Context) *MasterProjectsZonesAuthorizeCall
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 (*MasterProjectsZonesAuthorizeCall) Do ¶
func (c *MasterProjectsZonesAuthorizeCall) Do(opts ...googleapi.CallOption) (*AuthorizeResponse, error)
Do executes the "container.masterProjects.zones.authorize" call. Exactly one of *AuthorizeResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuthorizeResponse.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 (*MasterProjectsZonesAuthorizeCall) Fields ¶
func (c *MasterProjectsZonesAuthorizeCall) Fields(s ...googleapi.Field) *MasterProjectsZonesAuthorizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MasterProjectsZonesImagereviewCall ¶
type MasterProjectsZonesImagereviewCall struct {
// contains filtered or unexported fields
}
func (*MasterProjectsZonesImagereviewCall) Context ¶
func (c *MasterProjectsZonesImagereviewCall) Context(ctx context.Context) *MasterProjectsZonesImagereviewCall
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 (*MasterProjectsZonesImagereviewCall) Do ¶
func (c *MasterProjectsZonesImagereviewCall) Do(opts ...googleapi.CallOption) (*ImageReviewResponse, error)
Do executes the "container.masterProjects.zones.imagereview" call. Exactly one of *ImageReviewResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ImageReviewResponse.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 (*MasterProjectsZonesImagereviewCall) Fields ¶
func (c *MasterProjectsZonesImagereviewCall) Fields(s ...googleapi.Field) *MasterProjectsZonesImagereviewCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MasterProjectsZonesService ¶
type MasterProjectsZonesService struct { SignedUrls *MasterProjectsZonesSignedUrlsService Tokens *MasterProjectsZonesTokensService // contains filtered or unexported fields }
func NewMasterProjectsZonesService ¶
func NewMasterProjectsZonesService(s *Service) *MasterProjectsZonesService
func (*MasterProjectsZonesService) Authenticate ¶
func (r *MasterProjectsZonesService) Authenticate(masterProjectId string, zone string, projectNumber int64, clusterId string, authenticaterequest *AuthenticateRequest) *MasterProjectsZonesAuthenticateCall
Authenticate: Processes a request to authenticate a token. If it is able to authenticate the token, the email for the authorized user is also returned. AuthenticateResponse also contains fields from the AuthenticateRequest. The server is expected to only fill in the AuthenticateResponse.Status. This is due to how the Authentication types are defined for the Kubernetes webhook authenticator: https://github.com/kubernetes/kubernetes/blob/m aster/pkg/apis/authentication.k8s.io/v1beta1/types.go.
func (*MasterProjectsZonesService) Authorize ¶
func (r *MasterProjectsZonesService) Authorize(masterProjectId string, zone string, projectNumber int64, clusterId string, authorizerequest *AuthorizeRequest) *MasterProjectsZonesAuthorizeCall
Authorize: Processes the attributes of a user request and determines whether or not to authorize the request. If unauthorized, a reason is also provided. The AuthorizeResponse also contains fields from the AuthorizeRequest. The server is expected to only fill in the AuthorizeResponse.Status. This is due to how the Authorization types are defined for the Kubernetes webhook authorizer: https://github.com/kubernetes/kubernetes/blob/mast er/pkg/apis/authorization/v1beta1/types.go.
func (*MasterProjectsZonesService) Imagereview ¶
func (r *MasterProjectsZonesService) Imagereview(masterProjectId string, zone string, projectNumber int64, clusterId string, imagereviewrequest *ImageReviewRequest) *MasterProjectsZonesImagereviewCall
Imagereview: Processes a request to verify the container image. If unverified, a reason is also provided. The ImageReviewResponse also contains fields from the ImageReviewRequest. The server is expected to only fill in the ImageReviewResponse.Status. This is due to how the ImageReview types are defined for the Kubernetes webhook image review: https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/ imagepolicy/v1beta1/types.go.
func (*MasterProjectsZonesService) Signcertificate ¶
func (r *MasterProjectsZonesService) Signcertificate(masterProjectId string, zone string, projectNumber int64, clusterId string, certificatesigningrequest *CertificateSigningRequest) *MasterProjectsZonesSigncertificateCall
Signcertificate: Signs a CertificateSigningRequest (CSR) with the cluster's certificate authority (CA).
type MasterProjectsZonesSigncertificateCall ¶
type MasterProjectsZonesSigncertificateCall struct {
// contains filtered or unexported fields
}
func (*MasterProjectsZonesSigncertificateCall) Context ¶
func (c *MasterProjectsZonesSigncertificateCall) Context(ctx context.Context) *MasterProjectsZonesSigncertificateCall
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 (*MasterProjectsZonesSigncertificateCall) Do ¶
func (c *MasterProjectsZonesSigncertificateCall) Do(opts ...googleapi.CallOption) (*CertificateSigningRequest, error)
Do executes the "container.masterProjects.zones.signcertificate" call. Exactly one of *CertificateSigningRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CertificateSigningRequest.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 (*MasterProjectsZonesSigncertificateCall) Fields ¶
func (c *MasterProjectsZonesSigncertificateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesSigncertificateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MasterProjectsZonesSignedUrlsCreateCall ¶
type MasterProjectsZonesSignedUrlsCreateCall struct {
// contains filtered or unexported fields
}
func (*MasterProjectsZonesSignedUrlsCreateCall) Context ¶
func (c *MasterProjectsZonesSignedUrlsCreateCall) Context(ctx context.Context) *MasterProjectsZonesSignedUrlsCreateCall
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 (*MasterProjectsZonesSignedUrlsCreateCall) Do ¶
func (c *MasterProjectsZonesSignedUrlsCreateCall) Do(opts ...googleapi.CallOption) (*SignedUrls, error)
Do executes the "container.masterProjects.zones.signedUrls.create" call. Exactly one of *SignedUrls or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SignedUrls.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 (*MasterProjectsZonesSignedUrlsCreateCall) Fields ¶
func (c *MasterProjectsZonesSignedUrlsCreateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesSignedUrlsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MasterProjectsZonesSignedUrlsService ¶
type MasterProjectsZonesSignedUrlsService struct {
// contains filtered or unexported fields
}
func NewMasterProjectsZonesSignedUrlsService ¶
func NewMasterProjectsZonesSignedUrlsService(s *Service) *MasterProjectsZonesSignedUrlsService
func (*MasterProjectsZonesSignedUrlsService) Create ¶
func (r *MasterProjectsZonesSignedUrlsService) Create(masterProjectId string, zone string, createsignedurlsrequest *CreateSignedUrlsRequest) *MasterProjectsZonesSignedUrlsCreateCall
Create: Creates signed URLs that allow for writing a file to a private GCS bucket for storing backups of hosted master data. Signed URLs are explained here: https://cloud.google.com/storage/docs/access-control#Signed-URLs
type MasterProjectsZonesTokensCreateCall ¶
type MasterProjectsZonesTokensCreateCall struct {
// contains filtered or unexported fields
}
func (*MasterProjectsZonesTokensCreateCall) Context ¶
func (c *MasterProjectsZonesTokensCreateCall) Context(ctx context.Context) *MasterProjectsZonesTokensCreateCall
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 (*MasterProjectsZonesTokensCreateCall) Do ¶
func (c *MasterProjectsZonesTokensCreateCall) Do(opts ...googleapi.CallOption) (*Token, error)
Do executes the "container.masterProjects.zones.tokens.create" call. Exactly one of *Token or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Token.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 (*MasterProjectsZonesTokensCreateCall) Fields ¶
func (c *MasterProjectsZonesTokensCreateCall) Fields(s ...googleapi.Field) *MasterProjectsZonesTokensCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MasterProjectsZonesTokensService ¶
type MasterProjectsZonesTokensService struct {
// contains filtered or unexported fields
}
func NewMasterProjectsZonesTokensService ¶
func NewMasterProjectsZonesTokensService(s *Service) *MasterProjectsZonesTokensService
func (*MasterProjectsZonesTokensService) Create ¶
func (r *MasterProjectsZonesTokensService) Create(masterProjectId string, zone string, createtokenrequest *CreateTokenRequest) *MasterProjectsZonesTokensCreateCall
Create: Creates a compute-read-write (https://www.googleapis.com/auth/compute) scoped OAuth2 access token for <project_number>, to allow a hosted master to make modifications to its user's project.
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"` // ImageType: The image type to use for this node. Note that for a given // image type, // the latest version of it will be used. ImageType string `json:"imageType,omitempty"` // Labels: The map of Kubernetes labels (key/value pairs) to be applied // to each node. // These will added in addition to any default label(s) that // Kubernetes may apply to the node. // In case of conflict in label keys, the applied set may differ // depending on // the Kubernetes version -- it's best to assume the behavior is // undefined // and conflicts should be avoided. // For more information, including usage and the valid values, // see: // http://kubernetes.io/v1.1/docs/user-guide/labels.html Labels map[string]string `json:"labels,omitempty"` // LocalSsdCount: The number of local SSD disks to be attached to the // node. // // The limit for this value is dependant upon the maximum number // of // disks available on a machine per zone. // See: // https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_l // imits // for more information. LocalSsdCount int64 `json:"localSsdCount,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"` // Metadata: The metadata key/value pairs assigned to instances in the // cluster. // // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 // bytes // in length. These are reflected as part of a URL in the metadata // server. // Additionally, to avoid ambiguity, keys must not conflict with any // other // metadata keys for the project or be one of the four reserved // keys: // "instance-template", "kube-env", "startup-script", and // "user-data" // // Values are free-form strings, and only have meaning as interpreted // by // the image running in the instance. The only restriction placed on // them is // that each value's size must be less than or equal to 32 KB. // // The total size of all keys and values must be less than 512 KB. Metadata map[string]string `json:"metadata,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** // (the [Google Container Registry](/container-registry/)). // // If unspecified, no scopes are added, unless Cloud Logging or // Cloud // Monitoring are enabled, in which case their required scopes will be // added. OauthScopes []string `json:"oauthScopes,omitempty"` // Preemptible: Whether the nodes are created as preemptible VM // instances. // See: // https://cloud.google.com/compute/docs/instances/preemptible for // more // inforamtion about preemptible VM instances. Preemptible bool `json:"preemptible,omitempty"` // ServiceAccount: The Google Cloud Platform Service Account to be used // by the node VMs. If // no Service Account is specified, the "default" service account is // used. ServiceAccount string `json:"serviceAccount,omitempty"` // Tags: The list of instance tags applied to all nodes. Tags are used // to identify // valid sources or targets for network firewalls and are specified // by // the client during cluster or node pool creation. Each tag within the // list // must comply with RFC1035. Tags []string `json:"tags,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: Parameters that describe the nodes in a cluster.
func (*NodeConfig) MarshalJSON ¶
func (s *NodeConfig) MarshalJSON() ([]byte, error)
type NodeManagement ¶
type NodeManagement struct { // AutoRepair: Whether the nodes will be automatically repaired. AutoRepair bool `json:"autoRepair,omitempty"` // AutoUpgrade: Whether the nodes will be automatically upgraded. AutoUpgrade bool `json:"autoUpgrade,omitempty"` // UpgradeOptions: Specifies the Auto Upgrade knobs for the node pool. UpgradeOptions *AutoUpgradeOptions `json:"upgradeOptions,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoRepair") 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:"-"` }
NodeManagement: NodeManagement defines the set of node management services turned on for the node pool.
func (*NodeManagement) MarshalJSON ¶
func (s *NodeManagement) MarshalJSON() ([]byte, error)
type NodePool ¶
type NodePool struct { // Autoscaling: Autoscaler configuration for this NodePool. Autoscaler // is enabled // only if a valid configuration is present. Autoscaling *NodePoolAutoscaling `json:"autoscaling,omitempty"` // Config: The node configuration of the pool. Config *NodeConfig `json:"config,omitempty"` // InitialNodeCount: The initial node count for the pool. You must // ensure that your // Compute Engine <a href="/compute/docs/resource-quotas">resource // quota</a> // 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 // node pool. InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"` // Management: NodeManagement configuration for this NodePool. Management *NodeManagement `json:"management,omitempty"` // Name: The name of the node pool. Name string `json:"name,omitempty"` // SelfLink: [Output only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` // Status: [Output only] The status of the nodes in this pool instance. // // Possible values: // "STATUS_UNSPECIFIED" - Not set. // "PROVISIONING" - The PROVISIONING state indicates the node pool is // being created. // "RUNNING" - The RUNNING state indicates the node pool has been // created // and is fully usable. // "RUNNING_WITH_ERROR" - The RUNNING_WITH_ERROR state indicates the // node pool has been created // and is partially usable. Some error state has occurred and // some // functionality may be impaired. Customer may need to reissue a // request // or trigger a new update. // "RECONCILING" - The RECONCILING state indicates that some work is // actively being done on // the node pool, such as upgrading node software. Details can // be found in the `statusMessage` field. // "STOPPING" - The STOPPING state indicates the node pool is being // deleted. // "ERROR" - The ERROR state indicates the node pool may be unusable. // Details // can be found in the `statusMessage` field. Status string `json:"status,omitempty"` // StatusMessage: [Output only] Additional information about the current // status of this // node pool instance, if available. StatusMessage string `json:"statusMessage,omitempty"` // Version: [Output only] The version of the Kubernetes of this node. Version string `json:"version,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Autoscaling") 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:"-"` }
NodePool: NodePool contains the name and configuration for a cluster's node pool. Node pools are a set of nodes (i.e. VM's), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
func (*NodePool) MarshalJSON ¶
type NodePoolAutoscaling ¶
type NodePoolAutoscaling struct { // Enabled: Is autoscaling enabled for this node pool. Enabled bool `json:"enabled,omitempty"` // MaxNodeCount: Maximum number of nodes in the NodePool. Must be >= // min_node_count. There // has to enough quota to scale up the cluster. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` // MinNodeCount: Minimum number of nodes in the NodePool. Must be >= 1 // and <= // max_node_count. MinNodeCount int64 `json:"minNodeCount,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"` }
NodePoolAutoscaling: NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.
func (*NodePoolAutoscaling) MarshalJSON ¶
func (s *NodePoolAutoscaling) MarshalJSON() ([]byte, error)
type NonResourceAttributes ¶
type NonResourceAttributes struct { // Path: The URL path of the request. Path string `json:"path,omitempty"` // Verb: The verb of the request Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "Path") 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:"-"` }
NonResourceAttributes: The authorization attributes of a non-resource request. This should match the NonResourceAttributes struct in pkg/apis/authorization/v1beta1/types.go.
func (*NonResourceAttributes) MarshalJSON ¶
func (s *NonResourceAttributes) MarshalJSON() ([]byte, error)
type ObjectMeta ¶
type ObjectMeta struct { // CreationTimestamp: Timestamp representing the server time when this // object was created. CreationTimestamp string `json:"creationTimestamp,omitempty"` // GenerateName: An optional prefix, used by the server, to generate a // unique name ONLY IF // the name field has not been provided. GenerateName string `json:"generateName,omitempty"` // Name: The name of the resource, unique within a namespace. Name string `json:"name,omitempty"` // ResourceVersion: An opaque value that represents the internal version // of this object that // can be used by clients to determine when objects have changed. ResourceVersion string `json:"resourceVersion,omitempty"` // SelfLink: A URL representing this object. SelfLink string `json:"selfLink,omitempty"` // Uid: A unique identifier in time and space for this object. Uid string `json:"uid,omitempty"` // ForceSendFields is a list of field names (e.g. "CreationTimestamp") // 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:"-"` }
ObjectMeta: This maps to the "apimachinery/pkg/apis/meta/v1".ObjectMeta type, although not all fields are populated and represented here. TODO (b/30563544, b/34947157): Remove unused fields.
Currently, if a request includes metadata fields that aren't explicitly modeled here, the caller will receive a 400 response instead of ignoring the unrecognized fields. We should consider following b/28297888 to enable "ignore_unknown_fields" in order to make this less brittle.
func (*ObjectMeta) MarshalJSON ¶
func (s *ObjectMeta) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Detail: Detailed operation progress, if available. Detail string `json:"detail,omitempty"` // Name: The server-assigned ID for the operation. Name string `json:"name,omitempty"` // OperationType: The operation type. // // Possible values: // "TYPE_UNSPECIFIED" - Not set. // "CREATE_CLUSTER" - Cluster create. // "DELETE_CLUSTER" - Cluster delete. // "UPGRADE_MASTER" - A master upgrade. // "UPGRADE_NODES" - A node upgrade. // "REPAIR_CLUSTER" - Cluster repair. // "UPDATE_CLUSTER" - Cluster update. // "CREATE_NODE_POOL" - Node pool create. // "DELETE_NODE_POOL" - Node pool delete. // "SET_NODE_POOL_MANAGEMENT" - Set node pool management. 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" - Not set. // "PENDING" - The operation has been created. // "RUNNING" - The operation is currently running. // "DONE" - The operation is done, either cancelled or completed. // "ABORTING" - The operation is aborting. 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. "Detail") 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: This operation resource represents operations that may have happened or are happening on the cluster. 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(opts ...googleapi.CallOption) (*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.
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(opts ...googleapi.CallOption) (*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.
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(opts ...googleapi.CallOption) (*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.
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(opts ...googleapi.CallOption) (*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.
type ProjectsZonesClustersNodePoolsCreateCall ¶
type ProjectsZonesClustersNodePoolsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersNodePoolsCreateCall) Context ¶
func (c *ProjectsZonesClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsCreateCall
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 (*ProjectsZonesClustersNodePoolsCreateCall) Do ¶
func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "container.projects.zones.clusters.nodePools.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 (*ProjectsZonesClustersNodePoolsCreateCall) Fields ¶
func (c *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsZonesClustersNodePoolsDeleteCall ¶
type ProjectsZonesClustersNodePoolsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersNodePoolsDeleteCall) Context ¶
func (c *ProjectsZonesClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsDeleteCall
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 (*ProjectsZonesClustersNodePoolsDeleteCall) Do ¶
func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "container.projects.zones.clusters.nodePools.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 (*ProjectsZonesClustersNodePoolsDeleteCall) Fields ¶
func (c *ProjectsZonesClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsZonesClustersNodePoolsGetCall ¶
type ProjectsZonesClustersNodePoolsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersNodePoolsGetCall) Context ¶
func (c *ProjectsZonesClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsGetCall
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 (*ProjectsZonesClustersNodePoolsGetCall) Do ¶
func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error)
Do executes the "container.projects.zones.clusters.nodePools.get" call. Exactly one of *NodePool or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *NodePool.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 (*ProjectsZonesClustersNodePoolsGetCall) Fields ¶
func (c *ProjectsZonesClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesClustersNodePoolsGetCall) IfNoneMatch ¶
func (c *ProjectsZonesClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsGetCall
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.
type ProjectsZonesClustersNodePoolsListCall ¶
type ProjectsZonesClustersNodePoolsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersNodePoolsListCall) Context ¶
func (c *ProjectsZonesClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsListCall
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 (*ProjectsZonesClustersNodePoolsListCall) Do ¶
func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error)
Do executes the "container.projects.zones.clusters.nodePools.list" call. Exactly one of *ListNodePoolsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNodePoolsResponse.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 (*ProjectsZonesClustersNodePoolsListCall) Fields ¶
func (c *ProjectsZonesClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsZonesClustersNodePoolsListCall) IfNoneMatch ¶
func (c *ProjectsZonesClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsListCall
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.
type ProjectsZonesClustersNodePoolsRollbackCall ¶
type ProjectsZonesClustersNodePoolsRollbackCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersNodePoolsRollbackCall) Context ¶
func (c *ProjectsZonesClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsRollbackCall
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 (*ProjectsZonesClustersNodePoolsRollbackCall) Do ¶
func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "container.projects.zones.clusters.nodePools.rollback" 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 (*ProjectsZonesClustersNodePoolsRollbackCall) Fields ¶
func (c *ProjectsZonesClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsRollbackCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsZonesClustersNodePoolsService ¶
type ProjectsZonesClustersNodePoolsService struct {
// contains filtered or unexported fields
}
func NewProjectsZonesClustersNodePoolsService ¶
func NewProjectsZonesClustersNodePoolsService(s *Service) *ProjectsZonesClustersNodePoolsService
func (*ProjectsZonesClustersNodePoolsService) Create ¶
func (r *ProjectsZonesClustersNodePoolsService) Create(projectId string, zone string, clusterId string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsZonesClustersNodePoolsCreateCall
Create: Creates a node pool for a cluster.
func (*ProjectsZonesClustersNodePoolsService) Delete ¶
func (r *ProjectsZonesClustersNodePoolsService) Delete(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsDeleteCall
Delete: Deletes a node pool from a cluster.
func (*ProjectsZonesClustersNodePoolsService) Get ¶
func (r *ProjectsZonesClustersNodePoolsService) Get(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsGetCall
Get: Retrieves the node pool requested.
func (*ProjectsZonesClustersNodePoolsService) List ¶
func (r *ProjectsZonesClustersNodePoolsService) List(projectId string, zone string, clusterId string) *ProjectsZonesClustersNodePoolsListCall
List: Lists the node pools for a cluster.
func (*ProjectsZonesClustersNodePoolsService) Rollback ¶
func (r *ProjectsZonesClustersNodePoolsService) Rollback(projectId string, zone string, clusterId string, nodePoolId string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsZonesClustersNodePoolsRollbackCall
Rollback: Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
func (*ProjectsZonesClustersNodePoolsService) SetManagement ¶
func (r *ProjectsZonesClustersNodePoolsService) SetManagement(projectId string, zone string, clusterId string, nodePoolId string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsZonesClustersNodePoolsSetManagementCall
SetManagement: Sets the NodeManagement options for a node pool.
type ProjectsZonesClustersNodePoolsSetManagementCall ¶
type ProjectsZonesClustersNodePoolsSetManagementCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesClustersNodePoolsSetManagementCall) Context ¶
func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsSetManagementCall
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 (*ProjectsZonesClustersNodePoolsSetManagementCall) Do ¶
func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "container.projects.zones.clusters.nodePools.setManagement" 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 (*ProjectsZonesClustersNodePoolsSetManagementCall) Fields ¶
func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetManagementCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsZonesClustersService ¶
type ProjectsZonesClustersService struct { NodePools *ProjectsZonesClustersNodePoolsService // 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.
By default, the cluster is created in the project's [default network](/compute/docs/networks-and-firewalls#networks).
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.
Other Google Compute Engine resources that might be in use by the cluster (e.g. load balancer resources) will not be deleted if they weren't present at the initial create time.
func (*ProjectsZonesClustersService) Get ¶
func (r *ProjectsZonesClustersService) Get(projectId string, zone string, clusterId string) *ProjectsZonesClustersGetCall
Get: Gets the details of 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: Updates the 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(opts ...googleapi.CallOption) (*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.
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(opts ...googleapi.CallOption) (*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.
type ProjectsZonesOperationsCancelCall ¶
type ProjectsZonesOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsZonesOperationsCancelCall) Context ¶
func (c *ProjectsZonesOperationsCancelCall) Context(ctx context.Context) *ProjectsZonesOperationsCancelCall
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 (*ProjectsZonesOperationsCancelCall) Do ¶
func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "container.projects.zones.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsZonesOperationsCancelCall) Fields ¶
func (c *ProjectsZonesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsZonesOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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(opts ...googleapi.CallOption) (*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.
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(opts ...googleapi.CallOption) (*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.
type ProjectsZonesOperationsService ¶
type ProjectsZonesOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsZonesOperationsService ¶
func NewProjectsZonesOperationsService(s *Service) *ProjectsZonesOperationsService
func (*ProjectsZonesOperationsService) Cancel ¶
func (r *ProjectsZonesOperationsService) Cancel(projectId string, zone string, operationId string, canceloperationrequest *CancelOperationRequest) *ProjectsZonesOperationsCancelCall
Cancel: Cancels the specified operation.
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 ResourceAttributes ¶
type ResourceAttributes struct { // Group: The API group of the resource. Group string `json:"group,omitempty"` // Name: The name of the resource in the request. Name string `json:"name,omitempty"` // Namespace: The namespace of the request. Namespace string `json:"namespace,omitempty"` // Resource: The type of the resource in the request. Resource string `json:"resource,omitempty"` // Subresource: The type of the subresource in the request. Subresource string `json:"subresource,omitempty"` // Verb: The Kubernetes verb of the request (e.g. get, create, list, // etc.) Verb string `json:"verb,omitempty"` // Version: The API version of the resource. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Group") 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:"-"` }
ResourceAttributes: The authorization attributes of the resource request. This should match the ResourceAttributes struct in pkg/apis/authorization/v1beta1/types.go.
func (*ResourceAttributes) MarshalJSON ¶
func (s *ResourceAttributes) MarshalJSON() ([]byte, error)
type RollbackNodePoolUpgradeRequest ¶
type RollbackNodePoolUpgradeRequest struct { }
RollbackNodePoolUpgradeRequest: RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
type ServerConfig ¶
type ServerConfig struct { // BuildClientInfo: apiserver build BuildData::ClientInfo() BuildClientInfo string `json:"buildClientInfo,omitempty"` // DefaultClusterVersion: Version of Kubernetes the service deploys by // default. DefaultClusterVersion string `json:"defaultClusterVersion,omitempty"` // DefaultImageType: Default image type. DefaultImageType string `json:"defaultImageType,omitempty"` // ValidImageTypes: List of valid image types. ValidImageTypes []string `json:"validImageTypes,omitempty"` // ValidMasterVersions: List of valid master versions. ValidMasterVersions []string `json:"validMasterVersions,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. "BuildClientInfo") 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 service 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 MasterProjects *MasterProjectsService Projects *ProjectsService // contains filtered or unexported fields }
type SetNodePoolManagementRequest ¶
type SetNodePoolManagementRequest struct { // Management: NodeManagement configuration for the node pool. Management *NodeManagement `json:"management,omitempty"` // ForceSendFields is a list of field names (e.g. "Management") 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:"-"` }
SetNodePoolManagementRequest: SetNodePoolManagementRequest sets the node management properties of a node pool.
func (*SetNodePoolManagementRequest) MarshalJSON ¶
func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error)
type SignedUrls ¶
type SignedUrls struct { // SignedUrls: The signed URLs for writing the request files, in the // same order as the // filenames in the request. SignedUrls []string `json:"signedUrls,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "SignedUrls") 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:"-"` }
SignedUrls: Signed URLs that allow for writing a file to a private GCS bucket for storing backups of hosted master data.
func (*SignedUrls) MarshalJSON ¶
func (s *SignedUrls) MarshalJSON() ([]byte, error)
type SubjectAccessReviewSpec ¶
type SubjectAccessReviewSpec struct { // Extra: Any "extra" data from the user being authorized. Note: // normally this field // would be called "extras", but we have to match the struct in // Kubernetes. Extra map[string]ExtraValue `json:"extra,omitempty"` // Group: Any groups this user may be a part of (this is not used for // GKE IAM). Note: // normally this field would be called "groups", but we have to match // the // struct in Kubernetes. Group []string `json:"group,omitempty"` // NonResourceAttributes: The attributes of the request for a // non-resource request. If this field is // set, ResourceAttributes should not be set (and will be ignored). NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty"` // ResourceAttributes: The attributes of the request for a resource // request. If this field is set, // NonResourceAttributes should not be set (and will be ignored). ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty"` // User: The user making the request. User string `json:"user,omitempty"` // ForceSendFields is a list of field names (e.g. "Extra") 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:"-"` }
SubjectAccessReviewSpec: The description of the request for authorization. This should match the SubjectAccessReviewSpec struct in pkg/apis/authorization/v1beta1/types.go
func (*SubjectAccessReviewSpec) MarshalJSON ¶
func (s *SubjectAccessReviewSpec) MarshalJSON() ([]byte, error)
type SubjectAccessReviewStatus ¶
type SubjectAccessReviewStatus struct { // Allowed: Is the action authorized. Allowed bool `json:"allowed,omitempty"` // Reason: Error message if unauthorized. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Allowed") 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:"-"` }
SubjectAccessReviewStatus: The result of the request for authorization. This should match the SubjectAccessReviewStatus struct in pkg/apis/authorization/v1beta1/types.go.
func (*SubjectAccessReviewStatus) MarshalJSON ¶
func (s *SubjectAccessReviewStatus) MarshalJSON() ([]byte, error)
type Token ¶
type Token struct { // AccessToken: The OAuth2 access token AccessToken string `json:"accessToken,omitempty"` // ExpireTime: The expiration time of the token. ExpireTime string `json:"expireTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccessToken") 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:"-"` }
Token: A compute-read-write (https://www.googleapis.com/auth/compute) scoped OAuth2 access token, to allow hosted masters to make modifications to a user's project.
func (*Token) MarshalJSON ¶
type TokenReviewSpec ¶
type TokenReviewSpec struct { // Token: The token for the server to authenticate. Token string `json:"token,omitempty"` // ForceSendFields is a list of field names (e.g. "Token") 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:"-"` }
TokenReviewSpec: The description of the request for review of an OAuth2 token for purposes of authentication. This should match the TokenReviewSpec struct in pkg/apis/authentication.k8s.io/v1beta1/types.go
func (*TokenReviewSpec) MarshalJSON ¶
func (s *TokenReviewSpec) MarshalJSON() ([]byte, error)
type TokenReviewStatus ¶
type TokenReviewStatus struct { // Authenticated: Whether the server was able to authenticate the token. Authenticated bool `json:"authenticated,omitempty"` // User: The authenticated user associated with the token. User *UserInfo `json:"user,omitempty"` // ForceSendFields is a list of field names (e.g. "Authenticated") 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:"-"` }
TokenReviewStatus: The result of the request for authentication. This should match the TokenReviewStatus struct in pkg/apis/authentication.k8s.io/v1beta1/types.go
func (*TokenReviewStatus) MarshalJSON ¶
func (s *TokenReviewStatus) MarshalJSON() ([]byte, error)
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 the settings of a cluster.
func (*UpdateClusterRequest) MarshalJSON ¶
func (s *UpdateClusterRequest) MarshalJSON() ([]byte, error)
type UserInfo ¶
type UserInfo struct { // Groups: Groups that this user is a part of. This is not currently // filled in for // GKE. Groups []string `json:"groups,omitempty"` // Uid: A unique identifier (across time) for the user. This is not // currently // filled in for GKE. Uid string `json:"uid,omitempty"` // Username: The name of the user. This should be the email address // associated with the // GAIA identity of the user. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "Groups") 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:"-"` }
UserInfo: The attributes of an authenticated user. This should match the UserInfo struct in pkg/apis/authentication.k8s.io/v1beta1/types.go