settings

package
v0.0.0-...-28c5d0f Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_project_settings_service_proto protoreflect.FileDescriptor
View Source
var File_api_v1_project_settings_settings_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.project.settings.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSettings",
			Handler:    _Service_GetSettings_Handler,
		},
		{
			MethodName: "UpdateSettings",
			Handler:    _Service_UpdateSettings_Handler,
		},
		{
			MethodName: "GetLicenseInfo",
			Handler:    _Service_GetLicenseInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/project/settings/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 AddDockerRegistry

type AddDockerRegistry struct {

	// The host of the docker registry.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Types that are assignable to Field:
	//
	//	*AddDockerRegistry_Auth
	//	*AddDockerRegistry_Credentials
	Field isAddDockerRegistry_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

Message for adding a docker registry

func (*AddDockerRegistry) Descriptor deprecated

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

Deprecated: Use AddDockerRegistry.ProtoReflect.Descriptor instead.

func (*AddDockerRegistry) GetAuth

func (x *AddDockerRegistry) GetAuth() string

func (*AddDockerRegistry) GetCredentials

func (x *AddDockerRegistry) GetCredentials() *DockerRegistryCredentials

func (*AddDockerRegistry) GetField

func (m *AddDockerRegistry) GetField() isAddDockerRegistry_Field

func (*AddDockerRegistry) GetHost

func (x *AddDockerRegistry) GetHost() string

func (*AddDockerRegistry) ProtoMessage

func (*AddDockerRegistry) ProtoMessage()

func (*AddDockerRegistry) ProtoReflect

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

func (*AddDockerRegistry) Reset

func (x *AddDockerRegistry) Reset()

func (*AddDockerRegistry) String

func (x *AddDockerRegistry) String() string

type AddDockerRegistry_Auth

type AddDockerRegistry_Auth struct {
	// authentication string to the docker registry.
	Auth string `protobuf:"bytes,2,opt,name=auth,proto3,oneof"`
}

type AddDockerRegistry_Credentials

type AddDockerRegistry_Credentials struct {
	// Credentials for the docker registry.
	Credentials *DockerRegistryCredentials `protobuf:"bytes,3,opt,name=credentials,proto3,oneof"`
}

type DockerRegistry

type DockerRegistry struct {

	// The secret id of the docker registry.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// Host of the docker registry/
	Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

Docker registry.

func (*DockerRegistry) Descriptor deprecated

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

Deprecated: Use DockerRegistry.ProtoReflect.Descriptor instead.

func (*DockerRegistry) GetHost

func (x *DockerRegistry) GetHost() string

func (*DockerRegistry) GetSecretId

func (x *DockerRegistry) GetSecretId() string

func (*DockerRegistry) ProtoMessage

func (*DockerRegistry) ProtoMessage()

func (*DockerRegistry) ProtoReflect

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

func (*DockerRegistry) Reset

func (x *DockerRegistry) Reset()

func (*DockerRegistry) String

func (x *DockerRegistry) String() string

type DockerRegistryCredentials

type DockerRegistryCredentials struct {

	// Username for the docker registry.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// Password for the docker registry.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// Email for the docker registry.
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

Credentials for a docker registry.

func (*DockerRegistryCredentials) Descriptor deprecated

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

Deprecated: Use DockerRegistryCredentials.ProtoReflect.Descriptor instead.

func (*DockerRegistryCredentials) GetEmail

func (x *DockerRegistryCredentials) GetEmail() string

func (*DockerRegistryCredentials) GetPassword

func (x *DockerRegistryCredentials) GetPassword() string

func (*DockerRegistryCredentials) GetUsername

func (x *DockerRegistryCredentials) GetUsername() string

func (*DockerRegistryCredentials) ProtoMessage

func (*DockerRegistryCredentials) ProtoMessage()

func (*DockerRegistryCredentials) ProtoReflect

func (*DockerRegistryCredentials) Reset

func (x *DockerRegistryCredentials) Reset()

func (*DockerRegistryCredentials) String

func (x *DockerRegistryCredentials) String() string

type GetLicenseInfoRequest

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

Request to get the license information of the Rig installation.

func (*GetLicenseInfoRequest) Descriptor deprecated

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

Deprecated: Use GetLicenseInfoRequest.ProtoReflect.Descriptor instead.

func (*GetLicenseInfoRequest) ProtoMessage

func (*GetLicenseInfoRequest) ProtoMessage()

func (*GetLicenseInfoRequest) ProtoReflect

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

func (*GetLicenseInfoRequest) Reset

func (x *GetLicenseInfoRequest) Reset()

func (*GetLicenseInfoRequest) String

func (x *GetLicenseInfoRequest) String() string

type GetLicenseInfoResponse

type GetLicenseInfoResponse struct {

	// The plan of the rig installation.
	Plan project.Plan `protobuf:"varint,1,opt,name=plan,proto3,enum=api.v1.project.Plan" json:"plan,omitempty"`
	// The expiration date of the license.
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

Response for getting the license information of the Rig installation.

func (*GetLicenseInfoResponse) Descriptor deprecated

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

Deprecated: Use GetLicenseInfoResponse.ProtoReflect.Descriptor instead.

func (*GetLicenseInfoResponse) GetExpiresAt

func (x *GetLicenseInfoResponse) GetExpiresAt() *timestamppb.Timestamp

func (*GetLicenseInfoResponse) GetPlan

func (x *GetLicenseInfoResponse) GetPlan() project.Plan

func (*GetLicenseInfoResponse) ProtoMessage

func (*GetLicenseInfoResponse) ProtoMessage()

func (*GetLicenseInfoResponse) ProtoReflect

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

func (*GetLicenseInfoResponse) Reset

func (x *GetLicenseInfoResponse) Reset()

func (*GetLicenseInfoResponse) String

func (x *GetLicenseInfoResponse) String() string

type GetSettingsRequest

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

Empty get settings request

func (*GetSettingsRequest) Descriptor deprecated

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

Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead.

func (*GetSettingsRequest) ProtoMessage

func (*GetSettingsRequest) ProtoMessage()

func (*GetSettingsRequest) ProtoReflect

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

func (*GetSettingsRequest) Reset

func (x *GetSettingsRequest) Reset()

func (*GetSettingsRequest) String

func (x *GetSettingsRequest) String() string

type GetSettingsResponse

type GetSettingsResponse struct {

	// The settings.
	Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

Response for getting settings for the project.

func (*GetSettingsResponse) Descriptor deprecated

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

Deprecated: Use GetSettingsResponse.ProtoReflect.Descriptor instead.

func (*GetSettingsResponse) GetSettings

func (x *GetSettingsResponse) GetSettings() *Settings

func (*GetSettingsResponse) ProtoMessage

func (*GetSettingsResponse) ProtoMessage()

func (*GetSettingsResponse) ProtoReflect

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

func (*GetSettingsResponse) Reset

func (x *GetSettingsResponse) Reset()

func (*GetSettingsResponse) String

func (x *GetSettingsResponse) String() string

type ServiceClient

type ServiceClient interface {
	// Gets the users settings for the current project.
	GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error)
	// Sets the users settings for the current project.
	UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*UpdateSettingsResponse, error)
	// Get License Information.
	GetLicenseInfo(ctx context.Context, in *GetLicenseInfoRequest, opts ...grpc.CallOption) (*GetLicenseInfoResponse, 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 {
	// Gets the users settings for the current project.
	GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error)
	// Sets the users settings for the current project.
	UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error)
	// Get License Information.
	GetLicenseInfo(context.Context, *GetLicenseInfoRequest) (*GetLicenseInfoResponse, error)
	// contains filtered or unexported methods
}

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

type Settings

type Settings struct {

	// Docker registries for images.
	DockerRegistries []*DockerRegistry `protobuf:"bytes,4,rep,name=docker_registries,json=dockerRegistries,proto3" json:"docker_registries,omitempty"`
	// contains filtered or unexported fields
}

Project wide settings.

func (*Settings) Descriptor deprecated

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

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetDockerRegistries

func (x *Settings) GetDockerRegistries() []*DockerRegistry

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

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

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) String

func (x *Settings) String() string

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) GetLicenseInfo

func (UnimplementedServiceServer) GetSettings

func (UnimplementedServiceServer) UpdateSettings

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.

type Update

type Update struct {

	// A number of updates to apply to the project settings.
	//
	// Types that are assignable to Field:
	//
	//	*Update_AddDockerRegistry
	//	*Update_DeleteDockerRegistry
	Field isUpdate_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

Update message for project settings.

func (*Update) Descriptor deprecated

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

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetAddDockerRegistry

func (x *Update) GetAddDockerRegistry() *AddDockerRegistry

func (*Update) GetDeleteDockerRegistry

func (x *Update) GetDeleteDockerRegistry() string

func (*Update) GetField

func (m *Update) GetField() isUpdate_Field

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

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

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

type UpdateSettingsRequest

type UpdateSettingsRequest struct {

	// The updates to apply.
	Updates []*Update `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	// contains filtered or unexported fields
}

Request for updating settings for a project.

func (*UpdateSettingsRequest) Descriptor deprecated

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

Deprecated: Use UpdateSettingsRequest.ProtoReflect.Descriptor instead.

func (*UpdateSettingsRequest) GetUpdates

func (x *UpdateSettingsRequest) GetUpdates() []*Update

func (*UpdateSettingsRequest) ProtoMessage

func (*UpdateSettingsRequest) ProtoMessage()

func (*UpdateSettingsRequest) ProtoReflect

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

func (*UpdateSettingsRequest) Reset

func (x *UpdateSettingsRequest) Reset()

func (*UpdateSettingsRequest) String

func (x *UpdateSettingsRequest) String() string

type UpdateSettingsResponse

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

Empty response for updating a project's settings.

func (*UpdateSettingsResponse) Descriptor deprecated

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

Deprecated: Use UpdateSettingsResponse.ProtoReflect.Descriptor instead.

func (*UpdateSettingsResponse) ProtoMessage

func (*UpdateSettingsResponse) ProtoMessage()

func (*UpdateSettingsResponse) ProtoReflect

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

func (*UpdateSettingsResponse) Reset

func (x *UpdateSettingsResponse) Reset()

func (*UpdateSettingsResponse) String

func (x *UpdateSettingsResponse) String() string

type Update_AddDockerRegistry

type Update_AddDockerRegistry struct {
	// Add a docker registry.
	AddDockerRegistry *AddDockerRegistry `protobuf:"bytes,4,opt,name=add_docker_registry,json=addDockerRegistry,proto3,oneof"`
}

type Update_DeleteDockerRegistry

type Update_DeleteDockerRegistry struct {
	// Delete a docker registry.
	DeleteDockerRegistry string `protobuf:"bytes,5,opt,name=delete_docker_registry,json=deleteDockerRegistry,proto3,oneof"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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