v1

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	WatchEventType_name = map[int32]string{
		0: "Created",
		1: "Updated",
		2: "Deleted",
	}
	WatchEventType_value = map[string]int32{
		"Created": 0,
		"Updated": 1,
		"Deleted": 2,
	}
)

Enum value maps for WatchEventType.

View Source
var File_github_com_rancher_opni_pkg_apis_management_v1_management_proto protoreflect.FileDescriptor
View Source
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,
		},
		{
			MethodName: "InstallCapability",
			Handler:    _Management_InstallCapability_Handler,
		},
		{
			MethodName: "UninstallCapability",
			Handler:    _Management_UninstallCapability_Handler,
		},
		{
			MethodName: "CapabilityUninstallStatus",
			Handler:    _Management_CapabilityUninstallStatus_Handler,
		},
		{
			MethodName: "CancelCapabilityUninstall",
			Handler:    _Management_CancelCapabilityUninstall_Handler,
		},
		{
			MethodName: "GetDashboardSettings",
			Handler:    _Management_GetDashboardSettings_Handler,
		},
		{
			MethodName: "UpdateDashboardSettings",
			Handler:    _Management_UpdateDashboardSettings_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "WatchClusters",
			Handler:       _Management_WatchClusters_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "WatchClusterHealthStatus",
			Handler:       _Management_WatchClusterHealthStatus_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "github.com/rancher/opni/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 (*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 CapabilityInfo added in v0.6.2

type CapabilityInfo struct {
	Details   *v11.Details `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
	NodeCount int32        `protobuf:"varint,2,opt,name=nodeCount,proto3" json:"nodeCount,omitempty"`
	// contains filtered or unexported fields
}

func (*CapabilityInfo) Descriptor deprecated added in v0.6.2

func (*CapabilityInfo) Descriptor() ([]byte, []int)

Deprecated: Use CapabilityInfo.ProtoReflect.Descriptor instead.

func (*CapabilityInfo) GetDetails added in v0.6.2

func (x *CapabilityInfo) GetDetails() *v11.Details

func (*CapabilityInfo) GetNodeCount added in v0.6.2

func (x *CapabilityInfo) GetNodeCount() int32

func (*CapabilityInfo) ProtoMessage added in v0.6.2

func (*CapabilityInfo) ProtoMessage()

func (*CapabilityInfo) ProtoReflect added in v0.6.2

func (x *CapabilityInfo) ProtoReflect() protoreflect.Message

func (*CapabilityInfo) Reset added in v0.6.2

func (x *CapabilityInfo) Reset()

func (*CapabilityInfo) String added in v0.6.2

func (x *CapabilityInfo) String() string

type CapabilityInstallRequest added in v0.6.0

type CapabilityInstallRequest struct {
	Name   string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Target *v11.InstallRequest `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*CapabilityInstallRequest) Descriptor deprecated added in v0.6.0

func (*CapabilityInstallRequest) Descriptor() ([]byte, []int)

Deprecated: Use CapabilityInstallRequest.ProtoReflect.Descriptor instead.

func (*CapabilityInstallRequest) GetName added in v0.6.0

func (x *CapabilityInstallRequest) GetName() string

func (*CapabilityInstallRequest) GetTarget added in v0.6.0

func (*CapabilityInstallRequest) ProtoMessage added in v0.6.0

func (*CapabilityInstallRequest) ProtoMessage()

func (*CapabilityInstallRequest) ProtoReflect added in v0.6.0

func (x *CapabilityInstallRequest) ProtoReflect() protoreflect.Message

func (*CapabilityInstallRequest) Reset added in v0.6.0

func (x *CapabilityInstallRequest) Reset()

func (*CapabilityInstallRequest) String added in v0.6.0

func (x *CapabilityInstallRequest) String() string

func (*CapabilityInstallRequest) Validate added in v0.6.0

func (r *CapabilityInstallRequest) Validate() error

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 (*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 (*CapabilityInstallerResponse) Reset

func (x *CapabilityInstallerResponse) Reset()

func (*CapabilityInstallerResponse) String

func (x *CapabilityInstallerResponse) String() string

type CapabilityList

type CapabilityList struct {
	Items []*CapabilityInfo `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() []*CapabilityInfo

func (*CapabilityList) Names added in v0.6.2

func (cl *CapabilityList) Names() []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 CapabilityStatusRequest added in v0.6.0

type CapabilityStatusRequest struct {
	Name    string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Cluster *v1.Reference `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// contains filtered or unexported fields
}

func (*CapabilityStatusRequest) Descriptor deprecated added in v0.6.0

func (*CapabilityStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use CapabilityStatusRequest.ProtoReflect.Descriptor instead.

func (*CapabilityStatusRequest) GetCluster added in v0.6.0

func (x *CapabilityStatusRequest) GetCluster() *v1.Reference

func (*CapabilityStatusRequest) GetName added in v0.6.0

func (x *CapabilityStatusRequest) GetName() string

func (*CapabilityStatusRequest) ProtoMessage added in v0.6.0

func (*CapabilityStatusRequest) ProtoMessage()

func (*CapabilityStatusRequest) ProtoReflect added in v0.6.0

func (x *CapabilityStatusRequest) ProtoReflect() protoreflect.Message

func (*CapabilityStatusRequest) Reset added in v0.6.0

func (x *CapabilityStatusRequest) Reset()

func (*CapabilityStatusRequest) String added in v0.6.0

func (x *CapabilityStatusRequest) String() string

func (*CapabilityStatusRequest) Validate added in v0.6.0

func (r *CapabilityStatusRequest) Validate() error

type CapabilityUninstallCancelRequest added in v0.6.0

type CapabilityUninstallCancelRequest struct {
	Name    string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Cluster *v1.Reference `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// contains filtered or unexported fields
}

func (*CapabilityUninstallCancelRequest) Descriptor deprecated added in v0.6.0

func (*CapabilityUninstallCancelRequest) Descriptor() ([]byte, []int)

Deprecated: Use CapabilityUninstallCancelRequest.ProtoReflect.Descriptor instead.

func (*CapabilityUninstallCancelRequest) GetCluster added in v0.6.0

func (*CapabilityUninstallCancelRequest) GetName added in v0.6.0

func (*CapabilityUninstallCancelRequest) ProtoMessage added in v0.6.0

func (*CapabilityUninstallCancelRequest) ProtoMessage()

func (*CapabilityUninstallCancelRequest) ProtoReflect added in v0.6.0

func (*CapabilityUninstallCancelRequest) Reset added in v0.6.0

func (*CapabilityUninstallCancelRequest) String added in v0.6.0

func (*CapabilityUninstallCancelRequest) Validate added in v0.6.0

type CapabilityUninstallRequest added in v0.6.0

type CapabilityUninstallRequest struct {
	Name   string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Target *v11.UninstallRequest `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*CapabilityUninstallRequest) Descriptor deprecated added in v0.6.0

func (*CapabilityUninstallRequest) Descriptor() ([]byte, []int)

Deprecated: Use CapabilityUninstallRequest.ProtoReflect.Descriptor instead.

func (*CapabilityUninstallRequest) GetName added in v0.6.0

func (x *CapabilityUninstallRequest) GetName() string

func (*CapabilityUninstallRequest) GetTarget added in v0.6.0

func (*CapabilityUninstallRequest) ProtoMessage added in v0.6.0

func (*CapabilityUninstallRequest) ProtoMessage()

func (*CapabilityUninstallRequest) ProtoReflect added in v0.6.0

func (*CapabilityUninstallRequest) Reset added in v0.6.0

func (x *CapabilityUninstallRequest) Reset()

func (*CapabilityUninstallRequest) String added in v0.6.0

func (x *CapabilityUninstallRequest) String() string

func (*CapabilityUninstallRequest) Validate added in v0.6.0

func (r *CapabilityUninstallRequest) Validate() error

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 (*CreateBootstrapTokenRequest) ProtoMessage

func (*CreateBootstrapTokenRequest) ProtoMessage()

func (*CreateBootstrapTokenRequest) ProtoReflect

func (*CreateBootstrapTokenRequest) Reset

func (x *CreateBootstrapTokenRequest) Reset()

func (*CreateBootstrapTokenRequest) String

func (x *CreateBootstrapTokenRequest) String() string

func (*CreateBootstrapTokenRequest) Validate

func (r *CreateBootstrapTokenRequest) Validate() error

type DashboardGlobalSettings added in v0.6.0

type DashboardGlobalSettings struct {
	DefaultImageRepository string               `protobuf:"bytes,1,opt,name=defaultImageRepository,proto3" json:"defaultImageRepository,omitempty"`
	DefaultTokenTtl        *durationpb.Duration `protobuf:"bytes,2,opt,name=defaultTokenTtl,proto3" json:"defaultTokenTtl,omitempty"`
	DefaultTokenLabels     map[string]string    `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DashboardGlobalSettings) Descriptor deprecated added in v0.6.0

func (*DashboardGlobalSettings) Descriptor() ([]byte, []int)

Deprecated: Use DashboardGlobalSettings.ProtoReflect.Descriptor instead.

func (*DashboardGlobalSettings) GetDefaultImageRepository added in v0.6.0

func (x *DashboardGlobalSettings) GetDefaultImageRepository() string

func (*DashboardGlobalSettings) GetDefaultTokenLabels added in v0.6.0

func (x *DashboardGlobalSettings) GetDefaultTokenLabels() map[string]string

func (*DashboardGlobalSettings) GetDefaultTokenTtl added in v0.6.0

func (x *DashboardGlobalSettings) GetDefaultTokenTtl() *durationpb.Duration

func (*DashboardGlobalSettings) ProtoMessage added in v0.6.0

func (*DashboardGlobalSettings) ProtoMessage()

func (*DashboardGlobalSettings) ProtoReflect added in v0.6.0

func (x *DashboardGlobalSettings) ProtoReflect() protoreflect.Message

func (*DashboardGlobalSettings) Reset added in v0.6.0

func (x *DashboardGlobalSettings) Reset()

func (*DashboardGlobalSettings) String added in v0.6.0

func (x *DashboardGlobalSettings) String() string

type DashboardSettings added in v0.6.0

type DashboardSettings struct {
	Global *DashboardGlobalSettings `protobuf:"bytes,1,opt,name=global,proto3,oneof" json:"global,omitempty"`
	User   map[string]string        `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DashboardSettings) Descriptor deprecated added in v0.6.0

func (*DashboardSettings) Descriptor() ([]byte, []int)

Deprecated: Use DashboardSettings.ProtoReflect.Descriptor instead.

func (*DashboardSettings) GetGlobal added in v0.6.0

func (*DashboardSettings) GetUser added in v0.6.0

func (x *DashboardSettings) GetUser() map[string]string

func (*DashboardSettings) ProtoMessage added in v0.6.0

func (*DashboardSettings) ProtoMessage()

func (*DashboardSettings) ProtoReflect added in v0.6.0

func (x *DashboardSettings) ProtoReflect() protoreflect.Message

func (*DashboardSettings) Reset added in v0.6.0

func (x *DashboardSettings) Reset()

func (*DashboardSettings) String added in v0.6.0

func (x *DashboardSettings) String() string

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

func (*GatewayConfig) YAMLDocuments

func (gc *GatewayConfig) YAMLDocuments() [][]byte

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 (*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)
	WatchClusterHealthStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Management_WatchClusterHealthStatusClient, 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)
	// Deprecated: Do not use.
	// Deprecated: For agent v2, use InstallCapability instead.
	CapabilityInstaller(ctx context.Context, in *CapabilityInstallerRequest, opts ...grpc.CallOption) (*CapabilityInstallerResponse, error)
	InstallCapability(ctx context.Context, in *CapabilityInstallRequest, opts ...grpc.CallOption) (*v11.InstallResponse, error)
	UninstallCapability(ctx context.Context, in *CapabilityUninstallRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CapabilityUninstallStatus(ctx context.Context, in *CapabilityStatusRequest, opts ...grpc.CallOption) (*v1.TaskStatus, error)
	CancelCapabilityUninstall(ctx context.Context, in *CapabilityUninstallCancelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetDashboardSettings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DashboardSettings, error)
	UpdateDashboardSettings(ctx context.Context, in *DashboardSettings, opts ...grpc.CallOption) (*emptypb.Empty, 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)
	WatchClusterHealthStatus(*emptypb.Empty, Management_WatchClusterHealthStatusServer) 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)
	// Deprecated: Do not use.
	// Deprecated: For agent v2, use InstallCapability instead.
	CapabilityInstaller(context.Context, *CapabilityInstallerRequest) (*CapabilityInstallerResponse, error)
	InstallCapability(context.Context, *CapabilityInstallRequest) (*v11.InstallResponse, error)
	UninstallCapability(context.Context, *CapabilityUninstallRequest) (*emptypb.Empty, error)
	CapabilityUninstallStatus(context.Context, *CapabilityStatusRequest) (*v1.TaskStatus, error)
	CancelCapabilityUninstall(context.Context, *CapabilityUninstallCancelRequest) (*emptypb.Empty, error)
	GetDashboardSettings(context.Context, *emptypb.Empty) (*DashboardSettings, error)
	UpdateDashboardSettings(context.Context, *DashboardSettings) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ManagementServer is the server API for Management service. All implementations must embed UnimplementedManagementServer for forward compatibility

type Management_WatchClusterHealthStatusClient added in v0.6.0

type Management_WatchClusterHealthStatusClient interface {
	Recv() (*v1.ClusterHealthStatus, error)
	grpc.ClientStream
}

type Management_WatchClusterHealthStatusServer added in v0.6.0

type Management_WatchClusterHealthStatusServer interface {
	Send(*v1.ClusterHealthStatus) error
	grpc.ServerStream
}

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) CancelCapabilityUninstall added in v0.6.0

func (UnimplementedManagementServer) CapabilityUninstallStatus added in v0.6.0

func (UnimplementedManagementServer) CertsInfo

func (UnimplementedManagementServer) CreateBootstrapToken

func (UnimplementedManagementServer) CreateRole

func (UnimplementedManagementServer) CreateRoleBinding

func (UnimplementedManagementServer) DeleteCluster

func (UnimplementedManagementServer) DeleteRole

func (UnimplementedManagementServer) DeleteRoleBinding

func (UnimplementedManagementServer) EditCluster

func (UnimplementedManagementServer) GetBootstrapToken

func (UnimplementedManagementServer) GetCluster

func (UnimplementedManagementServer) GetClusterHealthStatus

func (UnimplementedManagementServer) GetConfig

func (UnimplementedManagementServer) GetDashboardSettings added in v0.6.0

func (UnimplementedManagementServer) GetRole

func (UnimplementedManagementServer) GetRoleBinding

func (UnimplementedManagementServer) InstallCapability added in v0.6.0

func (UnimplementedManagementServer) ListBootstrapTokens

func (UnimplementedManagementServer) ListCapabilities

func (UnimplementedManagementServer) ListClusters

func (UnimplementedManagementServer) ListRoleBindings

func (UnimplementedManagementServer) ListRoles

func (UnimplementedManagementServer) RevokeBootstrapToken

func (UnimplementedManagementServer) SubjectAccess

func (UnimplementedManagementServer) UninstallCapability added in v0.6.0

func (UnimplementedManagementServer) UpdateConfig

func (UnimplementedManagementServer) UpdateDashboardSettings added in v0.6.0

func (UnimplementedManagementServer) WatchClusterHealthStatus added in v0.6.0

func (UnimplementedManagementServer) WatchClusters

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.Cluster    `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.Cluster

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_Created WatchEventType = 0
	WatchEventType_Updated WatchEventType = 1
	WatchEventType_Deleted WatchEventType = 2
)

func (WatchEventType) Descriptor

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 (WatchEventType) String

func (x WatchEventType) String() string

func (WatchEventType) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL