admin

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AIAdmin_GetAISettings_FullMethodName     = "/admin.AIAdmin/GetAISettings"
	AIAdmin_PutAISettings_FullMethodName     = "/admin.AIAdmin/PutAISettings"
	AIAdmin_DeleteAISettings_FullMethodName  = "/admin.AIAdmin/DeleteAISettings"
	AIAdmin_UpgradeAvailable_FullMethodName  = "/admin.AIAdmin/UpgradeAvailable"
	AIAdmin_DoUpgrade_FullMethodName         = "/admin.AIAdmin/DoUpgrade"
	AIAdmin_GetRuntimeClasses_FullMethodName = "/admin.AIAdmin/GetRuntimeClasses"
)

Variables

View Source
var AIAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "admin.AIAdmin",
	HandlerType: (*AIAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAISettings",
			Handler:    _AIAdmin_GetAISettings_Handler,
		},
		{
			MethodName: "PutAISettings",
			Handler:    _AIAdmin_PutAISettings_Handler,
		},
		{
			MethodName: "DeleteAISettings",
			Handler:    _AIAdmin_DeleteAISettings_Handler,
		},
		{
			MethodName: "UpgradeAvailable",
			Handler:    _AIAdmin_UpgradeAvailable_Handler,
		},
		{
			MethodName: "DoUpgrade",
			Handler:    _AIAdmin_DoUpgrade_Handler,
		},
		{
			MethodName: "GetRuntimeClasses",
			Handler:    _AIAdmin_GetRuntimeClasses_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/plugins/aiops/apis/admin/admin.proto",
}

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

View Source
var File_github_com_rancher_opni_plugins_aiops_apis_admin_admin_proto protoreflect.FileDescriptor

Functions

func RegisterAIAdminServer

func RegisterAIAdminServer(s grpc.ServiceRegistrar, srv AIAdminServer)

Types

type AIAdminClient

type AIAdminClient interface {
	GetAISettings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AISettings, error)
	PutAISettings(ctx context.Context, in *AISettings, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteAISettings(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
	UpgradeAvailable(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UpgradeAvailableResponse, error)
	DoUpgrade(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetRuntimeClasses(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RuntimeClassResponse, error)
}

AIAdminClient is the client API for AIAdmin 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 NewAIAdminClient

func NewAIAdminClient(cc grpc.ClientConnInterface) AIAdminClient

type AIAdminServer

type AIAdminServer interface {
	GetAISettings(context.Context, *emptypb.Empty) (*AISettings, error)
	PutAISettings(context.Context, *AISettings) (*emptypb.Empty, error)
	DeleteAISettings(context.Context, *DeleteOptions) (*emptypb.Empty, error)
	UpgradeAvailable(context.Context, *emptypb.Empty) (*UpgradeAvailableResponse, error)
	DoUpgrade(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	GetRuntimeClasses(context.Context, *emptypb.Empty) (*RuntimeClassResponse, error)
	// contains filtered or unexported methods
}

AIAdminServer is the server API for AIAdmin service. All implementations must embed UnimplementedAIAdminServer for forward compatibility

type AISettings

type AISettings struct {
	GpuSettings   *GPUSettings     `protobuf:"bytes,1,opt,name=gpuSettings,proto3,oneof" json:"gpuSettings,omitempty"`
	DrainReplicas *int32           `protobuf:"varint,2,opt,name=drainReplicas,proto3,oneof" json:"drainReplicas,omitempty"`
	Controlplane  *PretrainedModel `protobuf:"bytes,3,opt,name=controlplane,proto3,oneof" json:"controlplane,omitempty"`
	Rancher       *PretrainedModel `protobuf:"bytes,4,opt,name=rancher,proto3,oneof" json:"rancher,omitempty"`
	Longhorn      *PretrainedModel `protobuf:"bytes,5,opt,name=longhorn,proto3,oneof" json:"longhorn,omitempty"`
	S3Settings    *S3Settings      `protobuf:"bytes,6,opt,name=s3Settings,proto3,oneof" json:"s3Settings,omitempty"`
	// contains filtered or unexported fields
}

func (*AISettings) Descriptor deprecated

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

Deprecated: Use AISettings.ProtoReflect.Descriptor instead.

func (*AISettings) GetControlplane

func (x *AISettings) GetControlplane() *PretrainedModel

func (*AISettings) GetDrainReplicas

func (x *AISettings) GetDrainReplicas() int32

func (*AISettings) GetGpuSettings

func (x *AISettings) GetGpuSettings() *GPUSettings

func (*AISettings) GetLonghorn

func (x *AISettings) GetLonghorn() *PretrainedModel

func (*AISettings) GetRancher

func (x *AISettings) GetRancher() *PretrainedModel

func (*AISettings) GetS3Settings added in v0.11.1

func (x *AISettings) GetS3Settings() *S3Settings

func (*AISettings) ProtoMessage

func (*AISettings) ProtoMessage()

func (*AISettings) ProtoReflect

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

func (*AISettings) Reset

func (x *AISettings) Reset()

func (*AISettings) String

func (x *AISettings) String() string

func (*AISettings) Validate added in v0.12.1

func (a *AISettings) Validate() error

type DeleteOptions added in v0.12.0

type DeleteOptions struct {
	PurgeModelTrainingData *bool `protobuf:"varint,1,opt,name=purgeModelTrainingData,proto3,oneof" json:"purgeModelTrainingData,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOptions) Descriptor deprecated added in v0.12.0

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

Deprecated: Use DeleteOptions.ProtoReflect.Descriptor instead.

func (*DeleteOptions) GetPurgeModelTrainingData added in v0.12.0

func (x *DeleteOptions) GetPurgeModelTrainingData() bool

func (*DeleteOptions) ProtoMessage added in v0.12.0

func (*DeleteOptions) ProtoMessage()

func (*DeleteOptions) ProtoReflect added in v0.12.0

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

func (*DeleteOptions) Reset added in v0.12.0

func (x *DeleteOptions) Reset()

func (*DeleteOptions) String added in v0.12.0

func (x *DeleteOptions) String() string

type GPUSettings

type GPUSettings struct {
	RuntimeClass *string `protobuf:"bytes,1,opt,name=runtimeClass,proto3,oneof" json:"runtimeClass,omitempty"`
	// contains filtered or unexported fields
}

func (*GPUSettings) Descriptor deprecated

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

Deprecated: Use GPUSettings.ProtoReflect.Descriptor instead.

func (*GPUSettings) GetRuntimeClass

func (x *GPUSettings) GetRuntimeClass() string

func (*GPUSettings) ProtoMessage

func (*GPUSettings) ProtoMessage()

func (*GPUSettings) ProtoReflect

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

func (*GPUSettings) Reset

func (x *GPUSettings) Reset()

func (*GPUSettings) String

func (x *GPUSettings) String() string

type PretrainedModel

type PretrainedModel struct {
	HttpSource  *string `protobuf:"bytes,2,opt,name=httpSource,proto3,oneof" json:"httpSource,omitempty"`
	ImageSource *string `protobuf:"bytes,3,opt,name=imageSource,proto3,oneof" json:"imageSource,omitempty"`
	Replicas    *int32  `protobuf:"varint,4,opt,name=replicas,proto3,oneof" json:"replicas,omitempty"`
	// contains filtered or unexported fields
}

func (*PretrainedModel) Descriptor deprecated

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

Deprecated: Use PretrainedModel.ProtoReflect.Descriptor instead.

func (*PretrainedModel) GetHttpSource

func (x *PretrainedModel) GetHttpSource() string

func (*PretrainedModel) GetImageSource

func (x *PretrainedModel) GetImageSource() string

func (*PretrainedModel) GetReplicas

func (x *PretrainedModel) GetReplicas() int32

func (*PretrainedModel) ProtoMessage

func (*PretrainedModel) ProtoMessage()

func (*PretrainedModel) ProtoReflect

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

func (*PretrainedModel) Reset

func (x *PretrainedModel) Reset()

func (*PretrainedModel) String

func (x *PretrainedModel) String() string

type RuntimeClassResponse

type RuntimeClassResponse struct {
	RuntimeClasses []string `protobuf:"bytes,1,rep,name=RuntimeClasses,proto3" json:"RuntimeClasses,omitempty"`
	// contains filtered or unexported fields
}

func (*RuntimeClassResponse) Descriptor deprecated

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

Deprecated: Use RuntimeClassResponse.ProtoReflect.Descriptor instead.

func (*RuntimeClassResponse) GetRuntimeClasses

func (x *RuntimeClassResponse) GetRuntimeClasses() []string

func (*RuntimeClassResponse) ProtoMessage

func (*RuntimeClassResponse) ProtoMessage()

func (*RuntimeClassResponse) ProtoReflect

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

func (*RuntimeClassResponse) Reset

func (x *RuntimeClassResponse) Reset()

func (*RuntimeClassResponse) String

func (x *RuntimeClassResponse) String() string

type S3Settings added in v0.11.1

type S3Settings struct {
	Endpoint    string  `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	AccessKey   string  `protobuf:"bytes,2,opt,name=accessKey,proto3" json:"accessKey,omitempty"`
	SecretKey   string  `protobuf:"bytes,3,opt,name=secretKey,proto3" json:"secretKey,omitempty"`
	NulogBucket *string `protobuf:"bytes,4,opt,name=nulogBucket,proto3,oneof" json:"nulogBucket,omitempty"`
	DrainBucket *string `protobuf:"bytes,5,opt,name=drainBucket,proto3,oneof" json:"drainBucket,omitempty"`
	// contains filtered or unexported fields
}

func (*S3Settings) Descriptor deprecated added in v0.11.1

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

Deprecated: Use S3Settings.ProtoReflect.Descriptor instead.

func (*S3Settings) GetAccessKey added in v0.11.1

func (x *S3Settings) GetAccessKey() string

func (*S3Settings) GetDrainBucket added in v0.11.1

func (x *S3Settings) GetDrainBucket() string

func (*S3Settings) GetEndpoint added in v0.11.1

func (x *S3Settings) GetEndpoint() string

func (*S3Settings) GetNulogBucket added in v0.11.1

func (x *S3Settings) GetNulogBucket() string

func (*S3Settings) GetSecretKey added in v0.11.1

func (x *S3Settings) GetSecretKey() string

func (*S3Settings) ProtoMessage added in v0.11.1

func (*S3Settings) ProtoMessage()

func (*S3Settings) ProtoReflect added in v0.11.1

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

func (*S3Settings) Reset added in v0.11.1

func (x *S3Settings) Reset()

func (*S3Settings) String added in v0.11.1

func (x *S3Settings) String() string

func (*S3Settings) Validate added in v0.12.1

func (s *S3Settings) Validate() error

type UnimplementedAIAdminServer

type UnimplementedAIAdminServer struct {
}

UnimplementedAIAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedAIAdminServer) DeleteAISettings

func (UnimplementedAIAdminServer) DoUpgrade

func (UnimplementedAIAdminServer) GetAISettings

func (UnimplementedAIAdminServer) GetRuntimeClasses

func (UnimplementedAIAdminServer) PutAISettings

func (UnimplementedAIAdminServer) UpgradeAvailable

type UnsafeAIAdminServer

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

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

type UpgradeAvailableResponse

type UpgradeAvailableResponse struct {
	UpgradePending *bool `protobuf:"varint,1,opt,name=UpgradePending,proto3,oneof" json:"UpgradePending,omitempty"`
	// contains filtered or unexported fields
}

func (*UpgradeAvailableResponse) Descriptor deprecated

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

Deprecated: Use UpgradeAvailableResponse.ProtoReflect.Descriptor instead.

func (*UpgradeAvailableResponse) GetUpgradePending

func (x *UpgradeAvailableResponse) GetUpgradePending() bool

func (*UpgradeAvailableResponse) ProtoMessage

func (*UpgradeAvailableResponse) ProtoMessage()

func (*UpgradeAvailableResponse) ProtoReflect

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

func (*UpgradeAvailableResponse) Reset

func (x *UpgradeAvailableResponse) Reset()

func (*UpgradeAvailableResponse) String

func (x *UpgradeAvailableResponse) String() string

Jump to

Keyboard shortcuts

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