capabilities

package
v0.0.0-...-af36fda Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_operator_api_v1_capabilities_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.capabilities.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetConfig",
			Handler:    _Service_GetConfig_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Service_Get_Handler,
		},
		{
			MethodName: "GetPlugins",
			Handler:    _Service_GetPlugins_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "operator/api/v1/capabilities/service.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type GetConfigRequest

type GetConfigRequest struct {
	// contains filtered or unexported fields
}

func (*GetConfigRequest) Descriptor deprecated

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

Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetConfigRequest) ProtoMessage

func (*GetConfigRequest) ProtoMessage()

func (*GetConfigRequest) ProtoReflect

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

func (*GetConfigRequest) Reset

func (x *GetConfigRequest) Reset()

func (*GetConfigRequest) String

func (x *GetConfigRequest) String() string

type GetConfigResponse

type GetConfigResponse struct {
	Yaml            string                   `protobuf:"bytes,1,opt,name=yaml,proto3" json:"yaml,omitempty"`
	OperatorConfig  *v1alpha1.OperatorConfig `protobuf:"bytes,2,opt,name=operator_config,json=operatorConfig,proto3" json:"operator_config,omitempty"`
	OperatorVersion string                   `protobuf:"bytes,3,opt,name=operator_version,json=operatorVersion,proto3" json:"operator_version,omitempty"`
	K8SVersion      string                   `protobuf:"bytes,4,opt,name=k8s_version,json=k8sVersion,proto3" json:"k8s_version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetConfigResponse) Descriptor deprecated

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

Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.

func (*GetConfigResponse) GetK8SVersion

func (x *GetConfigResponse) GetK8SVersion() string

func (*GetConfigResponse) GetOperatorConfig

func (x *GetConfigResponse) GetOperatorConfig() *v1alpha1.OperatorConfig

func (*GetConfigResponse) GetOperatorVersion

func (x *GetConfigResponse) GetOperatorVersion() string

func (*GetConfigResponse) GetYaml

func (x *GetConfigResponse) GetYaml() string

func (*GetConfigResponse) ProtoMessage

func (*GetConfigResponse) ProtoMessage()

func (*GetConfigResponse) ProtoReflect

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

func (*GetConfigResponse) Reset

func (x *GetConfigResponse) Reset()

func (*GetConfigResponse) String

func (x *GetConfigResponse) String() string

type GetPluginsRequest

type GetPluginsRequest struct {
	// contains filtered or unexported fields
}

func (*GetPluginsRequest) Descriptor deprecated

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

Deprecated: Use GetPluginsRequest.ProtoReflect.Descriptor instead.

func (*GetPluginsRequest) ProtoMessage

func (*GetPluginsRequest) ProtoMessage()

func (*GetPluginsRequest) ProtoReflect

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

func (*GetPluginsRequest) Reset

func (x *GetPluginsRequest) Reset()

func (*GetPluginsRequest) String

func (x *GetPluginsRequest) String() string

type GetPluginsResponse

type GetPluginsResponse struct {
	Plugins []*GetPluginsResponse_Plugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPluginsResponse) Descriptor deprecated

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

Deprecated: Use GetPluginsResponse.ProtoReflect.Descriptor instead.

func (*GetPluginsResponse) GetPlugins

func (x *GetPluginsResponse) GetPlugins() []*GetPluginsResponse_Plugin

func (*GetPluginsResponse) ProtoMessage

func (*GetPluginsResponse) ProtoMessage()

func (*GetPluginsResponse) ProtoReflect

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

func (*GetPluginsResponse) Reset

func (x *GetPluginsResponse) Reset()

func (*GetPluginsResponse) String

func (x *GetPluginsResponse) String() string

type GetPluginsResponse_Builtin

type GetPluginsResponse_Builtin struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPluginsResponse_Builtin) Descriptor deprecated

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

Deprecated: Use GetPluginsResponse_Builtin.ProtoReflect.Descriptor instead.

func (*GetPluginsResponse_Builtin) GetName

func (x *GetPluginsResponse_Builtin) GetName() string

func (*GetPluginsResponse_Builtin) ProtoMessage

func (*GetPluginsResponse_Builtin) ProtoMessage()

func (*GetPluginsResponse_Builtin) ProtoReflect

func (*GetPluginsResponse_Builtin) Reset

func (x *GetPluginsResponse_Builtin) Reset()

func (*GetPluginsResponse_Builtin) String

func (x *GetPluginsResponse_Builtin) String() string

type GetPluginsResponse_Plugin

type GetPluginsResponse_Plugin struct {

	// Types that are assignable to Plugin:
	//
	//	*GetPluginsResponse_Plugin_Builtin
	//	*GetPluginsResponse_Plugin_ThirdParty
	Plugin isGetPluginsResponse_Plugin_Plugin `protobuf_oneof:"plugin"`
	// contains filtered or unexported fields
}

func (*GetPluginsResponse_Plugin) Descriptor deprecated

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

Deprecated: Use GetPluginsResponse_Plugin.ProtoReflect.Descriptor instead.

func (*GetPluginsResponse_Plugin) GetBuiltin

func (*GetPluginsResponse_Plugin) GetPlugin

func (m *GetPluginsResponse_Plugin) GetPlugin() isGetPluginsResponse_Plugin_Plugin

func (*GetPluginsResponse_Plugin) GetThirdParty

func (*GetPluginsResponse_Plugin) ProtoMessage

func (*GetPluginsResponse_Plugin) ProtoMessage()

func (*GetPluginsResponse_Plugin) ProtoReflect

func (*GetPluginsResponse_Plugin) Reset

func (x *GetPluginsResponse_Plugin) Reset()

func (*GetPluginsResponse_Plugin) String

func (x *GetPluginsResponse_Plugin) String() string

type GetPluginsResponse_Plugin_Builtin

type GetPluginsResponse_Plugin_Builtin struct {
	Builtin *GetPluginsResponse_Builtin `protobuf:"bytes,1,opt,name=builtin,proto3,oneof"`
}

type GetPluginsResponse_Plugin_ThirdParty

type GetPluginsResponse_Plugin_ThirdParty struct {
	ThirdParty *GetPluginsResponse_Thirdparty `protobuf:"bytes,2,opt,name=third_party,json=thirdParty,proto3,oneof"`
}

type GetPluginsResponse_Thirdparty

type GetPluginsResponse_Thirdparty struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPluginsResponse_Thirdparty) Descriptor deprecated

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

Deprecated: Use GetPluginsResponse_Thirdparty.ProtoReflect.Descriptor instead.

func (*GetPluginsResponse_Thirdparty) GetImage

func (x *GetPluginsResponse_Thirdparty) GetImage() string

func (*GetPluginsResponse_Thirdparty) GetName

func (*GetPluginsResponse_Thirdparty) ProtoMessage

func (*GetPluginsResponse_Thirdparty) ProtoMessage()

func (*GetPluginsResponse_Thirdparty) ProtoReflect

func (*GetPluginsResponse_Thirdparty) Reset

func (x *GetPluginsResponse_Thirdparty) Reset()

func (*GetPluginsResponse_Thirdparty) String

type GetRequest

type GetRequest struct {
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {
	Ingress                     bool `protobuf:"varint,1,opt,name=ingress,proto3" json:"ingress,omitempty"`
	HasPrometheusServiceMonitor bool `` /* 147-byte string literal not displayed */
	HasCustomMetrics            bool `protobuf:"varint,3,opt,name=has_custom_metrics,json=hasCustomMetrics,proto3" json:"has_custom_metrics,omitempty"`
	HasVerticalPodAutoscaler    bool `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetHasCustomMetrics

func (x *GetResponse) GetHasCustomMetrics() bool

func (*GetResponse) GetHasPrometheusServiceMonitor

func (x *GetResponse) GetHasPrometheusServiceMonitor() bool

func (*GetResponse) GetHasVerticalPodAutoscaler

func (x *GetResponse) GetHasVerticalPodAutoscaler() bool

func (*GetResponse) GetIngress

func (x *GetResponse) GetIngress() bool

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type ServiceClient

type ServiceClient interface {
	GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	GetPlugins(ctx context.Context, in *GetPluginsRequest, opts ...grpc.CallOption) (*GetPluginsResponse, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
	Get(context.Context, *GetRequest) (*GetResponse, error)
	GetPlugins(context.Context, *GetPluginsRequest) (*GetPluginsResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) Get

func (UnimplementedServiceServer) GetConfig

func (UnimplementedServiceServer) GetPlugins

type UnsafeServiceServer

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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