Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func DefaultManagementSocket() string
- func OpenAPISpec() []byte
- func RegisterManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementClient) error
- func RegisterManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterManagementHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ManagementServer) error
- func RegisterManagementServer(s grpc.ServiceRegistrar, srv ManagementServer)
- func UnderlyingConn(client ManagementClient) grpc.ClientConnInterface
- type APIExtensionInfo
- func (*APIExtensionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *APIExtensionInfo) GetRules() []*HTTPRuleDescriptor
- func (x *APIExtensionInfo) GetServiceDesc() *descriptorpb.ServiceDescriptorProto
- func (*APIExtensionInfo) ProtoMessage()
- func (x *APIExtensionInfo) ProtoReflect() protoreflect.Message
- func (x *APIExtensionInfo) Reset()
- func (x *APIExtensionInfo) String() string
- type APIExtensionInfoList
- func (*APIExtensionInfoList) Descriptor() ([]byte, []int)deprecated
- func (x *APIExtensionInfoList) GetItems() []*APIExtensionInfo
- func (*APIExtensionInfoList) ProtoMessage()
- func (x *APIExtensionInfoList) ProtoReflect() protoreflect.Message
- func (x *APIExtensionInfoList) Reset()
- func (x *APIExtensionInfoList) String() string
- type CapabilityInstallerRequest
- func (*CapabilityInstallerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CapabilityInstallerRequest) GetName() string
- func (x *CapabilityInstallerRequest) GetPin() string
- func (x *CapabilityInstallerRequest) GetToken() string
- func (*CapabilityInstallerRequest) ProtoMessage()
- func (x *CapabilityInstallerRequest) ProtoReflect() protoreflect.Message
- func (x *CapabilityInstallerRequest) Reset()
- func (x *CapabilityInstallerRequest) String() string
- type CapabilityInstallerResponse
- func (*CapabilityInstallerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CapabilityInstallerResponse) GetCommand() string
- func (*CapabilityInstallerResponse) ProtoMessage()
- func (x *CapabilityInstallerResponse) ProtoReflect() protoreflect.Message
- func (x *CapabilityInstallerResponse) Reset()
- func (x *CapabilityInstallerResponse) String() string
- type CapabilityList
- type CertsInfoResponse
- func (*CertsInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CertsInfoResponse) GetChain() []*v1.CertInfo
- func (*CertsInfoResponse) ProtoMessage()
- func (x *CertsInfoResponse) ProtoReflect() protoreflect.Message
- func (x *CertsInfoResponse) Reset()
- func (x *CertsInfoResponse) String() string
- type ConfigDocument
- type ConfigDocumentWithSchema
- func (*ConfigDocumentWithSchema) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigDocumentWithSchema) GetJson() []byte
- func (x *ConfigDocumentWithSchema) GetSchema() []byte
- func (x *ConfigDocumentWithSchema) GetYaml() []byte
- func (*ConfigDocumentWithSchema) ProtoMessage()
- func (x *ConfigDocumentWithSchema) ProtoReflect() protoreflect.Message
- func (x *ConfigDocumentWithSchema) Reset()
- func (x *ConfigDocumentWithSchema) String() string
- type CreateBootstrapTokenRequest
- func (*CreateBootstrapTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBootstrapTokenRequest) GetCapabilities() []*v1.TokenCapability
- func (x *CreateBootstrapTokenRequest) GetLabels() map[string]string
- func (x *CreateBootstrapTokenRequest) GetTtl() *durationpb.Duration
- func (*CreateBootstrapTokenRequest) ProtoMessage()
- func (x *CreateBootstrapTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBootstrapTokenRequest) Reset()
- func (x *CreateBootstrapTokenRequest) String() string
- func (r *CreateBootstrapTokenRequest) Validate() error
- type EditClusterRequest
- func (*EditClusterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EditClusterRequest) GetCluster() *v1.Reference
- func (x *EditClusterRequest) GetLabels() map[string]string
- func (*EditClusterRequest) ProtoMessage()
- func (x *EditClusterRequest) ProtoReflect() protoreflect.Message
- func (x *EditClusterRequest) Reset()
- func (x *EditClusterRequest) String() string
- func (r *EditClusterRequest) Validate() error
- type GatewayConfig
- type HTTPRuleDescriptor
- func (*HTTPRuleDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPRuleDescriptor) GetHttp() *annotations.HttpRule
- func (x *HTTPRuleDescriptor) GetMethod() *descriptorpb.MethodDescriptorProto
- func (*HTTPRuleDescriptor) ProtoMessage()
- func (x *HTTPRuleDescriptor) ProtoReflect() protoreflect.Message
- func (x *HTTPRuleDescriptor) Reset()
- func (x *HTTPRuleDescriptor) String() string
- type ListClustersRequest
- func (*ListClustersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListClustersRequest) GetMatchLabels() *v1.LabelSelector
- func (x *ListClustersRequest) GetMatchOptions() v1.MatchOptions
- func (*ListClustersRequest) ProtoMessage()
- func (x *ListClustersRequest) ProtoReflect() protoreflect.Message
- func (x *ListClustersRequest) Reset()
- func (x *ListClustersRequest) String() string
- func (r *ListClustersRequest) Validate() error
- type ManagementClient
- type ManagementServer
- type Management_WatchClustersClient
- type Management_WatchClustersServer
- type UnimplementedManagementServer
- func (UnimplementedManagementServer) APIExtensions(context.Context, *emptypb.Empty) (*APIExtensionInfoList, error)
- func (UnimplementedManagementServer) CapabilityInstaller(context.Context, *CapabilityInstallerRequest) (*CapabilityInstallerResponse, error)
- func (UnimplementedManagementServer) CertsInfo(context.Context, *emptypb.Empty) (*CertsInfoResponse, error)
- func (UnimplementedManagementServer) CreateBootstrapToken(context.Context, *CreateBootstrapTokenRequest) (*v1.BootstrapToken, error)
- func (UnimplementedManagementServer) CreateRole(context.Context, *v1.Role) (*emptypb.Empty, error)
- func (UnimplementedManagementServer) CreateRoleBinding(context.Context, *v1.RoleBinding) (*emptypb.Empty, error)
- func (UnimplementedManagementServer) DeleteCluster(context.Context, *v1.Reference) (*emptypb.Empty, error)
- func (UnimplementedManagementServer) DeleteRole(context.Context, *v1.Reference) (*emptypb.Empty, error)
- func (UnimplementedManagementServer) DeleteRoleBinding(context.Context, *v1.Reference) (*emptypb.Empty, error)
- func (UnimplementedManagementServer) EditCluster(context.Context, *EditClusterRequest) (*v1.Cluster, error)
- func (UnimplementedManagementServer) GetBootstrapToken(context.Context, *v1.Reference) (*v1.BootstrapToken, error)
- func (UnimplementedManagementServer) GetCluster(context.Context, *v1.Reference) (*v1.Cluster, error)
- func (UnimplementedManagementServer) GetClusterHealthStatus(context.Context, *v1.Reference) (*v1.HealthStatus, error)
- func (UnimplementedManagementServer) GetConfig(context.Context, *emptypb.Empty) (*GatewayConfig, error)
- func (UnimplementedManagementServer) GetRole(context.Context, *v1.Reference) (*v1.Role, error)
- func (UnimplementedManagementServer) GetRoleBinding(context.Context, *v1.Reference) (*v1.RoleBinding, error)
- func (UnimplementedManagementServer) ListBootstrapTokens(context.Context, *emptypb.Empty) (*v1.BootstrapTokenList, error)
- func (UnimplementedManagementServer) ListCapabilities(context.Context, *emptypb.Empty) (*CapabilityList, error)
- func (UnimplementedManagementServer) ListClusters(context.Context, *ListClustersRequest) (*v1.ClusterList, error)
- func (UnimplementedManagementServer) ListRoleBindings(context.Context, *emptypb.Empty) (*v1.RoleBindingList, error)
- func (UnimplementedManagementServer) ListRoles(context.Context, *emptypb.Empty) (*v1.RoleList, error)
- func (UnimplementedManagementServer) RevokeBootstrapToken(context.Context, *v1.Reference) (*emptypb.Empty, error)
- func (UnimplementedManagementServer) SubjectAccess(context.Context, *v1.SubjectAccessRequest) (*v1.ReferenceList, error)
- func (UnimplementedManagementServer) UpdateConfig(context.Context, *UpdateConfigRequest) (*emptypb.Empty, error)
- func (UnimplementedManagementServer) WatchClusters(*WatchClustersRequest, Management_WatchClustersServer) error
- type UnsafeManagementServer
- type UpdateConfigRequest
- func (*UpdateConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateConfigRequest) GetDocuments() []*ConfigDocument
- func (*UpdateConfigRequest) ProtoMessage()
- func (x *UpdateConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateConfigRequest) Reset()
- func (x *UpdateConfigRequest) String() string
- func (r *UpdateConfigRequest) Validate() error
- type WatchClustersRequest
- func (*WatchClustersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchClustersRequest) GetKnownClusters() *v1.ReferenceList
- func (*WatchClustersRequest) ProtoMessage()
- func (x *WatchClustersRequest) ProtoReflect() protoreflect.Message
- func (x *WatchClustersRequest) Reset()
- func (x *WatchClustersRequest) String() string
- func (r *WatchClustersRequest) Validate() error
- type WatchEvent
- func (*WatchEvent) Descriptor() ([]byte, []int)deprecated
- func (x *WatchEvent) GetCluster() *v1.Reference
- func (x *WatchEvent) GetType() WatchEventType
- func (*WatchEvent) ProtoMessage()
- func (x *WatchEvent) ProtoReflect() protoreflect.Message
- func (x *WatchEvent) Reset()
- func (x *WatchEvent) String() string
- type WatchEventType
- func (WatchEventType) Descriptor() protoreflect.EnumDescriptor
- func (x WatchEventType) Enum() *WatchEventType
- func (WatchEventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x WatchEventType) Number() protoreflect.EnumNumber
- func (x WatchEventType) String() string
- func (WatchEventType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( WatchEventType_name = map[int32]string{ 0: "Added", 2: "Deleted", } WatchEventType_value = map[string]int32{ "Added": 0, "Deleted": 2, } )
Enum value maps for WatchEventType.
var File_pkg_apis_management_v1_management_proto protoreflect.FileDescriptor
var Management_ServiceDesc = grpc.ServiceDesc{ ServiceName: "management.Management", HandlerType: (*ManagementServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateBootstrapToken", Handler: _Management_CreateBootstrapToken_Handler, }, { MethodName: "RevokeBootstrapToken", Handler: _Management_RevokeBootstrapToken_Handler, }, { MethodName: "ListBootstrapTokens", Handler: _Management_ListBootstrapTokens_Handler, }, { MethodName: "GetBootstrapToken", Handler: _Management_GetBootstrapToken_Handler, }, { MethodName: "ListClusters", Handler: _Management_ListClusters_Handler, }, { MethodName: "DeleteCluster", Handler: _Management_DeleteCluster_Handler, }, { MethodName: "CertsInfo", Handler: _Management_CertsInfo_Handler, }, { MethodName: "GetCluster", Handler: _Management_GetCluster_Handler, }, { MethodName: "GetClusterHealthStatus", Handler: _Management_GetClusterHealthStatus_Handler, }, { MethodName: "EditCluster", Handler: _Management_EditCluster_Handler, }, { MethodName: "CreateRole", Handler: _Management_CreateRole_Handler, }, { MethodName: "DeleteRole", Handler: _Management_DeleteRole_Handler, }, { MethodName: "GetRole", Handler: _Management_GetRole_Handler, }, { MethodName: "CreateRoleBinding", Handler: _Management_CreateRoleBinding_Handler, }, { MethodName: "DeleteRoleBinding", Handler: _Management_DeleteRoleBinding_Handler, }, { MethodName: "GetRoleBinding", Handler: _Management_GetRoleBinding_Handler, }, { MethodName: "ListRoles", Handler: _Management_ListRoles_Handler, }, { MethodName: "ListRoleBindings", Handler: _Management_ListRoleBindings_Handler, }, { MethodName: "SubjectAccess", Handler: _Management_SubjectAccess_Handler, }, { MethodName: "APIExtensions", Handler: _Management_APIExtensions_Handler, }, { MethodName: "GetConfig", Handler: _Management_GetConfig_Handler, }, { MethodName: "UpdateConfig", Handler: _Management_UpdateConfig_Handler, }, { MethodName: "ListCapabilities", Handler: _Management_ListCapabilities_Handler, }, { MethodName: "CapabilityInstaller", Handler: _Management_CapabilityInstaller_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchClusters", Handler: _Management_WatchClusters_Handler, ServerStreams: true, }, }, Metadata: "pkg/apis/management/v1/management.proto", }
Management_ServiceDesc is the grpc.ServiceDesc for Management service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func DefaultManagementSocket ¶
func DefaultManagementSocket() string
func OpenAPISpec ¶
func OpenAPISpec() []byte
func RegisterManagementHandler ¶
func RegisterManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterManagementHandler registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterManagementHandlerClient ¶
func RegisterManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementClient) error
RegisterManagementHandlerClient registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ManagementClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ManagementClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ManagementClient" to call the correct interceptors.
func RegisterManagementHandlerFromEndpoint ¶
func RegisterManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterManagementHandlerFromEndpoint is same as RegisterManagementHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterManagementHandlerServer ¶
func RegisterManagementHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ManagementServer) error
RegisterManagementHandlerServer registers the http handlers for service Management to "mux". UnaryRPC :call ManagementServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterManagementHandlerFromEndpoint instead.
func RegisterManagementServer ¶
func RegisterManagementServer(s grpc.ServiceRegistrar, srv ManagementServer)
func UnderlyingConn ¶
func UnderlyingConn(client ManagementClient) grpc.ClientConnInterface
Types ¶
type APIExtensionInfo ¶
type APIExtensionInfo struct { ServiceDesc *descriptorpb.ServiceDescriptorProto `protobuf:"bytes,1,opt,name=serviceDesc,proto3" json:"serviceDesc,omitempty"` Rules []*HTTPRuleDescriptor `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
func (*APIExtensionInfo) Descriptor
deprecated
func (*APIExtensionInfo) Descriptor() ([]byte, []int)
Deprecated: Use APIExtensionInfo.ProtoReflect.Descriptor instead.
func (*APIExtensionInfo) GetRules ¶
func (x *APIExtensionInfo) GetRules() []*HTTPRuleDescriptor
func (*APIExtensionInfo) GetServiceDesc ¶
func (x *APIExtensionInfo) GetServiceDesc() *descriptorpb.ServiceDescriptorProto
func (*APIExtensionInfo) ProtoMessage ¶
func (*APIExtensionInfo) ProtoMessage()
func (*APIExtensionInfo) ProtoReflect ¶
func (x *APIExtensionInfo) ProtoReflect() protoreflect.Message
func (*APIExtensionInfo) Reset ¶
func (x *APIExtensionInfo) Reset()
func (*APIExtensionInfo) String ¶
func (x *APIExtensionInfo) String() string
type APIExtensionInfoList ¶
type APIExtensionInfoList struct { Items []*APIExtensionInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*APIExtensionInfoList) Descriptor
deprecated
func (*APIExtensionInfoList) Descriptor() ([]byte, []int)
Deprecated: Use APIExtensionInfoList.ProtoReflect.Descriptor instead.
func (*APIExtensionInfoList) GetItems ¶
func (x *APIExtensionInfoList) GetItems() []*APIExtensionInfo
func (*APIExtensionInfoList) ProtoMessage ¶
func (*APIExtensionInfoList) ProtoMessage()
func (*APIExtensionInfoList) ProtoReflect ¶
func (x *APIExtensionInfoList) ProtoReflect() protoreflect.Message
func (*APIExtensionInfoList) Reset ¶
func (x *APIExtensionInfoList) Reset()
func (*APIExtensionInfoList) String ¶
func (x *APIExtensionInfoList) String() string
type CapabilityInstallerRequest ¶
type CapabilityInstallerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Pin string `protobuf:"bytes,3,opt,name=pin,proto3" json:"pin,omitempty"` // contains filtered or unexported fields }
func (*CapabilityInstallerRequest) Descriptor
deprecated
func (*CapabilityInstallerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CapabilityInstallerRequest.ProtoReflect.Descriptor instead.
func (*CapabilityInstallerRequest) GetName ¶
func (x *CapabilityInstallerRequest) GetName() string
func (*CapabilityInstallerRequest) GetPin ¶
func (x *CapabilityInstallerRequest) GetPin() string
func (*CapabilityInstallerRequest) GetToken ¶
func (x *CapabilityInstallerRequest) GetToken() string
func (*CapabilityInstallerRequest) ProtoMessage ¶
func (*CapabilityInstallerRequest) ProtoMessage()
func (*CapabilityInstallerRequest) ProtoReflect ¶
func (x *CapabilityInstallerRequest) ProtoReflect() protoreflect.Message
func (*CapabilityInstallerRequest) Reset ¶
func (x *CapabilityInstallerRequest) Reset()
func (*CapabilityInstallerRequest) String ¶
func (x *CapabilityInstallerRequest) String() string
type CapabilityInstallerResponse ¶
type CapabilityInstallerResponse struct { Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*CapabilityInstallerResponse) Descriptor
deprecated
func (*CapabilityInstallerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CapabilityInstallerResponse.ProtoReflect.Descriptor instead.
func (*CapabilityInstallerResponse) GetCommand ¶
func (x *CapabilityInstallerResponse) GetCommand() string
func (*CapabilityInstallerResponse) ProtoMessage ¶
func (*CapabilityInstallerResponse) ProtoMessage()
func (*CapabilityInstallerResponse) ProtoReflect ¶
func (x *CapabilityInstallerResponse) ProtoReflect() protoreflect.Message
func (*CapabilityInstallerResponse) Reset ¶
func (x *CapabilityInstallerResponse) Reset()
func (*CapabilityInstallerResponse) String ¶
func (x *CapabilityInstallerResponse) String() string
type CapabilityList ¶
type CapabilityList struct { Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*CapabilityList) Descriptor
deprecated
func (*CapabilityList) Descriptor() ([]byte, []int)
Deprecated: Use CapabilityList.ProtoReflect.Descriptor instead.
func (*CapabilityList) GetItems ¶
func (x *CapabilityList) GetItems() []string
func (*CapabilityList) ProtoMessage ¶
func (*CapabilityList) ProtoMessage()
func (*CapabilityList) ProtoReflect ¶
func (x *CapabilityList) ProtoReflect() protoreflect.Message
func (*CapabilityList) Reset ¶
func (x *CapabilityList) Reset()
func (*CapabilityList) String ¶
func (x *CapabilityList) String() string
type CertsInfoResponse ¶
type CertsInfoResponse struct { Chain []*v1.CertInfo `protobuf:"bytes,1,rep,name=chain,proto3" json:"chain,omitempty"` // contains filtered or unexported fields }
func (*CertsInfoResponse) Descriptor
deprecated
func (*CertsInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CertsInfoResponse.ProtoReflect.Descriptor instead.
func (*CertsInfoResponse) GetChain ¶
func (x *CertsInfoResponse) GetChain() []*v1.CertInfo
func (*CertsInfoResponse) ProtoMessage ¶
func (*CertsInfoResponse) ProtoMessage()
func (*CertsInfoResponse) ProtoReflect ¶
func (x *CertsInfoResponse) ProtoReflect() protoreflect.Message
func (*CertsInfoResponse) Reset ¶
func (x *CertsInfoResponse) Reset()
func (*CertsInfoResponse) String ¶
func (x *CertsInfoResponse) String() string
type ConfigDocument ¶
type ConfigDocument struct { Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*ConfigDocument) Descriptor
deprecated
func (*ConfigDocument) Descriptor() ([]byte, []int)
Deprecated: Use ConfigDocument.ProtoReflect.Descriptor instead.
func (*ConfigDocument) GetJson ¶
func (x *ConfigDocument) GetJson() []byte
func (*ConfigDocument) ProtoMessage ¶
func (*ConfigDocument) ProtoMessage()
func (*ConfigDocument) ProtoReflect ¶
func (x *ConfigDocument) ProtoReflect() protoreflect.Message
func (*ConfigDocument) Reset ¶
func (x *ConfigDocument) Reset()
func (*ConfigDocument) String ¶
func (x *ConfigDocument) String() string
type ConfigDocumentWithSchema ¶
type ConfigDocumentWithSchema struct { Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` Yaml []byte `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"` Schema []byte `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` // contains filtered or unexported fields }
func (*ConfigDocumentWithSchema) Descriptor
deprecated
func (*ConfigDocumentWithSchema) Descriptor() ([]byte, []int)
Deprecated: Use ConfigDocumentWithSchema.ProtoReflect.Descriptor instead.
func (*ConfigDocumentWithSchema) GetJson ¶
func (x *ConfigDocumentWithSchema) GetJson() []byte
func (*ConfigDocumentWithSchema) GetSchema ¶
func (x *ConfigDocumentWithSchema) GetSchema() []byte
func (*ConfigDocumentWithSchema) GetYaml ¶
func (x *ConfigDocumentWithSchema) GetYaml() []byte
func (*ConfigDocumentWithSchema) ProtoMessage ¶
func (*ConfigDocumentWithSchema) ProtoMessage()
func (*ConfigDocumentWithSchema) ProtoReflect ¶
func (x *ConfigDocumentWithSchema) ProtoReflect() protoreflect.Message
func (*ConfigDocumentWithSchema) Reset ¶
func (x *ConfigDocumentWithSchema) Reset()
func (*ConfigDocumentWithSchema) String ¶
func (x *ConfigDocumentWithSchema) String() string
type CreateBootstrapTokenRequest ¶
type CreateBootstrapTokenRequest struct { Ttl *durationpb.Duration `protobuf:"bytes,1,opt,name=ttl,proto3" json:"ttl,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Capabilities []*v1.TokenCapability `protobuf:"bytes,3,rep,name=capabilities,proto3" json:"capabilities,omitempty"` // contains filtered or unexported fields }
func (*CreateBootstrapTokenRequest) Descriptor
deprecated
func (*CreateBootstrapTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBootstrapTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateBootstrapTokenRequest) GetCapabilities ¶
func (x *CreateBootstrapTokenRequest) GetCapabilities() []*v1.TokenCapability
func (*CreateBootstrapTokenRequest) GetLabels ¶
func (x *CreateBootstrapTokenRequest) GetLabels() map[string]string
func (*CreateBootstrapTokenRequest) GetTtl ¶
func (x *CreateBootstrapTokenRequest) GetTtl() *durationpb.Duration
func (*CreateBootstrapTokenRequest) ProtoMessage ¶
func (*CreateBootstrapTokenRequest) ProtoMessage()
func (*CreateBootstrapTokenRequest) ProtoReflect ¶
func (x *CreateBootstrapTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateBootstrapTokenRequest) Reset ¶
func (x *CreateBootstrapTokenRequest) Reset()
func (*CreateBootstrapTokenRequest) String ¶
func (x *CreateBootstrapTokenRequest) String() string
func (*CreateBootstrapTokenRequest) Validate ¶
func (r *CreateBootstrapTokenRequest) Validate() error
type EditClusterRequest ¶
type EditClusterRequest struct { Cluster *v1.Reference `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*EditClusterRequest) Descriptor
deprecated
func (*EditClusterRequest) Descriptor() ([]byte, []int)
Deprecated: Use EditClusterRequest.ProtoReflect.Descriptor instead.
func (*EditClusterRequest) GetCluster ¶
func (x *EditClusterRequest) GetCluster() *v1.Reference
func (*EditClusterRequest) GetLabels ¶
func (x *EditClusterRequest) GetLabels() map[string]string
func (*EditClusterRequest) ProtoMessage ¶
func (*EditClusterRequest) ProtoMessage()
func (*EditClusterRequest) ProtoReflect ¶
func (x *EditClusterRequest) ProtoReflect() protoreflect.Message
func (*EditClusterRequest) Reset ¶
func (x *EditClusterRequest) Reset()
func (*EditClusterRequest) String ¶
func (x *EditClusterRequest) String() string
func (*EditClusterRequest) Validate ¶
func (r *EditClusterRequest) Validate() error
type GatewayConfig ¶
type GatewayConfig struct { Documents []*ConfigDocumentWithSchema `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"` // contains filtered or unexported fields }
func (*GatewayConfig) Descriptor
deprecated
func (*GatewayConfig) Descriptor() ([]byte, []int)
Deprecated: Use GatewayConfig.ProtoReflect.Descriptor instead.
func (*GatewayConfig) GetDocuments ¶
func (x *GatewayConfig) GetDocuments() []*ConfigDocumentWithSchema
func (*GatewayConfig) ProtoMessage ¶
func (*GatewayConfig) ProtoMessage()
func (*GatewayConfig) ProtoReflect ¶
func (x *GatewayConfig) ProtoReflect() protoreflect.Message
func (*GatewayConfig) Reset ¶
func (x *GatewayConfig) Reset()
func (*GatewayConfig) String ¶
func (x *GatewayConfig) String() string
type HTTPRuleDescriptor ¶
type HTTPRuleDescriptor struct { Http *annotations.HttpRule `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` Method *descriptorpb.MethodDescriptorProto `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*HTTPRuleDescriptor) Descriptor
deprecated
func (*HTTPRuleDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use HTTPRuleDescriptor.ProtoReflect.Descriptor instead.
func (*HTTPRuleDescriptor) GetHttp ¶
func (x *HTTPRuleDescriptor) GetHttp() *annotations.HttpRule
func (*HTTPRuleDescriptor) GetMethod ¶
func (x *HTTPRuleDescriptor) GetMethod() *descriptorpb.MethodDescriptorProto
func (*HTTPRuleDescriptor) ProtoMessage ¶
func (*HTTPRuleDescriptor) ProtoMessage()
func (*HTTPRuleDescriptor) ProtoReflect ¶
func (x *HTTPRuleDescriptor) ProtoReflect() protoreflect.Message
func (*HTTPRuleDescriptor) Reset ¶
func (x *HTTPRuleDescriptor) Reset()
func (*HTTPRuleDescriptor) String ¶
func (x *HTTPRuleDescriptor) String() string
type ListClustersRequest ¶
type ListClustersRequest struct { MatchLabels *v1.LabelSelector `protobuf:"bytes,1,opt,name=matchLabels,proto3" json:"matchLabels,omitempty"` MatchOptions v1.MatchOptions `protobuf:"varint,2,opt,name=matchOptions,proto3,enum=core.MatchOptions" json:"matchOptions,omitempty"` // contains filtered or unexported fields }
func (*ListClustersRequest) Descriptor
deprecated
func (*ListClustersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListClustersRequest.ProtoReflect.Descriptor instead.
func (*ListClustersRequest) GetMatchLabels ¶
func (x *ListClustersRequest) GetMatchLabels() *v1.LabelSelector
func (*ListClustersRequest) GetMatchOptions ¶
func (x *ListClustersRequest) GetMatchOptions() v1.MatchOptions
func (*ListClustersRequest) ProtoMessage ¶
func (*ListClustersRequest) ProtoMessage()
func (*ListClustersRequest) ProtoReflect ¶
func (x *ListClustersRequest) ProtoReflect() protoreflect.Message
func (*ListClustersRequest) Reset ¶
func (x *ListClustersRequest) Reset()
func (*ListClustersRequest) String ¶
func (x *ListClustersRequest) String() string
func (*ListClustersRequest) Validate ¶
func (r *ListClustersRequest) Validate() error
type ManagementClient ¶
type ManagementClient interface { CreateBootstrapToken(ctx context.Context, in *CreateBootstrapTokenRequest, opts ...grpc.CallOption) (*v1.BootstrapToken, error) RevokeBootstrapToken(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error) ListBootstrapTokens(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.BootstrapTokenList, error) GetBootstrapToken(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*v1.BootstrapToken, error) ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*v1.ClusterList, error) WatchClusters(ctx context.Context, in *WatchClustersRequest, opts ...grpc.CallOption) (Management_WatchClustersClient, error) DeleteCluster(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error) CertsInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CertsInfoResponse, error) GetCluster(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*v1.Cluster, error) GetClusterHealthStatus(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*v1.HealthStatus, error) EditCluster(ctx context.Context, in *EditClusterRequest, opts ...grpc.CallOption) (*v1.Cluster, error) CreateRole(ctx context.Context, in *v1.Role, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteRole(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error) GetRole(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*v1.Role, error) CreateRoleBinding(ctx context.Context, in *v1.RoleBinding, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteRoleBinding(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error) GetRoleBinding(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*v1.RoleBinding, error) ListRoles(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.RoleList, error) ListRoleBindings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.RoleBindingList, error) SubjectAccess(ctx context.Context, in *v1.SubjectAccessRequest, opts ...grpc.CallOption) (*v1.ReferenceList, error) APIExtensions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*APIExtensionInfoList, error) GetConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GatewayConfig, error) UpdateConfig(ctx context.Context, in *UpdateConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListCapabilities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CapabilityList, error) CapabilityInstaller(ctx context.Context, in *CapabilityInstallerRequest, opts ...grpc.CallOption) (*CapabilityInstallerResponse, error) }
ManagementClient is the client API for Management 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 NewManagementClient ¶
func NewManagementClient(cc grpc.ClientConnInterface) ManagementClient
type ManagementServer ¶
type ManagementServer interface { CreateBootstrapToken(context.Context, *CreateBootstrapTokenRequest) (*v1.BootstrapToken, error) RevokeBootstrapToken(context.Context, *v1.Reference) (*emptypb.Empty, error) ListBootstrapTokens(context.Context, *emptypb.Empty) (*v1.BootstrapTokenList, error) GetBootstrapToken(context.Context, *v1.Reference) (*v1.BootstrapToken, error) ListClusters(context.Context, *ListClustersRequest) (*v1.ClusterList, error) WatchClusters(*WatchClustersRequest, Management_WatchClustersServer) error DeleteCluster(context.Context, *v1.Reference) (*emptypb.Empty, error) CertsInfo(context.Context, *emptypb.Empty) (*CertsInfoResponse, error) GetCluster(context.Context, *v1.Reference) (*v1.Cluster, error) GetClusterHealthStatus(context.Context, *v1.Reference) (*v1.HealthStatus, error) EditCluster(context.Context, *EditClusterRequest) (*v1.Cluster, error) CreateRole(context.Context, *v1.Role) (*emptypb.Empty, error) DeleteRole(context.Context, *v1.Reference) (*emptypb.Empty, error) GetRole(context.Context, *v1.Reference) (*v1.Role, error) CreateRoleBinding(context.Context, *v1.RoleBinding) (*emptypb.Empty, error) DeleteRoleBinding(context.Context, *v1.Reference) (*emptypb.Empty, error) GetRoleBinding(context.Context, *v1.Reference) (*v1.RoleBinding, error) ListRoles(context.Context, *emptypb.Empty) (*v1.RoleList, error) ListRoleBindings(context.Context, *emptypb.Empty) (*v1.RoleBindingList, error) SubjectAccess(context.Context, *v1.SubjectAccessRequest) (*v1.ReferenceList, error) APIExtensions(context.Context, *emptypb.Empty) (*APIExtensionInfoList, error) GetConfig(context.Context, *emptypb.Empty) (*GatewayConfig, error) UpdateConfig(context.Context, *UpdateConfigRequest) (*emptypb.Empty, error) ListCapabilities(context.Context, *emptypb.Empty) (*CapabilityList, error) CapabilityInstaller(context.Context, *CapabilityInstallerRequest) (*CapabilityInstallerResponse, error) // contains filtered or unexported methods }
ManagementServer is the server API for Management service. All implementations must embed UnimplementedManagementServer for forward compatibility
type Management_WatchClustersClient ¶
type Management_WatchClustersClient interface { Recv() (*WatchEvent, error) grpc.ClientStream }
type Management_WatchClustersServer ¶
type Management_WatchClustersServer interface { Send(*WatchEvent) error grpc.ServerStream }
type UnimplementedManagementServer ¶
type UnimplementedManagementServer struct { }
UnimplementedManagementServer must be embedded to have forward compatible implementations.
func (UnimplementedManagementServer) APIExtensions ¶
func (UnimplementedManagementServer) APIExtensions(context.Context, *emptypb.Empty) (*APIExtensionInfoList, error)
func (UnimplementedManagementServer) CapabilityInstaller ¶
func (UnimplementedManagementServer) CapabilityInstaller(context.Context, *CapabilityInstallerRequest) (*CapabilityInstallerResponse, error)
func (UnimplementedManagementServer) CertsInfo ¶
func (UnimplementedManagementServer) CertsInfo(context.Context, *emptypb.Empty) (*CertsInfoResponse, error)
func (UnimplementedManagementServer) CreateBootstrapToken ¶
func (UnimplementedManagementServer) CreateBootstrapToken(context.Context, *CreateBootstrapTokenRequest) (*v1.BootstrapToken, error)
func (UnimplementedManagementServer) CreateRole ¶
func (UnimplementedManagementServer) CreateRoleBinding ¶
func (UnimplementedManagementServer) CreateRoleBinding(context.Context, *v1.RoleBinding) (*emptypb.Empty, error)
func (UnimplementedManagementServer) DeleteCluster ¶
func (UnimplementedManagementServer) DeleteRole ¶
func (UnimplementedManagementServer) DeleteRoleBinding ¶
func (UnimplementedManagementServer) EditCluster ¶
func (UnimplementedManagementServer) EditCluster(context.Context, *EditClusterRequest) (*v1.Cluster, error)
func (UnimplementedManagementServer) GetBootstrapToken ¶
func (UnimplementedManagementServer) GetBootstrapToken(context.Context, *v1.Reference) (*v1.BootstrapToken, error)
func (UnimplementedManagementServer) GetCluster ¶
func (UnimplementedManagementServer) GetClusterHealthStatus ¶
func (UnimplementedManagementServer) GetClusterHealthStatus(context.Context, *v1.Reference) (*v1.HealthStatus, error)
func (UnimplementedManagementServer) GetConfig ¶
func (UnimplementedManagementServer) GetConfig(context.Context, *emptypb.Empty) (*GatewayConfig, error)
func (UnimplementedManagementServer) GetRoleBinding ¶
func (UnimplementedManagementServer) GetRoleBinding(context.Context, *v1.Reference) (*v1.RoleBinding, error)
func (UnimplementedManagementServer) ListBootstrapTokens ¶
func (UnimplementedManagementServer) ListBootstrapTokens(context.Context, *emptypb.Empty) (*v1.BootstrapTokenList, error)
func (UnimplementedManagementServer) ListCapabilities ¶
func (UnimplementedManagementServer) ListCapabilities(context.Context, *emptypb.Empty) (*CapabilityList, error)
func (UnimplementedManagementServer) ListClusters ¶
func (UnimplementedManagementServer) ListClusters(context.Context, *ListClustersRequest) (*v1.ClusterList, error)
func (UnimplementedManagementServer) ListRoleBindings ¶
func (UnimplementedManagementServer) ListRoleBindings(context.Context, *emptypb.Empty) (*v1.RoleBindingList, error)
func (UnimplementedManagementServer) RevokeBootstrapToken ¶
func (UnimplementedManagementServer) SubjectAccess ¶
func (UnimplementedManagementServer) SubjectAccess(context.Context, *v1.SubjectAccessRequest) (*v1.ReferenceList, error)
func (UnimplementedManagementServer) UpdateConfig ¶
func (UnimplementedManagementServer) UpdateConfig(context.Context, *UpdateConfigRequest) (*emptypb.Empty, error)
func (UnimplementedManagementServer) WatchClusters ¶
func (UnimplementedManagementServer) WatchClusters(*WatchClustersRequest, Management_WatchClustersServer) error
type UnsafeManagementServer ¶
type UnsafeManagementServer interface {
// contains filtered or unexported methods
}
UnsafeManagementServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagementServer will result in compilation errors.
type UpdateConfigRequest ¶
type UpdateConfigRequest struct { Documents []*ConfigDocument `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"` // contains filtered or unexported fields }
func (*UpdateConfigRequest) Descriptor
deprecated
func (*UpdateConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateConfigRequest) GetDocuments ¶
func (x *UpdateConfigRequest) GetDocuments() []*ConfigDocument
func (*UpdateConfigRequest) ProtoMessage ¶
func (*UpdateConfigRequest) ProtoMessage()
func (*UpdateConfigRequest) ProtoReflect ¶
func (x *UpdateConfigRequest) ProtoReflect() protoreflect.Message
func (*UpdateConfigRequest) Reset ¶
func (x *UpdateConfigRequest) Reset()
func (*UpdateConfigRequest) String ¶
func (x *UpdateConfigRequest) String() string
func (*UpdateConfigRequest) Validate ¶
func (r *UpdateConfigRequest) Validate() error
type WatchClustersRequest ¶
type WatchClustersRequest struct { KnownClusters *v1.ReferenceList `protobuf:"bytes,1,opt,name=knownClusters,proto3" json:"knownClusters,omitempty"` // contains filtered or unexported fields }
func (*WatchClustersRequest) Descriptor
deprecated
func (*WatchClustersRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchClustersRequest.ProtoReflect.Descriptor instead.
func (*WatchClustersRequest) GetKnownClusters ¶
func (x *WatchClustersRequest) GetKnownClusters() *v1.ReferenceList
func (*WatchClustersRequest) ProtoMessage ¶
func (*WatchClustersRequest) ProtoMessage()
func (*WatchClustersRequest) ProtoReflect ¶
func (x *WatchClustersRequest) ProtoReflect() protoreflect.Message
func (*WatchClustersRequest) Reset ¶
func (x *WatchClustersRequest) Reset()
func (*WatchClustersRequest) String ¶
func (x *WatchClustersRequest) String() string
func (*WatchClustersRequest) Validate ¶
func (r *WatchClustersRequest) Validate() error
type WatchEvent ¶
type WatchEvent struct { Cluster *v1.Reference `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` Type WatchEventType `protobuf:"varint,2,opt,name=type,proto3,enum=management.WatchEventType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*WatchEvent) Descriptor
deprecated
func (*WatchEvent) Descriptor() ([]byte, []int)
Deprecated: Use WatchEvent.ProtoReflect.Descriptor instead.
func (*WatchEvent) GetCluster ¶
func (x *WatchEvent) GetCluster() *v1.Reference
func (*WatchEvent) GetType ¶
func (x *WatchEvent) GetType() WatchEventType
func (*WatchEvent) ProtoMessage ¶
func (*WatchEvent) ProtoMessage()
func (*WatchEvent) ProtoReflect ¶
func (x *WatchEvent) ProtoReflect() protoreflect.Message
func (*WatchEvent) Reset ¶
func (x *WatchEvent) Reset()
func (*WatchEvent) String ¶
func (x *WatchEvent) String() string
type WatchEventType ¶
type WatchEventType int32
const ( WatchEventType_Added WatchEventType = 0 WatchEventType_Deleted WatchEventType = 2 )
func (WatchEventType) Descriptor ¶
func (WatchEventType) Descriptor() protoreflect.EnumDescriptor
func (WatchEventType) Enum ¶
func (x WatchEventType) Enum() *WatchEventType
func (WatchEventType) EnumDescriptor
deprecated
func (WatchEventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use WatchEventType.Descriptor instead.
func (WatchEventType) Number ¶
func (x WatchEventType) Number() protoreflect.EnumNumber
func (WatchEventType) String ¶
func (x WatchEventType) String() string
func (WatchEventType) Type ¶
func (WatchEventType) Type() protoreflect.EnumType