Documentation ¶
Index ¶
- func NewClient(ctx context.Context, opts ...ManagementClientOption) (managementv1.ManagementClient, error)
- type CapabilitiesDataSource
- type ConditionWatcher
- type CoreDataSource
- type DashboardSettingsManager
- type DynamicV1Marshaler
- func (*DynamicV1Marshaler) ContentType(_ any) string
- func (*DynamicV1Marshaler) Marshal(v any) ([]byte, error)
- func (*DynamicV1Marshaler) NewDecoder(r io.Reader) runtime.Decoder
- func (*DynamicV1Marshaler) NewEncoder(w io.Writer) runtime.Encoder
- func (*DynamicV1Marshaler) Unmarshal(data []byte, v any) error
- type HealthStatusDataSource
- type LegacyJsonMarshaler
- func (*LegacyJsonMarshaler) ContentType(_ any) string
- func (*LegacyJsonMarshaler) Marshal(v any) ([]byte, error)
- func (m *LegacyJsonMarshaler) NewDecoder(r io.Reader) runtime.Decoder
- func (*LegacyJsonMarshaler) NewEncoder(w io.Writer) runtime.Encoder
- func (*LegacyJsonMarshaler) Unmarshal(data []byte, v interface{}) error
- type ManagementClientOption
- type ManagementClientOptions
- type ManagementServerOption
- type ManagementWatcherHooks
- type Server
- func (m *Server) APIExtensions(context.Context, *emptypb.Empty) (*managementv1.APIExtensionInfoList, error)
- func (m *Server) CancelCapabilityUninstall(ctx context.Context, req *managementv1.CapabilityUninstallCancelRequest) (*emptypb.Empty, error)
- func (m *Server) CapabilityInstaller(_ context.Context, req *managementv1.CapabilityInstallerRequest) (*managementv1.CapabilityInstallerResponse, error)
- func (m *Server) CapabilityStatus(ctx context.Context, req *managementv1.CapabilityStatusRequest) (*capabilityv1.NodeCapabilityStatus, error)
- func (m *Server) CapabilityUninstallStatus(ctx context.Context, req *managementv1.CapabilityStatusRequest) (*corev1.TaskStatus, error)
- func (m *Server) CertsInfo(_ context.Context, _ *emptypb.Empty) (*managementv1.CertsInfoResponse, error)
- func (s *Server) Collect(c chan<- prometheus.Metric)
- func (m *Server) CreateBootstrapToken(ctx context.Context, req *managementv1.CreateBootstrapTokenRequest) (*corev1.BootstrapToken, error)
- func (s *Server) CreateRole(ctx context.Context, in *corev1.Role) (*emptypb.Empty, error)
- func (s *Server) CreateRoleBinding(ctx context.Context, in *corev1.RoleBinding) (*emptypb.Empty, error)
- func (m *Server) DeleteCluster(ctx context.Context, ref *corev1.Reference) (*emptypb.Empty, error)
- func (s *Server) DeleteRole(ctx context.Context, in *corev1.Reference) (*emptypb.Empty, error)
- func (s *Server) DeleteRoleBinding(ctx context.Context, in *corev1.Reference) (*emptypb.Empty, error)
- func (s *Server) Describe(c chan<- *prometheus.Desc)
- func (m *Server) EditCluster(ctx context.Context, in *managementv1.EditClusterRequest) (*corev1.Cluster, error)
- func (m *Server) GetBootstrapToken(ctx context.Context, ref *corev1.Reference) (*corev1.BootstrapToken, error)
- func (m *Server) GetCluster(ctx context.Context, ref *corev1.Reference) (*corev1.Cluster, error)
- func (m *Server) GetClusterHealthStatus(_ context.Context, ref *corev1.Reference) (*corev1.HealthStatus, error)
- func (m *Server) GetConfig(_ context.Context, _ *emptypb.Empty) (*managementv1.GatewayConfig, error)
- func (m *Server) GetDashboardSettings(ctx context.Context, in *emptypb.Empty) (*managementv1.DashboardSettings, error)
- func (s *Server) GetRole(ctx context.Context, in *corev1.Reference) (*corev1.Role, error)
- func (s *Server) GetRoleBinding(ctx context.Context, in *corev1.Reference) (*corev1.RoleBinding, error)
- func (m *Server) InstallCapability(ctx context.Context, in *managementv1.CapabilityInstallRequest) (*capabilityv1.InstallResponse, error)
- func (m *Server) ListBootstrapTokens(ctx context.Context, _ *emptypb.Empty) (*corev1.BootstrapTokenList, error)
- func (m *Server) ListCapabilities(ctx context.Context, in *emptypb.Empty) (*managementv1.CapabilityList, error)
- func (m *Server) ListClusters(ctx context.Context, in *managementv1.ListClustersRequest) (*corev1.ClusterList, error)
- func (s *Server) ListRoleBindings(ctx context.Context, _ *emptypb.Empty) (*corev1.RoleBindingList, error)
- func (s *Server) ListRoles(ctx context.Context, _ *emptypb.Empty) (*corev1.RoleList, error)
- func (m *Server) ListenAndServe(ctx context.Context) error
- func (m *Server) RevokeBootstrapToken(ctx context.Context, ref *corev1.Reference) (*emptypb.Empty, error)
- func (m *Server) Server() *grpc.Server
- func (s *Server) SubjectAccess(ctx context.Context, sar *corev1.SubjectAccessRequest) (*corev1.ReferenceList, error)
- func (m *Server) UninstallCapability(ctx context.Context, in *managementv1.CapabilityUninstallRequest) (*emptypb.Empty, error)
- func (m *Server) UpdateConfig(_ context.Context, in *managementv1.UpdateConfigRequest) (*emptypb.Empty, error)
- func (m *Server) UpdateDashboardSettings(ctx context.Context, in *managementv1.DashboardSettings) (*emptypb.Empty, error)
- func (s *Server) UpdateRole(ctx context.Context, in *corev1.Role) (*emptypb.Empty, error)
- func (s *Server) UpdateRoleBinding(ctx context.Context, in *corev1.RoleBinding) (*emptypb.Empty, error)
- func (m *Server) WatchClusterHealthStatus(_ *emptypb.Empty, ...) error
- func (m *Server) WatchClusters(in *managementv1.WatchClustersRequest, ...) error
- type StreamDirector
- type UnknownStreamMetadata
- type WatcherHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(ctx context.Context, opts ...ManagementClientOption) (managementv1.ManagementClient, error)
Types ¶
type CapabilitiesDataSource ¶
type CapabilitiesDataSource interface {
CapabilitiesStore() capabilities.BackendStore
}
CapabilitiesDataSource provides a way to obtain data which the management server needs to serve capabilities-related endpoints
type ConditionWatcher ¶ added in v0.9.1
type ConditionWatcher interface {
WatchEvents()
}
func NewConditionWatcher ¶ added in v0.9.1
func NewConditionWatcher(cl ...func()) ConditionWatcher
type CoreDataSource ¶
CoreDataSource provides a way to obtain data which the management server needs to serve its core API
type DashboardSettingsManager ¶ added in v0.6.0
type DashboardSettingsManager struct {
// contains filtered or unexported fields
}
func (*DashboardSettingsManager) GetDashboardSettings ¶ added in v0.6.0
func (m *DashboardSettingsManager) GetDashboardSettings( ctx context.Context, _ *emptypb.Empty, ) (*managementv1.DashboardSettings, error)
func (*DashboardSettingsManager) UpdateDashboardSettings ¶ added in v0.6.0
func (m *DashboardSettingsManager) UpdateDashboardSettings( ctx context.Context, settings *managementv1.DashboardSettings, ) (*emptypb.Empty, error)
type DynamicV1Marshaler ¶ added in v0.12.0
type DynamicV1Marshaler struct{}
func (*DynamicV1Marshaler) ContentType ¶ added in v0.12.0
func (*DynamicV1Marshaler) ContentType(_ any) string
ContentType implements runtime.Marshaler.
func (*DynamicV1Marshaler) Marshal ¶ added in v0.12.0
func (*DynamicV1Marshaler) Marshal(v any) ([]byte, error)
Marshal implements runtime.Marshaler.
func (*DynamicV1Marshaler) NewDecoder ¶ added in v0.12.0
func (*DynamicV1Marshaler) NewDecoder(r io.Reader) runtime.Decoder
NewDecoder implements runtime.Marshaler.
func (*DynamicV1Marshaler) NewEncoder ¶ added in v0.12.0
func (*DynamicV1Marshaler) NewEncoder(w io.Writer) runtime.Encoder
NewEncoder implements runtime.Marshaler.
type HealthStatusDataSource ¶ added in v0.5.4
type HealthStatusDataSource interface { GetClusterHealthStatus(ref *corev1.Reference) (*corev1.HealthStatus, error) WatchClusterHealthStatus(ctx context.Context) <-chan *corev1.ClusterHealthStatus }
type LegacyJsonMarshaler ¶ added in v0.12.0
type LegacyJsonMarshaler struct{}
func (*LegacyJsonMarshaler) ContentType ¶ added in v0.12.0
func (*LegacyJsonMarshaler) ContentType(_ any) string
ContentType implements runtime.Marshaler.
func (*LegacyJsonMarshaler) Marshal ¶ added in v0.12.0
func (*LegacyJsonMarshaler) Marshal(v any) ([]byte, error)
Marshal implements runtime.Marshaler.
func (*LegacyJsonMarshaler) NewDecoder ¶ added in v0.12.0
func (m *LegacyJsonMarshaler) NewDecoder(r io.Reader) runtime.Decoder
NewDecoder implements runtime.Marshaler.
func (*LegacyJsonMarshaler) NewEncoder ¶ added in v0.12.0
func (*LegacyJsonMarshaler) NewEncoder(w io.Writer) runtime.Encoder
NewEncoder implements runtime.Marshaler.
func (*LegacyJsonMarshaler) Unmarshal ¶ added in v0.12.0
func (*LegacyJsonMarshaler) Unmarshal(data []byte, v interface{}) error
Unmarshal implements runtime.Marshaler.
type ManagementClientOption ¶
type ManagementClientOption func(*ManagementClientOptions)
func WithDialOptions ¶
func WithDialOptions(options ...grpc.DialOption) ManagementClientOption
func WithListenAddress ¶
func WithListenAddress(addr string) ManagementClientOption
type ManagementClientOptions ¶
type ManagementClientOptions struct {
// contains filtered or unexported fields
}
type ManagementServerOption ¶
type ManagementServerOption func(*managementServerOptions)
func WithCapabilitiesDataSource ¶
func WithCapabilitiesDataSource(src CapabilitiesDataSource) ManagementServerOption
func WithHealthStatusDataSource ¶ added in v0.5.4
func WithHealthStatusDataSource(src HealthStatusDataSource) ManagementServerOption
func WithLifecycler ¶
func WithLifecycler(lc config.Lifecycler) ManagementServerOption
type ManagementWatcherHooks ¶ added in v0.9.1
func NewManagementWatcherHooks ¶ added in v0.9.1
func NewManagementWatcherHooks[T proto.Message](ctx context.Context) *ManagementWatcherHooks[T]
func (*ManagementWatcherHooks[T]) HandleEvent ¶ added in v0.9.1
func (h *ManagementWatcherHooks[T]) HandleEvent(event T)
func (*ManagementWatcherHooks[T]) RegisterHook ¶ added in v0.9.1
func (h *ManagementWatcherHooks[T]) RegisterHook(filter func(T) bool, hooks ...func(context.Context, T) error)
type Server ¶
type Server struct { managementv1.UnsafeManagementServer // contains filtered or unexported fields }
func NewServer ¶
func NewServer( ctx context.Context, conf *v1beta1.ManagementSpec, cds CoreDataSource, pluginLoader plugins.LoaderInterface, opts ...ManagementServerOption, ) *Server
func (*Server) APIExtensions ¶
func (m *Server) APIExtensions(context.Context, *emptypb.Empty) (*managementv1.APIExtensionInfoList, error)
func (*Server) CancelCapabilityUninstall ¶ added in v0.6.0
func (m *Server) CancelCapabilityUninstall( ctx context.Context, req *managementv1.CapabilityUninstallCancelRequest, ) (*emptypb.Empty, error)
func (*Server) CapabilityInstaller ¶
func (m *Server) CapabilityInstaller( _ context.Context, req *managementv1.CapabilityInstallerRequest, ) (*managementv1.CapabilityInstallerResponse, error)
func (*Server) CapabilityStatus ¶ added in v0.9.2
func (m *Server) CapabilityStatus( ctx context.Context, req *managementv1.CapabilityStatusRequest, ) (*capabilityv1.NodeCapabilityStatus, error)
func (*Server) CapabilityUninstallStatus ¶ added in v0.6.0
func (m *Server) CapabilityUninstallStatus( ctx context.Context, req *managementv1.CapabilityStatusRequest, ) (*corev1.TaskStatus, error)
func (*Server) CertsInfo ¶
func (m *Server) CertsInfo(_ context.Context, _ *emptypb.Empty) (*managementv1.CertsInfoResponse, error)
func (*Server) Collect ¶
func (s *Server) Collect(c chan<- prometheus.Metric)
func (*Server) CreateBootstrapToken ¶
func (m *Server) CreateBootstrapToken( ctx context.Context, req *managementv1.CreateBootstrapTokenRequest, ) (*corev1.BootstrapToken, error)
func (*Server) CreateRole ¶
func (*Server) CreateRoleBinding ¶
func (*Server) DeleteCluster ¶
func (*Server) DeleteRole ¶
func (*Server) DeleteRoleBinding ¶
func (*Server) Describe ¶
func (s *Server) Describe(c chan<- *prometheus.Desc)
func (*Server) EditCluster ¶
func (m *Server) EditCluster( ctx context.Context, in *managementv1.EditClusterRequest, ) (*corev1.Cluster, error)
func (*Server) GetBootstrapToken ¶
func (*Server) GetCluster ¶
func (*Server) GetClusterHealthStatus ¶ added in v0.5.4
func (*Server) GetConfig ¶
func (m *Server) GetConfig( _ context.Context, _ *emptypb.Empty, ) (*managementv1.GatewayConfig, error)
func (*Server) GetDashboardSettings ¶ added in v0.6.0
func (m *Server) GetDashboardSettings( ctx context.Context, in *emptypb.Empty, ) (*managementv1.DashboardSettings, error)
func (*Server) GetRoleBinding ¶
func (*Server) InstallCapability ¶ added in v0.6.0
func (m *Server) InstallCapability( ctx context.Context, in *managementv1.CapabilityInstallRequest, ) (*capabilityv1.InstallResponse, error)
func (*Server) ListBootstrapTokens ¶
func (*Server) ListCapabilities ¶
func (m *Server) ListCapabilities(ctx context.Context, in *emptypb.Empty) (*managementv1.CapabilityList, error)
func (*Server) ListClusters ¶
func (m *Server) ListClusters( ctx context.Context, in *managementv1.ListClustersRequest, ) (*corev1.ClusterList, error)
func (*Server) ListRoleBindings ¶
func (*Server) RevokeBootstrapToken ¶
func (*Server) SubjectAccess ¶
func (s *Server) SubjectAccess(ctx context.Context, sar *corev1.SubjectAccessRequest) (*corev1.ReferenceList, error)
func (*Server) UninstallCapability ¶ added in v0.6.0
func (m *Server) UninstallCapability( ctx context.Context, in *managementv1.CapabilityUninstallRequest, ) (*emptypb.Empty, error)
func (*Server) UpdateConfig ¶
func (m *Server) UpdateConfig( _ context.Context, in *managementv1.UpdateConfigRequest, ) (*emptypb.Empty, error)
func (*Server) UpdateDashboardSettings ¶ added in v0.6.0
func (m *Server) UpdateDashboardSettings( ctx context.Context, in *managementv1.DashboardSettings, ) (*emptypb.Empty, error)
func (*Server) UpdateRole ¶ added in v0.11.0
func (*Server) UpdateRoleBinding ¶ added in v0.11.0
func (*Server) WatchClusterHealthStatus ¶ added in v0.6.0
func (m *Server) WatchClusterHealthStatus( _ *emptypb.Empty, stream managementv1.Management_WatchClusterHealthStatusServer, ) error
func (*Server) WatchClusters ¶
func (m *Server) WatchClusters( in *managementv1.WatchClustersRequest, stream managementv1.Management_WatchClustersServer, ) error
type StreamDirector ¶
type UnknownStreamMetadata ¶
type UnknownStreamMetadata struct { Conn *grpc.ClientConn InputType *desc.MessageDescriptor OutputType *desc.MessageDescriptor ServerStreaming bool ClientStreaming bool }
Click to show internal directories.
Click to hide internal directories.