Constants
GkeHubMembershipService_ListMemberships_FullMethodName, GkeHubMembershipService_GetMembership_FullMethodName, GkeHubMembershipService_CreateMembership_FullMethodName, GkeHubMembershipService_DeleteMembership_FullMethodName, GkeHubMembershipService_UpdateMembership_FullMethodName, GkeHubMembershipService_GenerateConnectManifest_FullMethodName, GkeHubMembershipService_ValidateExclusivity_FullMethodName, GkeHubMembershipService_GenerateExclusivityManifest_FullMethodName
const
(
GkeHubMembershipService_ListMemberships_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/ListMemberships"
GkeHubMembershipService_GetMembership_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/GetMembership"
GkeHubMembershipService_CreateMembership_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/CreateMembership"
GkeHubMembershipService_DeleteMembership_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/DeleteMembership"
GkeHubMembershipService_UpdateMembership_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/UpdateMembership"
GkeHubMembershipService_GenerateConnectManifest_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/GenerateConnectManifest"
GkeHubMembershipService_ValidateExclusivity_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/ValidateExclusivity"
GkeHubMembershipService_GenerateExclusivityManifest_FullMethodName
=
"/google.cloud.gkehub.v1beta1.GkeHubMembershipService/GenerateExclusivityManifest"
)
Variables
Membership_InfrastructureType_name, Membership_InfrastructureType_value
var
(
Membership_InfrastructureType_name
=
map
[
int32
]
string
{
0
:
"INFRASTRUCTURE_TYPE_UNSPECIFIED"
,
1
:
"ON_PREM"
,
2
:
"MULTI_CLOUD"
,
}
Membership_InfrastructureType_value
=
map
[
string
]
int32
{
"INFRASTRUCTURE_TYPE_UNSPECIFIED"
:
0
,
"ON_PREM"
:
1
,
"MULTI_CLOUD"
:
2
,
}
)
Enum value maps for Membership_InfrastructureType.
OnPremCluster_ClusterType_name, OnPremCluster_ClusterType_value
var
(
OnPremCluster_ClusterType_name
=
map
[
int32
]
string
{
0
:
"CLUSTERTYPE_UNSPECIFIED"
,
1
:
"BOOTSTRAP"
,
2
:
"HYBRID"
,
3
:
"STANDALONE"
,
4
:
"USER"
,
}
OnPremCluster_ClusterType_value
=
map
[
string
]
int32
{
"CLUSTERTYPE_UNSPECIFIED"
:
0
,
"BOOTSTRAP"
:
1
,
"HYBRID"
:
2
,
"STANDALONE"
:
3
,
"USER"
:
4
,
}
)
Enum value maps for OnPremCluster_ClusterType.
MembershipState_Code_name, MembershipState_Code_value
var
(
MembershipState_Code_name
=
map
[
int32
]
string
{
0
:
"CODE_UNSPECIFIED"
,
1
:
"CREATING"
,
2
:
"READY"
,
3
:
"DELETING"
,
4
:
"UPDATING"
,
5
:
"SERVICE_UPDATING"
,
}
MembershipState_Code_value
=
map
[
string
]
int32
{
"CODE_UNSPECIFIED"
:
0
,
"CREATING"
:
1
,
"READY"
:
2
,
"DELETING"
:
3
,
"UPDATING"
:
4
,
"SERVICE_UPDATING"
:
5
,
}
)
Enum value maps for MembershipState_Code.
File_google_cloud_gkehub_v1beta1_membership_proto
var
File_google_cloud_gkehub_v1beta1_membership_proto
protoreflect
.
FileDescriptor
GkeHubMembershipService_ServiceDesc
var
GkeHubMembershipService_ServiceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"google.cloud.gkehub.v1beta1.GkeHubMembershipService"
,
HandlerType
:
(
*
GkeHubMembershipServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"ListMemberships"
,
Handler
:
_GkeHubMembershipService_ListMemberships_Handler
,
},
{
MethodName
:
"GetMembership"
,
Handler
:
_GkeHubMembershipService_GetMembership_Handler
,
},
{
MethodName
:
"CreateMembership"
,
Handler
:
_GkeHubMembershipService_CreateMembership_Handler
,
},
{
MethodName
:
"DeleteMembership"
,
Handler
:
_GkeHubMembershipService_DeleteMembership_Handler
,
},
{
MethodName
:
"UpdateMembership"
,
Handler
:
_GkeHubMembershipService_UpdateMembership_Handler
,
},
{
MethodName
:
"GenerateConnectManifest"
,
Handler
:
_GkeHubMembershipService_GenerateConnectManifest_Handler
,
},
{
MethodName
:
"ValidateExclusivity"
,
Handler
:
_GkeHubMembershipService_ValidateExclusivity_Handler
,
},
{
MethodName
:
"GenerateExclusivityManifest"
,
Handler
:
_GkeHubMembershipService_GenerateExclusivityManifest_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"google/cloud/gkehub/v1beta1/membership.proto"
,
}
GkeHubMembershipService_ServiceDesc is the grpc.ServiceDesc for GkeHubMembershipService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterGkeHubMembershipServiceServer
func
RegisterGkeHubMembershipServiceServer
(
s
grpc
.
ServiceRegistrar
,
srv
GkeHubMembershipServiceServer
)
ApplianceCluster
type
ApplianceCluster
struct
{
// Immutable. Self-link of the GCP resource for the Appliance Cluster. For
// example:
//
// //transferappliance.googleapis.com/projects/my-project/locations/us-west1-a/appliances/my-appliance
ResourceLink
string
`protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
// contains filtered or unexported fields
}
ApplianceCluster contains information specific to GDC Edge Appliance Clusters.
func (*ApplianceCluster) Descriptor
func
(
*
ApplianceCluster
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ApplianceCluster.ProtoReflect.Descriptor instead.
func (*ApplianceCluster) GetResourceLink
func
(
x
*
ApplianceCluster
)
GetResourceLink
()
string
func (*ApplianceCluster) ProtoMessage
func
(
*
ApplianceCluster
)
ProtoMessage
()
func (*ApplianceCluster) ProtoReflect
func
(
x
*
ApplianceCluster
)
ProtoReflect
()
protoreflect
.
Message
func (*ApplianceCluster) Reset
func
(
x
*
ApplianceCluster
)
Reset
()
func (*ApplianceCluster) String
func
(
x
*
ApplianceCluster
)
String
()
string
Authority
type
Authority
struct
{
// Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
// `https://` and be a valid URL with length <2000 characters.="" if="" set,="" then="" google="" will="" allow="" valid="" oidc="" tokens="" from="" this="" issuer="" to="" authenticate="" within="" the="" workload_identity_pool.="" oidc="" discovery="" will="" be="" performed="" on="" this="" uri="" to="" validate="" tokens="" from="" the="" issuer.="" clearing="" `issuer`="" disables="" workload="" identity.="" `issuer`="" cannot="" be="" directly="" modified;="" it="" must="" be="" cleared="" (and="" workload="" identity="" disabled)="" before="" using="" a="" new="" issuer="" (and="" re-enabling="" workload="" identity).="" issuer=""> string
`protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
// Output only. The name of the workload identity pool in which `issuer` will
// be recognized.
//
// There is a single Workload Identity Pool per Hub that is shared
// between all Memberships that belong to that Hub. For a Hub hosted in
// {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
// although this is subject to change in newer versions of this API.
WorkloadIdentityPool
string
`protobuf:"bytes,2,opt,name=workload_identity_pool,json=workloadIdentityPool,proto3" json:"workload_identity_pool,omitempty"`
// Output only. An identity provider that reflects the `issuer` in the
// workload identity pool.
IdentityProvider
string
`protobuf:"bytes,3,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
// Optional. OIDC verification keys for this Membership in JWKS format (RFC
// 7517).
//
// When this field is set, OIDC discovery will NOT be performed on `issuer`,
// and instead OIDC tokens will be validated using this field.
OidcJwks
[]
byte
`protobuf:"bytes,4,opt,name=oidc_jwks,json=oidcJwks,proto3" json:"oidc_jwks,omitempty"`
// contains filtered or unexported fields
}
Authority encodes how Google will recognize identities from this Membership. See the workload identity documentation for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
func (*Authority) Descriptor
Deprecated: Use Authority.ProtoReflect.Descriptor instead.
func (*Authority) GetIdentityProvider
func (*Authority) GetIssuer
func (*Authority) GetOidcJwks
func (*Authority) GetWorkloadIdentityPool
func (*Authority) ProtoMessage
func
(
*
Authority
)
ProtoMessage
()
func (*Authority) ProtoReflect
func
(
x
*
Authority
)
ProtoReflect
()
protoreflect
.
Message
func (*Authority) Reset
func
(
x
*
Authority
)
Reset
()
func (*Authority) String
ConnectAgent
type
ConnectAgent
struct
{
// Do not set.
//
// Deprecated: Marked as deprecated in google/cloud/gkehub/v1beta1/membership.proto.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. URI of a proxy if connectivity from the agent to
// gkeconnect.googleapis.com requires the use of a proxy. Format must be in
// the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
// supported by the proxy. This will direct the connect agent's outbound
// traffic through a HTTP(S) proxy.
Proxy
[]
byte
`protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"`
// Optional. Namespace for GKE Connect agent resources. Defaults to
// `gke-connect`.
//
// The Connect Agent is authorized automatically when run in the default
// namespace. Otherwise, explicit authorization must be granted with an
// additional IAM binding.
Namespace
string
`protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
The information required from end users to use GKE Connect.
func (*ConnectAgent) Descriptor
func
(
*
ConnectAgent
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ConnectAgent.ProtoReflect.Descriptor instead.
func (*ConnectAgent) GetName
func
(
x
*
ConnectAgent
)
GetName
()
string
Deprecated: Marked as deprecated in google/cloud/gkehub/v1beta1/membership.proto.
func (*ConnectAgent) GetNamespace
func
(
x
*
ConnectAgent
)
GetNamespace
()
string
func (*ConnectAgent) GetProxy
func
(
x
*
ConnectAgent
)
GetProxy
()
[]
byte
func (*ConnectAgent) ProtoMessage
func
(
*
ConnectAgent
)
ProtoMessage
()
func (*ConnectAgent) ProtoReflect
func
(
x
*
ConnectAgent
)
ProtoReflect
()
protoreflect
.
Message
func (*ConnectAgent) Reset
func
(
x
*
ConnectAgent
)
Reset
()
func (*ConnectAgent) String
func
(
x
*
ConnectAgent
)
String
()
string
ConnectAgentResource
type
ConnectAgentResource
struct
{
// Kubernetes type of the resource.
Type
*
TypeMeta
`protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// YAML manifest of the resource.
Manifest
string
`protobuf:"bytes,2,opt,name=manifest,proto3" json:"manifest,omitempty"`
// contains filtered or unexported fields
}
ConnectAgentResource represents a Kubernetes resource manifest for Connect Agent deployment.
func (*ConnectAgentResource) Descriptor
func
(
*
ConnectAgentResource
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ConnectAgentResource.ProtoReflect.Descriptor instead.
func (*ConnectAgentResource) GetManifest
func
(
x
*
ConnectAgentResource
)
GetManifest
()
string
func (*ConnectAgentResource) GetType
func
(
x
*
ConnectAgentResource
)
GetType
()
*
TypeMeta
func (*ConnectAgentResource) ProtoMessage
func
(
*
ConnectAgentResource
)
ProtoMessage
()
func (*ConnectAgentResource) ProtoReflect
func
(
x
*
ConnectAgentResource
)
ProtoReflect
()
protoreflect
.
Message
func (*ConnectAgentResource) Reset
func
(
x
*
ConnectAgentResource
)
Reset
()
func (*ConnectAgentResource) String
func
(
x
*
ConnectAgentResource
)
String
()
string
CreateMembershipRequest
type
CreateMembershipRequest
struct
{
// Required. The parent (project and location) where the Memberships will be
// created. Specified in the format `projects/*/locations/*`.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Client chosen ID for the membership. `membership_id` must be a
// valid RFC 1123 compliant DNS label:
//
// 1. At most 63 characters in length
// 2. It must consist of lower case alphanumeric characters or `-`
// 3. It must start and end with an alphanumeric character
//
// Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
// with a maximum length of 63 characters.
MembershipId
string
`protobuf:"bytes,2,opt,name=membership_id,json=membershipId,proto3" json:"membership_id,omitempty"`
// Required. The membership to create.
Resource
*
Membership
`protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
// Optional. A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId
string
`protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for the GkeHubMembershipService.CreateMembership
method.
func (*CreateMembershipRequest) Descriptor
func
(
*
CreateMembershipRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use CreateMembershipRequest.ProtoReflect.Descriptor instead.
func (*CreateMembershipRequest) GetMembershipId
func
(
x
*
CreateMembershipRequest
)
GetMembershipId
()
string
func (*CreateMembershipRequest) GetParent
func
(
x
*
CreateMembershipRequest
)
GetParent
()
string
func (*CreateMembershipRequest) GetRequestId
func
(
x
*
CreateMembershipRequest
)
GetRequestId
()
string
func (*CreateMembershipRequest) GetResource
func
(
x
*
CreateMembershipRequest
)
GetResource
()
*
Membership
func (*CreateMembershipRequest) ProtoMessage
func
(
*
CreateMembershipRequest
)
ProtoMessage
()
func (*CreateMembershipRequest) ProtoReflect
func
(
x
*
CreateMembershipRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateMembershipRequest) Reset
func
(
x
*
CreateMembershipRequest
)
Reset
()
func (*CreateMembershipRequest) String
func
(
x
*
CreateMembershipRequest
)
String
()
string
DeleteMembershipRequest
type
DeleteMembershipRequest
struct
{
// Required. The Membership resource name in the format
// `projects/*/locations/*/memberships/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId
string
`protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. If set to true, any subresource from this Membership will also be
// deleted. Otherwise, the request will only work if the Membership has no
// subresource.
Force
bool
`protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}
Request message for GkeHubMembershipService.DeleteMembership
method.
func (*DeleteMembershipRequest) Descriptor
func
(
*
DeleteMembershipRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use DeleteMembershipRequest.ProtoReflect.Descriptor instead.
func (*DeleteMembershipRequest) GetForce
func
(
x
*
DeleteMembershipRequest
)
GetForce
()
bool
func (*DeleteMembershipRequest) GetName
func
(
x
*
DeleteMembershipRequest
)
GetName
()
string
func (*DeleteMembershipRequest) GetRequestId
func
(
x
*
DeleteMembershipRequest
)
GetRequestId
()
string
func (*DeleteMembershipRequest) ProtoMessage
func
(
*
DeleteMembershipRequest
)
ProtoMessage
()
func (*DeleteMembershipRequest) ProtoReflect
func
(
x
*
DeleteMembershipRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DeleteMembershipRequest) Reset
func
(
x
*
DeleteMembershipRequest
)
Reset
()
func (*DeleteMembershipRequest) String
func
(
x
*
DeleteMembershipRequest
)
String
()
string
EdgeCluster
type
EdgeCluster
struct
{
// Immutable. Self-link of the GCP resource for the Edge Cluster. For
// example:
//
// //edgecontainer.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
ResourceLink
string
`protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
// contains filtered or unexported fields
}
EdgeCluster contains information specific to Google Edge Clusters.
func (*EdgeCluster) Descriptor
func
(
*
EdgeCluster
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use EdgeCluster.ProtoReflect.Descriptor instead.
func (*EdgeCluster) GetResourceLink
func
(
x
*
EdgeCluster
)
GetResourceLink
()
string
func (*EdgeCluster) ProtoMessage
func
(
*
EdgeCluster
)
ProtoMessage
()
func (*EdgeCluster) ProtoReflect
func
(
x
*
EdgeCluster
)
ProtoReflect
()
protoreflect
.
Message
func (*EdgeCluster) Reset
func
(
x
*
EdgeCluster
)
Reset
()
func (*EdgeCluster) String
func
(
x
*
EdgeCluster
)
String
()
string
GenerateConnectManifestRequest
type
GenerateConnectManifestRequest
struct
{
// Required. The Membership resource name the Agent will associate with, in
// the format `projects/*/locations/*/memberships/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The connect agent to generate manifest for.
ConnectAgent
*
ConnectAgent
`protobuf:"bytes,2,opt,name=connect_agent,json=connectAgent,proto3" json:"connect_agent,omitempty"`
// Optional. The Connect agent version to use. Defaults to the most current
// version.
Version
string
`protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// Optional. If true, generate the resources for upgrade only. Some resources
// generated only for installation (e.g. secrets) will be excluded.
IsUpgrade
bool
`protobuf:"varint,4,opt,name=is_upgrade,json=isUpgrade,proto3" json:"is_upgrade,omitempty"`
// Optional. The registry to fetch the connect agent image from. Defaults to
// gcr.io/gkeconnect.
Registry
string
`protobuf:"bytes,5,opt,name=registry,proto3" json:"registry,omitempty"`
// Optional. The image pull secret content for the registry, if not public.
ImagePullSecretContent
[]
byte
`protobuf:"bytes,6,opt,name=image_pull_secret_content,json=imagePullSecretContent,proto3" json:"image_pull_secret_content,omitempty"`
// contains filtered or unexported fields
}
Request message for GkeHubMembershipService.GenerateConnectManifest
method.
func (*GenerateConnectManifestRequest) Descriptor
func
(
*
GenerateConnectManifestRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GenerateConnectManifestRequest.ProtoReflect.Descriptor instead.
func (*GenerateConnectManifestRequest) GetConnectAgent
func
(
x
*
GenerateConnectManifestRequest
)
GetConnectAgent
()
*
ConnectAgent
func (*GenerateConnectManifestRequest) GetImagePullSecretContent
func
(
x
*
GenerateConnectManifestRequest
)
GetImagePullSecretContent
()
[]
byte
func (*GenerateConnectManifestRequest) GetIsUpgrade
func
(
x
*
GenerateConnectManifestRequest
)
GetIsUpgrade
()
bool
func (*GenerateConnectManifestRequest) GetName
func
(
x
*
GenerateConnectManifestRequest
)
GetName
()
string
func (*GenerateConnectManifestRequest) GetRegistry
func
(
x
*
GenerateConnectManifestRequest
)
GetRegistry
()
string
func (*GenerateConnectManifestRequest) GetVersion
func
(
x
*
GenerateConnectManifestRequest
)
GetVersion
()
string
func (*GenerateConnectManifestRequest) ProtoMessage
func
(
*
GenerateConnectManifestRequest
)
ProtoMessage
()
func (*GenerateConnectManifestRequest) ProtoReflect
func
(
x
*
GenerateConnectManifestRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GenerateConnectManifestRequest) Reset
func
(
x
*
GenerateConnectManifestRequest
)
Reset
()
func (*GenerateConnectManifestRequest) String
func
(
x
*
GenerateConnectManifestRequest
)
String
()
string
GenerateConnectManifestResponse
type
GenerateConnectManifestResponse
struct
{
// The ordered list of Kubernetes resources that need to be applied to the
// cluster for GKE Connect agent installation/upgrade.
Manifest
[]
*
ConnectAgentResource
`protobuf:"bytes,1,rep,name=manifest,proto3" json:"manifest,omitempty"`
// contains filtered or unexported fields
}
GenerateConnectManifestResponse contains manifest information for installing/upgrading a Connect agent.
func (*GenerateConnectManifestResponse) Descriptor
func
(
*
GenerateConnectManifestResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GenerateConnectManifestResponse.ProtoReflect.Descriptor instead.
func (*GenerateConnectManifestResponse) GetManifest
func
(
x
*
GenerateConnectManifestResponse
)
GetManifest
()
[]
*
ConnectAgentResource
func (*GenerateConnectManifestResponse) ProtoMessage
func
(
*
GenerateConnectManifestResponse
)
ProtoMessage
()
func (*GenerateConnectManifestResponse) ProtoReflect
func
(
x
*
GenerateConnectManifestResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*GenerateConnectManifestResponse) Reset
func
(
x
*
GenerateConnectManifestResponse
)
Reset
()
func (*GenerateConnectManifestResponse) String
func
(
x
*
GenerateConnectManifestResponse
)
String
()
string
GenerateExclusivityManifestRequest
type
GenerateExclusivityManifestRequest
struct
{
// Required. The Membership resource name in the format
// `projects/*/locations/*/memberships/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The YAML manifest of the membership CRD retrieved by
// `kubectl get customresourcedefinitions membership`.
// Leave empty if the resource does not exist.
CrdManifest
string
`protobuf:"bytes,2,opt,name=crd_manifest,json=crdManifest,proto3" json:"crd_manifest,omitempty"`
// Optional. The YAML manifest of the membership CR retrieved by
// `kubectl get memberships membership`.
// Leave empty if the resource does not exist.
CrManifest
string
`protobuf:"bytes,3,opt,name=cr_manifest,json=crManifest,proto3" json:"cr_manifest,omitempty"`
// contains filtered or unexported fields
}
The request to generate the manifests for exclusivity artifacts.
func (*GenerateExclusivityManifestRequest) Descriptor
func
(
*
GenerateExclusivityManifestRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GenerateExclusivityManifestRequest.ProtoReflect.Descriptor instead.
func (*GenerateExclusivityManifestRequest) GetCrManifest
func
(
x
*
GenerateExclusivityManifestRequest
)
GetCrManifest
()
string
func (*GenerateExclusivityManifestRequest) GetCrdManifest
func
(
x
*
GenerateExclusivityManifestRequest
)
GetCrdManifest
()
string
func (*GenerateExclusivityManifestRequest) GetName
func
(
x
*
GenerateExclusivityManifestRequest
)
GetName
()
string
func (*GenerateExclusivityManifestRequest) ProtoMessage
func
(
*
GenerateExclusivityManifestRequest
)
ProtoMessage
()
func (*GenerateExclusivityManifestRequest) ProtoReflect
func
(
x
*
GenerateExclusivityManifestRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GenerateExclusivityManifestRequest) Reset
func
(
x
*
GenerateExclusivityManifestRequest
)
Reset
()
func (*GenerateExclusivityManifestRequest) String
func
(
x
*
GenerateExclusivityManifestRequest
)
String
()
string
GenerateExclusivityManifestResponse
type
GenerateExclusivityManifestResponse
struct
{
// The YAML manifest of the membership CRD to apply if a newer version of the
// CRD is available. Empty if no update needs to be applied.
CrdManifest
string
`protobuf:"bytes,1,opt,name=crd_manifest,json=crdManifest,proto3" json:"crd_manifest,omitempty"`
// The YAML manifest of the membership CR to apply if a new version of the
// CR is available. Empty if no update needs to be applied.
CrManifest
string
`protobuf:"bytes,2,opt,name=cr_manifest,json=crManifest,proto3" json:"cr_manifest,omitempty"`
// contains filtered or unexported fields
}
The response of the exclusivity artifacts manifests for the client to apply.
func (*GenerateExclusivityManifestResponse) Descriptor
func
(
*
GenerateExclusivityManifestResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GenerateExclusivityManifestResponse.ProtoReflect.Descriptor instead.
func (*GenerateExclusivityManifestResponse) GetCrManifest
func
(
x
*
GenerateExclusivityManifestResponse
)
GetCrManifest
()
string
func (*GenerateExclusivityManifestResponse) GetCrdManifest
func
(
x
*
GenerateExclusivityManifestResponse
)
GetCrdManifest
()
string
func (*GenerateExclusivityManifestResponse) ProtoMessage
func
(
*
GenerateExclusivityManifestResponse
)
ProtoMessage
()
func (*GenerateExclusivityManifestResponse) ProtoReflect
func
(
x
*
GenerateExclusivityManifestResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*GenerateExclusivityManifestResponse) Reset
func
(
x
*
GenerateExclusivityManifestResponse
)
Reset
()
func (*GenerateExclusivityManifestResponse) String
func
(
x
*
GenerateExclusivityManifestResponse
)
String
()
string
GetMembershipRequest
type
GetMembershipRequest
struct
{
// Required. The Membership resource name in the format
// `projects/*/locations/*/memberships/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for GkeHubMembershipService.GetMembership
method.
func (*GetMembershipRequest) Descriptor
func
(
*
GetMembershipRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GetMembershipRequest.ProtoReflect.Descriptor instead.
func (*GetMembershipRequest) GetName
func
(
x
*
GetMembershipRequest
)
GetName
()
string
func (*GetMembershipRequest) ProtoMessage
func
(
*
GetMembershipRequest
)
ProtoMessage
()
func (*GetMembershipRequest) ProtoReflect
func
(
x
*
GetMembershipRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetMembershipRequest) Reset
func
(
x
*
GetMembershipRequest
)
Reset
()
func (*GetMembershipRequest) String
func
(
x
*
GetMembershipRequest
)
String
()
string
GkeCluster
type
GkeCluster
struct
{
// Immutable. Self-link of the GCP resource for the GKE cluster. For example:
//
// //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
//
// Zonal clusters are also supported.
ResourceLink
string
`protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
// Output only. If cluster_missing is set then it denotes that the GKE cluster
// no longer exists in the GKE Control Plane.
ClusterMissing
bool
`protobuf:"varint,3,opt,name=cluster_missing,json=clusterMissing,proto3" json:"cluster_missing,omitempty"`
// contains filtered or unexported fields
}
GkeCluster contains information specific to GKE clusters.
func (*GkeCluster) Descriptor
func
(
*
GkeCluster
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GkeCluster.ProtoReflect.Descriptor instead.
func (*GkeCluster) GetClusterMissing
func
(
x
*
GkeCluster
)
GetClusterMissing
()
bool
func (*GkeCluster) GetResourceLink
func
(
x
*
GkeCluster
)
GetResourceLink
()
string
func (*GkeCluster) ProtoMessage
func
(
*
GkeCluster
)
ProtoMessage
()
func (*GkeCluster) ProtoReflect
func
(
x
*
GkeCluster
)
ProtoReflect
()
protoreflect
.
Message
func (*GkeCluster) Reset
func
(
x
*
GkeCluster
)
Reset
()
func (*GkeCluster) String
func
(
x
*
GkeCluster
)
String
()
string
GkeHubMembershipServiceClient
type
GkeHubMembershipServiceClient
interface
{
// Lists Memberships in a given project and location.
ListMemberships
(
ctx
context
.
Context
,
in
*
ListMembershipsRequest
,
opts
...
grpc
.
CallOption
)
(
*
ListMembershipsResponse
,
error
)
// Gets the details of a Membership.
GetMembership
(
ctx
context
.
Context
,
in
*
GetMembershipRequest
,
opts
...
grpc
.
CallOption
)
(
*
Membership
,
error
)
// Creates a new Membership.
//
// **This is currently only supported for GKE clusters on Google Cloud**.
// To register other clusters, follow the instructions at
// https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
CreateMembership
(
ctx
context
.
Context
,
in
*
CreateMembershipRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Removes a Membership.
//
// **This is currently only supported for GKE clusters on Google Cloud**.
// To unregister other clusters, follow the instructions at
// https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
DeleteMembership
(
ctx
context
.
Context
,
in
*
DeleteMembershipRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Updates an existing Membership.
UpdateMembership
(
ctx
context
.
Context
,
in
*
UpdateMembershipRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Generates the manifest for deployment of the GKE connect agent.
//
// **This method is used internally by Google-provided libraries.**
// Most clients should not need to call this method directly.
GenerateConnectManifest
(
ctx
context
.
Context
,
in
*
GenerateConnectManifestRequest
,
opts
...
grpc
.
CallOption
)
(
*
GenerateConnectManifestResponse
,
error
)
// ValidateExclusivity validates the state of exclusivity in the cluster.
// The validation does not depend on an existing Hub membership resource.
ValidateExclusivity
(
ctx
context
.
Context
,
in
*
ValidateExclusivityRequest
,
opts
...
grpc
.
CallOption
)
(
*
ValidateExclusivityResponse
,
error
)
// GenerateExclusivityManifest generates the manifests to update the
// exclusivity artifacts in the cluster if needed.
//
// Exclusivity artifacts include the Membership custom resource definition
// (CRD) and the singleton Membership custom resource (CR). Combined with
// ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
// cluster is only registered to a single GKE Hub.
//
// The Membership CRD is versioned, and may require conversion when the GKE
// Hub API server begins serving a newer version of the CRD and
// corresponding CR. The response will be the converted CRD and CR if there
// are any differences between the versions.
GenerateExclusivityManifest
(
ctx
context
.
Context
,
in
*
GenerateExclusivityManifestRequest
,
opts
...
grpc
.
CallOption
)
(
*
GenerateExclusivityManifestResponse
,
error
)
}
GkeHubMembershipServiceClient is the client API for GkeHubMembershipService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream .
func NewGkeHubMembershipServiceClient
func
NewGkeHubMembershipServiceClient
(
cc
grpc
.
ClientConnInterface
)
GkeHubMembershipServiceClient
GkeHubMembershipServiceServer
type
GkeHubMembershipServiceServer
interface
{
// Lists Memberships in a given project and location.
ListMemberships
(
context
.
Context
,
*
ListMembershipsRequest
)
(
*
ListMembershipsResponse
,
error
)
// Gets the details of a Membership.
GetMembership
(
context
.
Context
,
*
GetMembershipRequest
)
(
*
Membership
,
error
)
// Creates a new Membership.
//
// **This is currently only supported for GKE clusters on Google Cloud**.
// To register other clusters, follow the instructions at
// https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
CreateMembership
(
context
.
Context
,
*
CreateMembershipRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Removes a Membership.
//
// **This is currently only supported for GKE clusters on Google Cloud**.
// To unregister other clusters, follow the instructions at
// https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
DeleteMembership
(
context
.
Context
,
*
DeleteMembershipRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Updates an existing Membership.
UpdateMembership
(
context
.
Context
,
*
UpdateMembershipRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Generates the manifest for deployment of the GKE connect agent.
//
// **This method is used internally by Google-provided libraries.**
// Most clients should not need to call this method directly.
GenerateConnectManifest
(
context
.
Context
,
*
GenerateConnectManifestRequest
)
(
*
GenerateConnectManifestResponse
,
error
)
// ValidateExclusivity validates the state of exclusivity in the cluster.
// The validation does not depend on an existing Hub membership resource.
ValidateExclusivity
(
context
.
Context
,
*
ValidateExclusivityRequest
)
(
*
ValidateExclusivityResponse
,
error
)
// GenerateExclusivityManifest generates the manifests to update the
// exclusivity artifacts in the cluster if needed.
//
// Exclusivity artifacts include the Membership custom resource definition
// (CRD) and the singleton Membership custom resource (CR). Combined with
// ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
// cluster is only registered to a single GKE Hub.
//
// The Membership CRD is versioned, and may require conversion when the GKE
// Hub API server begins serving a newer version of the CRD and
// corresponding CR. The response will be the converted CRD and CR if there
// are any differences between the versions.
GenerateExclusivityManifest
(
context
.
Context
,
*
GenerateExclusivityManifestRequest
)
(
*
GenerateExclusivityManifestResponse
,
error
)
}
GkeHubMembershipServiceServer is the server API for GkeHubMembershipService service. All implementations should embed UnimplementedGkeHubMembershipServiceServer for forward compatibility
KubernetesMetadata
type
KubernetesMetadata
struct
{
// Output only. Kubernetes API server version string as reported by
// '/version'.
KubernetesApiServerVersion
string
`protobuf:"bytes,1,opt,name=kubernetes_api_server_version,json=kubernetesApiServerVersion,proto3" json:"kubernetes_api_server_version,omitempty"`
// Output only. Node providerID as reported by the first node in the list of
// nodes on the Kubernetes endpoint. On Kubernetes platforms that support
// zero-node clusters (like GKE-on-GCP), the node_count will be zero and the
// node_provider_id will be empty.
NodeProviderId
string
`protobuf:"bytes,2,opt,name=node_provider_id,json=nodeProviderId,proto3" json:"node_provider_id,omitempty"`
// Output only. Node count as reported by Kubernetes nodes resources.
NodeCount
int32
`protobuf:"varint,3,opt,name=node_count,json=nodeCount,proto3" json:"node_count,omitempty"`
// Output only. vCPU count as reported by Kubernetes nodes resources.
VcpuCount
int32
`protobuf:"varint,4,opt,name=vcpu_count,json=vcpuCount,proto3" json:"vcpu_count,omitempty"`
// Output only. The total memory capacity as reported by the sum of all
// Kubernetes nodes resources, defined in MB.
MemoryMb
int32
`protobuf:"varint,5,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"`
// Output only. The time at which these details were last updated. This
// update_time is different from the Membership-level update_time since
// EndpointDetails are updated internally for API consumers.
UpdateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,100,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}
KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters.
func (*KubernetesMetadata) Descriptor
func
(
*
KubernetesMetadata
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use KubernetesMetadata.ProtoReflect.Descriptor instead.
func (*KubernetesMetadata) GetKubernetesApiServerVersion
func
(
x
*
KubernetesMetadata
)
GetKubernetesApiServerVersion
()
string
func (*KubernetesMetadata) GetMemoryMb
func
(
x
*
KubernetesMetadata
)
GetMemoryMb
()
int32
func (*KubernetesMetadata) GetNodeCount
func
(
x
*
KubernetesMetadata
)
GetNodeCount
()
int32
func (*KubernetesMetadata) GetNodeProviderId
func
(
x
*
KubernetesMetadata
)
GetNodeProviderId
()
string
func (*KubernetesMetadata) GetUpdateTime
func
(
x
*
KubernetesMetadata
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*KubernetesMetadata) GetVcpuCount
func
(
x
*
KubernetesMetadata
)
GetVcpuCount
()
int32
func (*KubernetesMetadata) ProtoMessage
func
(
*
KubernetesMetadata
)
ProtoMessage
()
func (*KubernetesMetadata) ProtoReflect
func
(
x
*
KubernetesMetadata
)
ProtoReflect
()
protoreflect
.
Message
func (*KubernetesMetadata) Reset
func
(
x
*
KubernetesMetadata
)
Reset
()
func (*KubernetesMetadata) String
func
(
x
*
KubernetesMetadata
)
String
()
string
KubernetesResource
type
KubernetesResource
struct
{
// Input only. The YAML representation of the Membership CR. This field is
// ignored for GKE clusters where Hub can read the CR directly.
//
// Callers should provide the CR that is currently present in the cluster
// during CreateMembership or UpdateMembership, or leave this field empty if
// none exists. The CR manifest is used to validate the cluster has not been
// registered with another Membership.
MembershipCrManifest
string
`protobuf:"bytes,1,opt,name=membership_cr_manifest,json=membershipCrManifest,proto3" json:"membership_cr_manifest,omitempty"`
// Output only. Additional Kubernetes resources that need to be applied to the
// cluster after Membership creation, and after every update.
//
// This field is only populated in the Membership returned from a successful
// long-running operation from CreateMembership or UpdateMembership. It is not
// populated during normal GetMembership or ListMemberships requests. To get
// the resource manifest after the initial registration, the caller should
// make a UpdateMembership call with an empty field mask.
MembershipResources
[]
*
ResourceManifest
`protobuf:"bytes,2,rep,name=membership_resources,json=membershipResources,proto3" json:"membership_resources,omitempty"`
// Output only. The Kubernetes resources for installing the GKE Connect agent
//
// This field is only populated in the Membership returned from a successful
// long-running operation from CreateMembership or UpdateMembership. It is not
// populated during normal GetMembership or ListMemberships requests. To get
// the resource manifest after the initial registration, the caller should
// make a UpdateMembership call with an empty field mask.
ConnectResources
[]
*
ResourceManifest
`protobuf:"bytes,3,rep,name=connect_resources,json=connectResources,proto3" json:"connect_resources,omitempty"`
// Optional. Options for Kubernetes resource generation.
ResourceOptions
*
ResourceOptions
`protobuf:"bytes,4,opt,name=resource_options,json=resourceOptions,proto3" json:"resource_options,omitempty"`
// contains filtered or unexported fields
}
KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster. After CreateMembership or UpdateMembership, these resources should be re-applied in the cluster.
func (*KubernetesResource) Descriptor
func
(
*
KubernetesResource
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use KubernetesResource.ProtoReflect.Descriptor instead.
func (*KubernetesResource) GetConnectResources
func
(
x
*
KubernetesResource
)
GetConnectResources
()
[]
*
ResourceManifest
func (*KubernetesResource) GetMembershipCrManifest
func
(
x
*
KubernetesResource
)
GetMembershipCrManifest
()
string
func (*KubernetesResource) GetMembershipResources
func
(
x
*
KubernetesResource
)
GetMembershipResources
()
[]
*
ResourceManifest
func (*KubernetesResource) GetResourceOptions
func
(
x
*
KubernetesResource
)
GetResourceOptions
()
*
ResourceOptions
func (*KubernetesResource) ProtoMessage
func
(
*
KubernetesResource
)
ProtoMessage
()
func (*KubernetesResource) ProtoReflect
func
(
x
*
KubernetesResource
)
ProtoReflect
()
protoreflect
.
Message
func (*KubernetesResource) Reset
func
(
x
*
KubernetesResource
)
Reset
()
func (*KubernetesResource) String
func
(
x
*
KubernetesResource
)
String
()
string
ListMembershipsRequest
type
ListMembershipsRequest
struct
{
// Required. The parent (project and location) where the Memberships will be
// listed. Specified in the format `projects/*/locations/*`.
// `projects/*/locations/-` list memberships in all the regions.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. When requesting a 'page' of resources, `page_size` specifies
// number of resources to return. If unspecified or set to 0, all resources
// will be returned.
PageSize
int32
`protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. Token returned by previous call to `ListMemberships` which
// specifies the position in the list from where to continue listing the
// resources.
PageToken
string
`protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Lists Memberships that match the filter expression, following the
// syntax outlined in https://google.aip.dev/160.
//
// Examples:
//
// - Name is `bar` in project `foo-proj` and location `global`:
//
// name = "projects/foo-proj/locations/global/membership/bar"
//
// - Memberships that have a label called `foo`:
//
// labels.foo:*
//
// - Memberships that have a label called `foo` whose value is `bar`:
//
// labels.foo = bar
//
// - Memberships in the CREATING state:
//
// state = CREATING
Filter
string
`protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. One or more fields to compare and use to sort the output.
// See https://google.aip.dev/132#ordering.
OrderBy
string
`protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
Request message for GkeHubMembershipService.ListMemberships
method.
func (*ListMembershipsRequest) Descriptor
func
(
*
ListMembershipsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListMembershipsRequest.ProtoReflect.Descriptor instead.
func (*ListMembershipsRequest) GetFilter
func
(
x
*
ListMembershipsRequest
)
GetFilter
()
string
func (*ListMembershipsRequest) GetOrderBy
func
(
x
*
ListMembershipsRequest
)
GetOrderBy
()
string
func (*ListMembershipsRequest) GetPageSize
func
(
x
*
ListMembershipsRequest
)
GetPageSize
()
int32
func (*ListMembershipsRequest) GetPageToken
func
(
x
*
ListMembershipsRequest
)
GetPageToken
()
string
func (*ListMembershipsRequest) GetParent
func
(
x
*
ListMembershipsRequest
)
GetParent
()
string
func (*ListMembershipsRequest) ProtoMessage
func
(
*
ListMembershipsRequest
)
ProtoMessage
()
func (*ListMembershipsRequest) ProtoReflect
func
(
x
*
ListMembershipsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListMembershipsRequest) Reset
func
(
x
*
ListMembershipsRequest
)
Reset
()
func (*ListMembershipsRequest) String
func
(
x
*
ListMembershipsRequest
)
String
()
string
ListMembershipsResponse
type
ListMembershipsResponse
struct
{
// The list of matching Memberships.
Resources
[]
*
Membership
`protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
// A token to request the next page of resources from the
// `ListMemberships` method. The value of an empty string means that
// there are no more resources to return.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// List of locations that could not be reached while fetching this list.
Unreachable
[]
string
`protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}
Response message for the GkeHubMembershipService.ListMemberships
method.
func (*ListMembershipsResponse) Descriptor
func
(
*
ListMembershipsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListMembershipsResponse.ProtoReflect.Descriptor instead.
func (*ListMembershipsResponse) GetNextPageToken
func
(
x
*
ListMembershipsResponse
)
GetNextPageToken
()
string
func (*ListMembershipsResponse) GetResources
func
(
x
*
ListMembershipsResponse
)
GetResources
()
[]
*
Membership
func (*ListMembershipsResponse) GetUnreachable
func
(
x
*
ListMembershipsResponse
)
GetUnreachable
()
[]
string
func (*ListMembershipsResponse) ProtoMessage
func
(
*
ListMembershipsResponse
)
ProtoMessage
()
func (*ListMembershipsResponse) ProtoReflect
func
(
x
*
ListMembershipsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListMembershipsResponse) Reset
func
(
x
*
ListMembershipsResponse
)
Reset
()
func (*ListMembershipsResponse) String
func
(
x
*
ListMembershipsResponse
)
String
()
string
Membership
type
Membership
struct
{
// Output only. The full, unique name of this Membership resource in the
// format `projects/*/locations/*/memberships/{membership_id}`, set during
// creation.
//
// `membership_id` must be a valid RFC 1123 compliant DNS label:
//
// 1. At most 63 characters in length
// 2. It must consist of lower case alphanumeric characters or `-`
// 3. It must start and end with an alphanumeric character
//
// Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
// with a maximum length of 63 characters.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. GCP labels for this membership.
Labels
map
[
string
]
string
`protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Description of this membership, limited to 63 characters.
// Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
Description
string
`protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Type of resource represented by this Membership
//
// Types that are assignable to Type:
//
// *Membership_Endpoint
Type
isMembership_Type
`protobuf_oneof:"type"`
// Output only. State of the Membership resource.
State
*
MembershipState
`protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
// Optional. How to identify workloads from this Membership.
// See the documentation on Workload Identity for more details:
// https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
Authority
*
Authority
`protobuf:"bytes,9,opt,name=authority,proto3" json:"authority,omitempty"`
// Output only. When the Membership was created.
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. When the Membership was last updated.
UpdateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. When the Membership was deleted.
DeleteTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
// Optional. An externally-generated and managed ID for this Membership. This
// ID may be modified after creation, but this is not recommended. For GKE
// clusters, external_id is managed by the Hub API and updates will be
// ignored.
//
// The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*`
//
// If this Membership represents a Kubernetes cluster, this value should be
// set to the UID of the `kube-system` namespace object.
ExternalId
string
`protobuf:"bytes,10,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
// Output only. For clusters using Connect, the timestamp of the most recent
// connection established with Google Cloud. This time is updated every
// several minutes, not continuously. For clusters that do not use GKE
// Connect, or that have never connected successfully, this field will be
// unset.
LastConnectionTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,11,opt,name=last_connection_time,json=lastConnectionTime,proto3" json:"last_connection_time,omitempty"`
// Output only. Google-generated UUID for this resource. This is unique across
// all Membership resources. If a Membership resource is deleted and another
// resource with the same name is created, it gets a different unique_id.
UniqueId
string
`protobuf:"bytes,12,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
// Optional. The infrastructure type this Membership is running on.
InfrastructureType
Membership_InfrastructureType
`protobuf:"varint,13,opt,name=infrastructure_type,json=infrastructureType,proto3,enum=google.cloud.gkehub.v1beta1.Membership_InfrastructureType" json:"infrastructure_type,omitempty"`
// Optional. The monitoring config information for this membership.
MonitoringConfig
*
MonitoringConfig
`protobuf:"bytes,14,opt,name=monitoring_config,json=monitoringConfig,proto3" json:"monitoring_config,omitempty"`
// contains filtered or unexported fields
}
Membership contains information about a member cluster.
func (*Membership) Descriptor
func
(
*
Membership
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Membership.ProtoReflect.Descriptor instead.
func (*Membership) GetAuthority
func
(
x
*
Membership
)
GetAuthority
()
*
Authority
func (*Membership) GetCreateTime
func
(
x
*
Membership
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Membership) GetDeleteTime
func
(
x
*
Membership
)
GetDeleteTime
()
*
timestamppb
.
Timestamp
func (*Membership) GetDescription
func
(
x
*
Membership
)
GetDescription
()
string
func (*Membership) GetEndpoint
func
(
x
*
Membership
)
GetEndpoint
()
*
MembershipEndpoint
func (*Membership) GetExternalId
func
(
x
*
Membership
)
GetExternalId
()
string
func (*Membership) GetInfrastructureType
func
(
x
*
Membership
)
GetInfrastructureType
()
Membership_InfrastructureType
func (*Membership) GetLabels
func
(
x
*
Membership
)
GetLabels
()
map
[
string
]
string
func (*Membership) GetLastConnectionTime
func
(
x
*
Membership
)
GetLastConnectionTime
()
*
timestamppb
.
Timestamp
func (*Membership) GetMonitoringConfig
func
(
x
*
Membership
)
GetMonitoringConfig
()
*
MonitoringConfig
func (*Membership) GetName
func
(
x
*
Membership
)
GetName
()
string
func (*Membership) GetState
func
(
x
*
Membership
)
GetState
()
*
MembershipState
func (*Membership) GetType
func
(
m
*
Membership
)
GetType
()
isMembership_Type
func (*Membership) GetUniqueId
func
(
x
*
Membership
)
GetUniqueId
()
string
func (*Membership) GetUpdateTime
func
(
x
*
Membership
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*Membership) ProtoMessage
func
(
*
Membership
)
ProtoMessage
()
func (*Membership) ProtoReflect
func
(
x
*
Membership
)
ProtoReflect
()
protoreflect
.
Message
func (*Membership) Reset
func
(
x
*
Membership
)
Reset
()
func (*Membership) String
func
(
x
*
Membership
)
String
()
string
MembershipEndpoint
type
MembershipEndpoint
struct
{
// Cluster information of the registered cluster.
//
// Types that are assignable to Type:
//
// *MembershipEndpoint_GkeCluster
// *MembershipEndpoint_OnPremCluster
// *MembershipEndpoint_MultiCloudCluster
// *MembershipEndpoint_EdgeCluster
// *MembershipEndpoint_ApplianceCluster
Type
isMembershipEndpoint_Type
`protobuf_oneof:"type"`
// Output only. Useful Kubernetes-specific metadata.
KubernetesMetadata
*
KubernetesMetadata
`protobuf:"bytes,5,opt,name=kubernetes_metadata,json=kubernetesMetadata,proto3" json:"kubernetes_metadata,omitempty"`
// Optional. The in-cluster Kubernetes Resources that should be applied for a
// correctly registered cluster, in the steady state. These resources:
//
// - Ensure that the cluster is exclusively registered to one and only one
// Hub Membership.
// - Propagate Workload Pool Information available in the Membership
// Authority field.
// - Ensure proper initial configuration of default Hub Features.
KubernetesResource
*
KubernetesResource
`protobuf:"bytes,6,opt,name=kubernetes_resource,json=kubernetesResource,proto3" json:"kubernetes_resource,omitempty"`
// contains filtered or unexported fields
}
MembershipEndpoint contains information needed to contact a Kubernetes API, endpoint and any additional Kubernetes metadata.
func (*MembershipEndpoint) Descriptor
func
(
*
MembershipEndpoint
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use MembershipEndpoint.ProtoReflect.Descriptor instead.
func (*MembershipEndpoint) GetApplianceCluster
func
(
x
*
MembershipEndpoint
)
GetApplianceCluster
()
*
ApplianceCluster
func (*MembershipEndpoint) GetEdgeCluster
func
(
x
*
MembershipEndpoint
)
GetEdgeCluster
()
*
EdgeCluster
func (*MembershipEndpoint) GetGkeCluster
func
(
x
*
MembershipEndpoint
)
GetGkeCluster
()
*
GkeCluster
func (*MembershipEndpoint) GetKubernetesMetadata
func
(
x
*
MembershipEndpoint
)
GetKubernetesMetadata
()
*
KubernetesMetadata
func (*MembershipEndpoint) GetKubernetesResource
func
(
x
*
MembershipEndpoint
)
GetKubernetesResource
()
*
KubernetesResource
func (*MembershipEndpoint) GetMultiCloudCluster
func
(
x
*
MembershipEndpoint
)
GetMultiCloudCluster
()
*
MultiCloudCluster
func (*MembershipEndpoint) GetOnPremCluster
func
(
x
*
MembershipEndpoint
)
GetOnPremCluster
()
*
OnPremCluster
func (*MembershipEndpoint) GetType
func
(
m
*
MembershipEndpoint
)
GetType
()
isMembershipEndpoint_Type
func (*MembershipEndpoint) ProtoMessage
func
(
*
MembershipEndpoint
)
ProtoMessage
()
func (*MembershipEndpoint) ProtoReflect
func
(
x
*
MembershipEndpoint
)
ProtoReflect
()
protoreflect
.
Message
func (*MembershipEndpoint) Reset
func
(
x
*
MembershipEndpoint
)
Reset
()
func (*MembershipEndpoint) String
func
(
x
*
MembershipEndpoint
)
String
()
string
MembershipEndpoint_ApplianceCluster
type
MembershipEndpoint_ApplianceCluster
struct
{
// Optional. Specific information for a GDC Edge Appliance cluster.
ApplianceCluster
*
ApplianceCluster
`protobuf:"bytes,10,opt,name=appliance_cluster,json=applianceCluster,proto3,oneof"`
}
MembershipEndpoint_EdgeCluster
type
MembershipEndpoint_EdgeCluster
struct
{
// Optional. Specific information for a Google Edge cluster.
EdgeCluster
*
EdgeCluster
`protobuf:"bytes,9,opt,name=edge_cluster,json=edgeCluster,proto3,oneof"`
}
MembershipEndpoint_GkeCluster
type
MembershipEndpoint_GkeCluster
struct
{
// Optional. Specific information for a GKE-on-GCP cluster.
GkeCluster
*
GkeCluster
`protobuf:"bytes,4,opt,name=gke_cluster,json=gkeCluster,proto3,oneof"`
}
MembershipEndpoint_MultiCloudCluster
type
MembershipEndpoint_MultiCloudCluster
struct
{
// Optional. Specific information for a GKE Multi-Cloud cluster.
MultiCloudCluster
*
MultiCloudCluster
`protobuf:"bytes,8,opt,name=multi_cloud_cluster,json=multiCloudCluster,proto3,oneof"`
}
MembershipEndpoint_OnPremCluster
type
MembershipEndpoint_OnPremCluster
struct
{
// Optional. Specific information for a GKE On-Prem cluster. An onprem
// user-cluster who has no resourceLink is not allowed to use this field, it
// should have a nil "type" instead.
OnPremCluster
*
OnPremCluster
`protobuf:"bytes,7,opt,name=on_prem_cluster,json=onPremCluster,proto3,oneof"`
}
MembershipState
type
MembershipState
struct
{
// Output only. The current state of the Membership resource.
Code
MembershipState_Code
`protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.gkehub.v1beta1.MembershipState_Code" json:"code,omitempty"`
// This field is never set by the Hub Service.
//
// Deprecated: Marked as deprecated in google/cloud/gkehub/v1beta1/membership.proto.
Description
string
`protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// This field is never set by the Hub Service.
//
// Deprecated: Marked as deprecated in google/cloud/gkehub/v1beta1/membership.proto.
UpdateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}
State of the Membership resource.
func (*MembershipState) Descriptor
func
(
*
MembershipState
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use MembershipState.ProtoReflect.Descriptor instead.
func (*MembershipState) GetCode
func
(
x
*
MembershipState
)
GetCode
()
MembershipState_Code
func (*MembershipState) GetDescription
func
(
x
*
MembershipState
)
GetDescription
()
string
Deprecated: Marked as deprecated in google/cloud/gkehub/v1beta1/membership.proto.
func (*MembershipState) GetUpdateTime
func
(
x
*
MembershipState
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
Deprecated: Marked as deprecated in google/cloud/gkehub/v1beta1/membership.proto.
func (*MembershipState) ProtoMessage
func
(
*
MembershipState
)
ProtoMessage
()
func (*MembershipState) ProtoReflect
func
(
x
*
MembershipState
)
ProtoReflect
()
protoreflect
.
Message
func (*MembershipState) Reset
func
(
x
*
MembershipState
)
Reset
()
func (*MembershipState) String
func
(
x
*
MembershipState
)
String
()
string
MembershipState_Code
type
MembershipState_Code
int32
Code describes the state of a Membership resource.
MembershipState_CODE_UNSPECIFIED, MembershipState_CREATING, MembershipState_READY, MembershipState_DELETING, MembershipState_UPDATING, MembershipState_SERVICE_UPDATING
const
(
// The code is not set.
MembershipState_CODE_UNSPECIFIED
MembershipState_Code
=
0
// The cluster is being registered.
MembershipState_CREATING
MembershipState_Code
=
1
// The cluster is registered.
MembershipState_READY
MembershipState_Code
=
2
// The cluster is being unregistered.
MembershipState_DELETING
MembershipState_Code
=
3
// The Membership is being updated.
MembershipState_UPDATING
MembershipState_Code
=
4
// The Membership is being updated by the Hub Service.
MembershipState_SERVICE_UPDATING
MembershipState_Code
=
5
)
func (MembershipState_Code) Descriptor
func
(
MembershipState_Code
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (MembershipState_Code) Enum
func
(
x
MembershipState_Code
)
Enum
()
*
MembershipState_Code
func (MembershipState_Code) EnumDescriptor
func
(
MembershipState_Code
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use MembershipState_Code.Descriptor instead.
func (MembershipState_Code) Number
func
(
x
MembershipState_Code
)
Number
()
protoreflect
.
EnumNumber
func (MembershipState_Code) String
func
(
x
MembershipState_Code
)
String
()
string
func (MembershipState_Code) Type
func
(
MembershipState_Code
)
Type
()
protoreflect
.
EnumType
Membership_Endpoint
type
Membership_Endpoint
struct
{
// Optional. Endpoint information to reach this member.
Endpoint
*
MembershipEndpoint
`protobuf:"bytes,4,opt,name=endpoint,proto3,oneof"`
}
Membership_InfrastructureType
type
Membership_InfrastructureType
int32
Specifies the infrastructure type of a Membership. Infrastructure type is used by Hub to control infrastructure-specific behavior, including pricing.
Each GKE distribution (on-GCP, on-Prem, on-X,...) will set this field automatically, but Attached Clusters customers should specify a type during registration.
Membership_INFRASTRUCTURE_TYPE_UNSPECIFIED, Membership_ON_PREM, Membership_MULTI_CLOUD
const
(
// No type was specified. Some Hub functionality may require a type be
// specified, and will not support Memberships with this value.
Membership_INFRASTRUCTURE_TYPE_UNSPECIFIED
Membership_InfrastructureType
=
0
// Private infrastructure that is owned or operated by customer. This
// includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
Membership_ON_PREM
Membership_InfrastructureType
=
1
// Public cloud infrastructure.
Membership_MULTI_CLOUD
Membership_InfrastructureType
=
2
)
func (Membership_InfrastructureType) Descriptor
func
(
Membership_InfrastructureType
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (Membership_InfrastructureType) Enum
func
(
x
Membership_InfrastructureType
)
Enum
()
*
Membership_InfrastructureType
func (Membership_InfrastructureType) EnumDescriptor
func
(
Membership_InfrastructureType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Membership_InfrastructureType.Descriptor instead.
func (Membership_InfrastructureType) Number
func
(
x
Membership_InfrastructureType
)
Number
()
protoreflect
.
EnumNumber
func (Membership_InfrastructureType) String
func
(
x
Membership_InfrastructureType
)
String
()
string
func (Membership_InfrastructureType) Type
func
(
Membership_InfrastructureType
)
Type
()
protoreflect
.
EnumType
MonitoringConfig
type
MonitoringConfig
struct
{
// Immutable. Project used to report Metrics
ProjectId
string
`protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Immutable. Location used to report Metrics
Location
string
`protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// Immutable. Cluster name used to report metrics.
// For Anthos on VMWare/Baremetal, it would be in format
// `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
// format
// `{azureClusters, awsClusters}/cluster_name`.
Cluster
string
`protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Kubernetes system metrics, if available, are written to this prefix.
// This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
// eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
// but will migration to be under kubernetes.io/anthos
KubernetesMetricsPrefix
string
`protobuf:"bytes,4,opt,name=kubernetes_metrics_prefix,json=kubernetesMetricsPrefix,proto3" json:"kubernetes_metrics_prefix,omitempty"`
// Immutable. Cluster hash, this is a unique string generated by google code,
// which does not contain any PII, which we can use to reference the cluster.
// This is expected to be created by the monitoring stack and persisted into
// the Cluster object as well as to GKE-Hub.
ClusterHash
string
`protobuf:"bytes,5,opt,name=cluster_hash,json=clusterHash,proto3" json:"cluster_hash,omitempty"`
// contains filtered or unexported fields
}
This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.
func (*MonitoringConfig) Descriptor
func
(
*
MonitoringConfig
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use MonitoringConfig.ProtoReflect.Descriptor instead.
func (*MonitoringConfig) GetCluster
func
(
x
*
MonitoringConfig
)
GetCluster
()
string
func (*MonitoringConfig) GetClusterHash
func
(
x
*
MonitoringConfig
)
GetClusterHash
()
string
func (*MonitoringConfig) GetKubernetesMetricsPrefix
func
(
x
*
MonitoringConfig
)
GetKubernetesMetricsPrefix
()
string
func (*MonitoringConfig) GetLocation
func
(
x
*
MonitoringConfig
)
GetLocation
()
string
func (*MonitoringConfig) GetProjectId
func
(
x
*
MonitoringConfig
)
GetProjectId
()
string
func (*MonitoringConfig) ProtoMessage
func
(
*
MonitoringConfig
)
ProtoMessage
()
func (*MonitoringConfig) ProtoReflect
func
(
x
*
MonitoringConfig
)
ProtoReflect
()
protoreflect
.
Message
func (*MonitoringConfig) Reset
func
(
x
*
MonitoringConfig
)
Reset
()
func (*MonitoringConfig) String
func
(
x
*
MonitoringConfig
)
String
()
string
MultiCloudCluster
type
MultiCloudCluster
struct
{
// Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster.
// For example:
//
// //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
// //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
// //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/my-cluster
ResourceLink
string
`protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
// Output only. If cluster_missing is set then it denotes that
// API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
// no longer exists.
ClusterMissing
bool
`protobuf:"varint,2,opt,name=cluster_missing,json=clusterMissing,proto3" json:"cluster_missing,omitempty"`
// contains filtered or unexported fields
}
MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
func (*MultiCloudCluster) Descriptor
func
(
*
MultiCloudCluster
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use MultiCloudCluster.ProtoReflect.Descriptor instead.
func (*MultiCloudCluster) GetClusterMissing
func
(
x
*
MultiCloudCluster
)
GetClusterMissing
()
bool
func (*MultiCloudCluster) GetResourceLink
func
(
x
*
MultiCloudCluster
)
GetResourceLink
()
string
func (*MultiCloudCluster) ProtoMessage
func
(
*
MultiCloudCluster
)
ProtoMessage
()
func (*MultiCloudCluster) ProtoReflect
func
(
x
*
MultiCloudCluster
)
ProtoReflect
()
protoreflect
.
Message
func (*MultiCloudCluster) Reset
func
(
x
*
MultiCloudCluster
)
Reset
()
func (*MultiCloudCluster) String
func
(
x
*
MultiCloudCluster
)
String
()
string
OnPremCluster
type
OnPremCluster
struct
{
// Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For
// example:
//
// //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
// //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
ResourceLink
string
`protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
// Output only. If cluster_missing is set then it denotes that
// API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
// longer exists.
ClusterMissing
bool
`protobuf:"varint,2,opt,name=cluster_missing,json=clusterMissing,proto3" json:"cluster_missing,omitempty"`
// Immutable. Whether the cluster is an admin cluster.
AdminCluster
bool
`protobuf:"varint,3,opt,name=admin_cluster,json=adminCluster,proto3" json:"admin_cluster,omitempty"`
// Immutable. The on prem cluster's type.
ClusterType
OnPremCluster_ClusterType
`protobuf:"varint,4,opt,name=cluster_type,json=clusterType,proto3,enum=google.cloud.gkehub.v1beta1.OnPremCluster_ClusterType" json:"cluster_type,omitempty"`
// contains filtered or unexported fields
}
OnPremCluster contains information specific to GKE On-Prem clusters.
func (*OnPremCluster) Descriptor
func
(
*
OnPremCluster
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use OnPremCluster.ProtoReflect.Descriptor instead.
func (*OnPremCluster) GetAdminCluster
func
(
x
*
OnPremCluster
)
GetAdminCluster
()
bool
func (*OnPremCluster) GetClusterMissing
func
(
x
*
OnPremCluster
)
GetClusterMissing
()
bool
func (*OnPremCluster) GetClusterType
func
(
x
*
OnPremCluster
)
GetClusterType
()
OnPremCluster_ClusterType
func (*OnPremCluster) GetResourceLink
func
(
x
*
OnPremCluster
)
GetResourceLink
()
string
func (*OnPremCluster) ProtoMessage
func
(
*
OnPremCluster
)
ProtoMessage
()
func (*OnPremCluster) ProtoReflect
func
(
x
*
OnPremCluster
)
ProtoReflect
()
protoreflect
.
Message
func (*OnPremCluster) Reset
func
(
x
*
OnPremCluster
)
Reset
()
func (*OnPremCluster) String
func
(
x
*
OnPremCluster
)
String
()
string
OnPremCluster_ClusterType
type
OnPremCluster_ClusterType
int32
ClusterType describes on prem cluster's type.
OnPremCluster_CLUSTERTYPE_UNSPECIFIED, OnPremCluster_BOOTSTRAP, OnPremCluster_HYBRID, OnPremCluster_STANDALONE, OnPremCluster_USER
const
(
// The ClusterType is not set.
OnPremCluster_CLUSTERTYPE_UNSPECIFIED
OnPremCluster_ClusterType
=
0
// The ClusterType is bootstrap cluster.
OnPremCluster_BOOTSTRAP
OnPremCluster_ClusterType
=
1
// The ClusterType is baremetal hybrid cluster.
OnPremCluster_HYBRID
OnPremCluster_ClusterType
=
2
// The ClusterType is baremetal standalone cluster.
OnPremCluster_STANDALONE
OnPremCluster_ClusterType
=
3
// The ClusterType is user cluster.
OnPremCluster_USER
OnPremCluster_ClusterType
=
4
)
func (OnPremCluster_ClusterType) Descriptor
func
(
OnPremCluster_ClusterType
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (OnPremCluster_ClusterType) Enum
func
(
x
OnPremCluster_ClusterType
)
Enum
()
*
OnPremCluster_ClusterType
func (OnPremCluster_ClusterType) EnumDescriptor
func
(
OnPremCluster_ClusterType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use OnPremCluster_ClusterType.Descriptor instead.
func (OnPremCluster_ClusterType) Number
func
(
x
OnPremCluster_ClusterType
)
Number
()
protoreflect
.
EnumNumber
func (OnPremCluster_ClusterType) String
func
(
x
OnPremCluster_ClusterType
)
String
()
string
func (OnPremCluster_ClusterType) Type
func
(
OnPremCluster_ClusterType
)
Type
()
protoreflect
.
EnumType
OperationMetadata
type
OperationMetadata
struct
{
// Output only. The time the operation was created.
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target
string
`protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb
string
`protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusDetail
string
`protobuf:"bytes,5,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
CancelRequested
bool
`protobuf:"varint,6,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"`
// Output only. API version used to start the operation.
ApiVersion
string
`protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}
Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func
(
*
OperationMetadata
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func
(
x
*
OperationMetadata
)
GetApiVersion
()
string
func (*OperationMetadata) GetCancelRequested
func
(
x
*
OperationMetadata
)
GetCancelRequested
()
bool
func (*OperationMetadata) GetCreateTime
func
(
x
*
OperationMetadata
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*OperationMetadata) GetEndTime
func
(
x
*
OperationMetadata
)
GetEndTime
()
*
timestamppb
.
Timestamp
func (*OperationMetadata) GetStatusDetail
func
(
x
*
OperationMetadata
)
GetStatusDetail
()
string
func (*OperationMetadata) GetTarget
func
(
x
*
OperationMetadata
)
GetTarget
()
string
func (*OperationMetadata) GetVerb
func
(
x
*
OperationMetadata
)
GetVerb
()
string
func (*OperationMetadata) ProtoMessage
func
(
*
OperationMetadata
)
ProtoMessage
()
func (*OperationMetadata) ProtoReflect
func
(
x
*
OperationMetadata
)
ProtoReflect
()
protoreflect
.
Message
func (*OperationMetadata) Reset
func
(
x
*
OperationMetadata
)
Reset
()
func (*OperationMetadata) String
func
(
x
*
OperationMetadata
)
String
()
string
ResourceManifest
type
ResourceManifest
struct
{
// YAML manifest of the resource.
Manifest
string
`protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"`
// Whether the resource provided in the manifest is `cluster_scoped`.
// If unset, the manifest is assumed to be namespace scoped.
//
// This field is used for REST mapping when applying the resource in a
// cluster.
ClusterScoped
bool
`protobuf:"varint,2,opt,name=cluster_scoped,json=clusterScoped,proto3" json:"cluster_scoped,omitempty"`
// contains filtered or unexported fields
}
ResourceManifest represents a single Kubernetes resource to be applied to the cluster.
func (*ResourceManifest) Descriptor
func
(
*
ResourceManifest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ResourceManifest.ProtoReflect.Descriptor instead.
func (*ResourceManifest) GetClusterScoped
func
(
x
*
ResourceManifest
)
GetClusterScoped
()
bool
func (*ResourceManifest) GetManifest
func
(
x
*
ResourceManifest
)
GetManifest
()
string
func (*ResourceManifest) ProtoMessage
func
(
*
ResourceManifest
)
ProtoMessage
()
func (*ResourceManifest) ProtoReflect
func
(
x
*
ResourceManifest
)
ProtoReflect
()
protoreflect
.
Message
func (*ResourceManifest) Reset
func
(
x
*
ResourceManifest
)
Reset
()
func (*ResourceManifest) String
func
(
x
*
ResourceManifest
)
String
()
string
ResourceOptions
type
ResourceOptions
struct
{
// Optional. The Connect agent version to use for connect_resources. Defaults
// to the latest GKE Connect version. The version must be a currently
// supported version, obsolete versions will be rejected.
ConnectVersion
string
`protobuf:"bytes,1,opt,name=connect_version,json=connectVersion,proto3" json:"connect_version,omitempty"`
// Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
// CustomResourceDefinition resources.
// This option should be set for clusters with Kubernetes apiserver versions
// <1.16. v1beta1crd=""> bool
`protobuf:"varint,2,opt,name=v1beta1_crd,json=v1beta1Crd,proto3" json:"v1beta1_crd,omitempty"`
// Optional. Major and minor version of the Kubernetes cluster. This is only
// used to determine which version to use for the CustomResourceDefinition
// resources, `apiextensions/v1beta1` or`apiextensions/v1`.
K8SVersion
string
`protobuf:"bytes,3,opt,name=k8s_version,json=k8sVersion,proto3" json:"k8s_version,omitempty"`
// Optional. Git version of the Kubernetes cluster. This is only used to gate
// the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and
// above.
K8SGitVersion
string
`protobuf:"bytes,4,opt,name=k8s_git_version,json=k8sGitVersion,proto3" json:"k8s_git_version,omitempty"`
// contains filtered or unexported fields
}
ResourceOptions represent options for Kubernetes resource generation.
func (*ResourceOptions) Descriptor
func
(
*
ResourceOptions
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ResourceOptions.ProtoReflect.Descriptor instead.
func (*ResourceOptions) GetConnectVersion
func
(
x
*
ResourceOptions
)
GetConnectVersion
()
string
func (*ResourceOptions) GetK8SGitVersion
func
(
x
*
ResourceOptions
)
GetK8SGitVersion
()
string
func (*ResourceOptions) GetK8SVersion
func
(
x
*
ResourceOptions
)
GetK8SVersion
()
string
func (*ResourceOptions) GetV1Beta1Crd
func
(
x
*
ResourceOptions
)
GetV1Beta1Crd
()
bool
func (*ResourceOptions) ProtoMessage
func
(
*
ResourceOptions
)
ProtoMessage
()
func (*ResourceOptions) ProtoReflect
func
(
x
*
ResourceOptions
)
ProtoReflect
()
protoreflect
.
Message
func (*ResourceOptions) Reset
func
(
x
*
ResourceOptions
)
Reset
()
func (*ResourceOptions) String
func
(
x
*
ResourceOptions
)
String
()
string
TypeMeta
type
TypeMeta
struct
{
// Kind of the resource (e.g. Deployment).
Kind
string
`protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
// APIVersion of the resource (e.g. v1).
ApiVersion
string
`protobuf:"bytes,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}
TypeMeta is the type information needed for content unmarshalling of Kubernetes resources in the manifest.
func (*TypeMeta) Descriptor
Deprecated: Use TypeMeta.ProtoReflect.Descriptor instead.
func (*TypeMeta) GetApiVersion
func (*TypeMeta) GetKind
func (*TypeMeta) ProtoMessage
func
(
*
TypeMeta
)
ProtoMessage
()
func (*TypeMeta) ProtoReflect
func
(
x
*
TypeMeta
)
ProtoReflect
()
protoreflect
.
Message
func (*TypeMeta) Reset
func
(
x
*
TypeMeta
)
Reset
()
func (*TypeMeta) String
UnimplementedGkeHubMembershipServiceServer
type
UnimplementedGkeHubMembershipServiceServer
struct
{
}
UnimplementedGkeHubMembershipServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedGkeHubMembershipServiceServer) CreateMembership
func
(
UnimplementedGkeHubMembershipServiceServer
)
CreateMembership
(
context
.
Context
,
*
CreateMembershipRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (UnimplementedGkeHubMembershipServiceServer) DeleteMembership
func
(
UnimplementedGkeHubMembershipServiceServer
)
DeleteMembership
(
context
.
Context
,
*
DeleteMembershipRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (UnimplementedGkeHubMembershipServiceServer) GenerateConnectManifest
func
(
UnimplementedGkeHubMembershipServiceServer
)
GenerateConnectManifest
(
context
.
Context
,
*
GenerateConnectManifestRequest
)
(
*
GenerateConnectManifestResponse
,
error
)
func (UnimplementedGkeHubMembershipServiceServer) GenerateExclusivityManifest
func
(
UnimplementedGkeHubMembershipServiceServer
)
GenerateExclusivityManifest
(
context
.
Context
,
*
GenerateExclusivityManifestRequest
)
(
*
GenerateExclusivityManifestResponse
,
error
)
func (UnimplementedGkeHubMembershipServiceServer) GetMembership
func
(
UnimplementedGkeHubMembershipServiceServer
)
GetMembership
(
context
.
Context
,
*
GetMembershipRequest
)
(
*
Membership
,
error
)
func (UnimplementedGkeHubMembershipServiceServer) ListMemberships
func
(
UnimplementedGkeHubMembershipServiceServer
)
ListMemberships
(
context
.
Context
,
*
ListMembershipsRequest
)
(
*
ListMembershipsResponse
,
error
)
func (UnimplementedGkeHubMembershipServiceServer) UpdateMembership
func
(
UnimplementedGkeHubMembershipServiceServer
)
UpdateMembership
(
context
.
Context
,
*
UpdateMembershipRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (UnimplementedGkeHubMembershipServiceServer) ValidateExclusivity
func
(
UnimplementedGkeHubMembershipServiceServer
)
ValidateExclusivity
(
context
.
Context
,
*
ValidateExclusivityRequest
)
(
*
ValidateExclusivityResponse
,
error
)
UnsafeGkeHubMembershipServiceServer
type
UnsafeGkeHubMembershipServiceServer
interface
{
// contains filtered or unexported methods
}
UnsafeGkeHubMembershipServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GkeHubMembershipServiceServer will result in compilation errors.
UpdateMembershipRequest
type
UpdateMembershipRequest
struct
{
// Required. The membership resource name in the format:
// `projects/[project_id]/locations/global/memberships/[membership_id]`
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Mask of fields to update. At least one field path must be
// specified in this mask.
UpdateMask
*
fieldmaskpb
.
FieldMask
`protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. Only fields specified in update_mask are updated.
// If you specify a field in the update_mask but don't specify its value here
// that field will be deleted.
// If you are updating a map field, set the value of a key to null or empty
// string to delete the key from the map. It's not possible to update a key's
// value to the empty string.
// If you specify the update_mask to be a special path "*", fully replaces all
// user-modifiable fields to match `resource`.
Resource
*
Membership
`protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
// Optional. A request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId
string
`protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Request message for GkeHubMembershipService.UpdateMembership
method.
func (*UpdateMembershipRequest) Descriptor
func
(
*
UpdateMembershipRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use UpdateMembershipRequest.ProtoReflect.Descriptor instead.
func (*UpdateMembershipRequest) GetName
func
(
x
*
UpdateMembershipRequest
)
GetName
()
string
func (*UpdateMembershipRequest) GetRequestId
func
(
x
*
UpdateMembershipRequest
)
GetRequestId
()
string
func (*UpdateMembershipRequest) GetResource
func
(
x
*
UpdateMembershipRequest
)
GetResource
()
*
Membership
func (*UpdateMembershipRequest) GetUpdateMask
func
(
x
*
UpdateMembershipRequest
)
GetUpdateMask
()
*
fieldmaskpb
.
FieldMask
func (*UpdateMembershipRequest) ProtoMessage
func
(
*
UpdateMembershipRequest
)
ProtoMessage
()
func (*UpdateMembershipRequest) ProtoReflect
func
(
x
*
UpdateMembershipRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*UpdateMembershipRequest) Reset
func
(
x
*
UpdateMembershipRequest
)
Reset
()
func (*UpdateMembershipRequest) String
func
(
x
*
UpdateMembershipRequest
)
String
()
string
ValidateExclusivityRequest
type
ValidateExclusivityRequest
struct
{
// Required. The parent (project and location) where the Memberships will be
// created. Specified in the format `projects/*/locations/*`.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The YAML of the membership CR in the cluster. Empty if the
// membership CR does not exist.
CrManifest
string
`protobuf:"bytes,2,opt,name=cr_manifest,json=crManifest,proto3" json:"cr_manifest,omitempty"`
// Required. The intended membership name under the `parent`. This method only
// does validation in anticipation of a CreateMembership call with the same
// name.
IntendedMembership
string
`protobuf:"bytes,3,opt,name=intended_membership,json=intendedMembership,proto3" json:"intended_membership,omitempty"`
// contains filtered or unexported fields
}
The request to validate the existing state of the membership CR in the cluster.
func (*ValidateExclusivityRequest) Descriptor
func
(
*
ValidateExclusivityRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ValidateExclusivityRequest.ProtoReflect.Descriptor instead.
func (*ValidateExclusivityRequest) GetCrManifest
func
(
x
*
ValidateExclusivityRequest
)
GetCrManifest
()
string
func (*ValidateExclusivityRequest) GetIntendedMembership
func
(
x
*
ValidateExclusivityRequest
)
GetIntendedMembership
()
string
func (*ValidateExclusivityRequest) GetParent
func
(
x
*
ValidateExclusivityRequest
)
GetParent
()
string
func (*ValidateExclusivityRequest) ProtoMessage
func
(
*
ValidateExclusivityRequest
)
ProtoMessage
()
func (*ValidateExclusivityRequest) ProtoReflect
func
(
x
*
ValidateExclusivityRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ValidateExclusivityRequest) Reset
func
(
x
*
ValidateExclusivityRequest
)
Reset
()
func (*ValidateExclusivityRequest) String
func
(
x
*
ValidateExclusivityRequest
)
String
()
string
ValidateExclusivityResponse
type
ValidateExclusivityResponse
struct
{
// The validation result.
//
// - `OK` means that exclusivity is validated, assuming the manifest produced
// by GenerateExclusivityManifest is successfully applied.
// - `ALREADY_EXISTS` means that the Membership CRD is already owned by
// another Hub. See `status.message` for more information.
Status
*
status
.
Status
`protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
The response of exclusivity artifacts validation result status.
func (*ValidateExclusivityResponse) Descriptor
func
(
*
ValidateExclusivityResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ValidateExclusivityResponse.ProtoReflect.Descriptor instead.
func (*ValidateExclusivityResponse) GetStatus
func
(
x
*
ValidateExclusivityResponse
)
GetStatus
()
*
status
.
Status
func (*ValidateExclusivityResponse) ProtoMessage
func
(
*
ValidateExclusivityResponse
)
ProtoMessage
()
func (*ValidateExclusivityResponse) ProtoReflect
func
(
x
*
ValidateExclusivityResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ValidateExclusivityResponse) Reset
func
(
x
*
ValidateExclusivityResponse
)
Reset
()
func (*ValidateExclusivityResponse) String
func
(
x
*
ValidateExclusivityResponse
)
String
()
string

