Variables
GenerateCredentialsRequest_OperatingSystem_name, GenerateCredentialsRequest_OperatingSystem_value
var (
GenerateCredentialsRequest_OperatingSystem_name = map[int32]string{
0: "OPERATING_SYSTEM_UNSPECIFIED",
1: "OPERATING_SYSTEM_WINDOWS",
}
GenerateCredentialsRequest_OperatingSystem_value = map[string]int32{
"OPERATING_SYSTEM_UNSPECIFIED": 0,
"OPERATING_SYSTEM_WINDOWS": 1,
}
)
Enum value maps for GenerateCredentialsRequest_OperatingSystem.
File_google_cloud_gkeconnect_gateway_v1_control_proto
var File_google_cloud_gkeconnect_gateway_v1_control_proto protoreflect.FileDescriptor
Functions
func RegisterGatewayControlServer
func RegisterGatewayControlServer(s *grpc.Server, srv GatewayControlServer)
GatewayControlClient
type GatewayControlClient interface {
// GenerateCredentials provides connection information that allows a user to
// access the specified membership using Connect Gateway.
GenerateCredentials(ctx context.Context, in *GenerateCredentialsRequest, opts ...grpc.CallOption) (*GenerateCredentialsResponse, error)
}
GatewayControlClient is the client API for GatewayControl service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGatewayControlClient
func NewGatewayControlClient(cc grpc.ClientConnInterface) GatewayControlClient
GatewayControlServer
type GatewayControlServer interface {
// GenerateCredentials provides connection information that allows a user to
// access the specified membership using Connect Gateway.
GenerateCredentials(context.Context, *GenerateCredentialsRequest) (*GenerateCredentialsResponse, error)
}
GatewayControlServer is the server API for GatewayControl service.
GenerateCredentialsRequest
type GenerateCredentialsRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ForceUseAgent bool `protobuf:"varint,2,opt,name=force_use_agent,json=forceUseAgent,proto3" json:"force_use_agent,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
KubernetesNamespace string `protobuf:"bytes,4,opt,name=kubernetes_namespace,json=kubernetesNamespace,proto3" json:"kubernetes_namespace,omitempty"`
OperatingSystem GenerateCredentialsRequest_OperatingSystem "" /* 190 byte string literal not displayed */
}
A request for connection information for a particular membership.
func (*GenerateCredentialsRequest) Descriptor
func (*GenerateCredentialsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateCredentialsRequest.ProtoReflect.Descriptor instead.
func (*GenerateCredentialsRequest) GetForceUseAgent
func (x *GenerateCredentialsRequest) GetForceUseAgent() bool
func (*GenerateCredentialsRequest) GetKubernetesNamespace
func (x *GenerateCredentialsRequest) GetKubernetesNamespace() string
func (*GenerateCredentialsRequest) GetName
func (x *GenerateCredentialsRequest) GetName() string
func (*GenerateCredentialsRequest) GetOperatingSystem
func (x *GenerateCredentialsRequest) GetOperatingSystem() GenerateCredentialsRequest_OperatingSystem
func (*GenerateCredentialsRequest) GetVersion
func (x *GenerateCredentialsRequest) GetVersion() string
func (*GenerateCredentialsRequest) ProtoMessage
func (*GenerateCredentialsRequest) ProtoMessage()
func (*GenerateCredentialsRequest) ProtoReflect
func (x *GenerateCredentialsRequest) ProtoReflect() protoreflect.Message
func (*GenerateCredentialsRequest) Reset
func (x *GenerateCredentialsRequest) Reset()
func (*GenerateCredentialsRequest) String
func (x *GenerateCredentialsRequest) String() string
GenerateCredentialsRequest_OperatingSystem
type GenerateCredentialsRequest_OperatingSystem int32
Operating systems requiring specialized kubeconfigs.
GenerateCredentialsRequest_OPERATING_SYSTEM_UNSPECIFIED, GenerateCredentialsRequest_OPERATING_SYSTEM_WINDOWS
const (
// Generates a kubeconfig that works for all operating systems not defined
// below.
GenerateCredentialsRequest_OPERATING_SYSTEM_UNSPECIFIED GenerateCredentialsRequest_OperatingSystem = 0
// Generates a kubeconfig that is specifically designed to work with
// Windows.
GenerateCredentialsRequest_OPERATING_SYSTEM_WINDOWS GenerateCredentialsRequest_OperatingSystem = 1
)
func (GenerateCredentialsRequest_OperatingSystem) Descriptor
func (GenerateCredentialsRequest_OperatingSystem) Descriptor() protoreflect.EnumDescriptor
func (GenerateCredentialsRequest_OperatingSystem) Enum
func (x GenerateCredentialsRequest_OperatingSystem) Enum() *GenerateCredentialsRequest_OperatingSystem
func (GenerateCredentialsRequest_OperatingSystem) EnumDescriptor
func (GenerateCredentialsRequest_OperatingSystem) EnumDescriptor() ([]byte, []int)
Deprecated: Use GenerateCredentialsRequest_OperatingSystem.Descriptor instead.
func (GenerateCredentialsRequest_OperatingSystem) Number
func (x GenerateCredentialsRequest_OperatingSystem) Number() protoreflect.EnumNumber
func (GenerateCredentialsRequest_OperatingSystem) String
func (x GenerateCredentialsRequest_OperatingSystem) String() string
func (GenerateCredentialsRequest_OperatingSystem) Type
func (GenerateCredentialsRequest_OperatingSystem) Type() protoreflect.EnumType
GenerateCredentialsResponse
type GenerateCredentialsResponse struct {
// A full YAML kubeconfig in serialized format.
Kubeconfig []byte `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"`
// The generated URI of the cluster as accessed through the Connect Gateway
// API.
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
Connection information for a particular membership.
func (*GenerateCredentialsResponse) Descriptor
func (*GenerateCredentialsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateCredentialsResponse.ProtoReflect.Descriptor instead.
func (*GenerateCredentialsResponse) GetEndpoint
func (x *GenerateCredentialsResponse) GetEndpoint() string
func (*GenerateCredentialsResponse) GetKubeconfig
func (x *GenerateCredentialsResponse) GetKubeconfig() []byte
func (*GenerateCredentialsResponse) ProtoMessage
func (*GenerateCredentialsResponse) ProtoMessage()
func (*GenerateCredentialsResponse) ProtoReflect
func (x *GenerateCredentialsResponse) ProtoReflect() protoreflect.Message
func (*GenerateCredentialsResponse) Reset
func (x *GenerateCredentialsResponse) Reset()
func (*GenerateCredentialsResponse) String
func (x *GenerateCredentialsResponse) String() string
UnimplementedGatewayControlServer
type UnimplementedGatewayControlServer struct {
}
UnimplementedGatewayControlServer can be embedded to have forward compatible implementations.
func (*UnimplementedGatewayControlServer) GenerateCredentials
func (*UnimplementedGatewayControlServer) GenerateCredentials(context.Context, *GenerateCredentialsRequest) (*GenerateCredentialsResponse, error)