app

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package app is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	Size_name = map[int32]string{
		0: "SIZE_NANO",
		1: "SIZE_MIRCO",
		2: "SIZE_MINI",
		3: "SIZE_SMALL",
		4: "SIZE_MEDIUM",
		5: "SIZE_LARGE",
		6: "SIZE_XLARGE",
		7: "SIZE_XXLARGE",
	}
	Size_value = map[string]int32{
		"SIZE_NANO":    0,
		"SIZE_MIRCO":   1,
		"SIZE_MINI":    2,
		"SIZE_SMALL":   3,
		"SIZE_MEDIUM":  4,
		"SIZE_LARGE":   5,
		"SIZE_XLARGE":  6,
		"SIZE_XXLARGE": 7,
	}
)

Enum value maps for Size.

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_CREATED",
		1: "STATUS_RUNNING",
		2: "STATUS_STOPPED",
		3: "STATUS_DEPLOYING",
		4: "STATUS_UNHEALTHY",
	}
	Status_value = map[string]int32{
		"STATUS_CREATED":   0,
		"STATUS_RUNNING":   1,
		"STATUS_STOPPED":   2,
		"STATUS_DEPLOYING": 3,
		"STATUS_UNHEALTHY": 4,
	}
)

Enum value maps for Status.

View Source
var (
	Environment_Type_name = map[int32]string{
		0: "SYSTEM",
		1: "PROJ",
		2: "USER",
	}
	Environment_Type_value = map[string]int32{
		"SYSTEM": 0,
		"PROJ":   1,
		"USER":   2,
	}
)

Enum value maps for Environment_Type.

View Source
var (
	ActionPayload_Action_name = map[int32]string{
		0: "START",
		1: "STOP",
		2: "RESTART",
	}
	ActionPayload_Action_value = map[string]int32{
		"START":   0,
		"STOP":    1,
		"RESTART": 2,
	}
)

Enum value maps for ActionPayload_Action.

View Source
var AppService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "app.AppService",
	HandlerType: (*AppServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _AppService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _AppService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _AppService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _AppService_Delete_Handler,
		},
		{
			MethodName: "Read",
			Handler:    _AppService_Read_Handler,
		},
		{
			MethodName: "DoAction",
			Handler:    _AppService_DoAction_Handler,
		},
		{
			MethodName: "CfgCreate",
			Handler:    _AppService_CfgCreate_Handler,
		},
		{
			MethodName: "CfgUpdate",
			Handler:    _AppService_CfgUpdate_Handler,
		},
		{
			MethodName: "CfgDelete",
			Handler:    _AppService_CfgDelete_Handler,
		},
		{
			MethodName: "EnvCreate",
			Handler:    _AppService_EnvCreate_Handler,
		},
		{
			MethodName: "EnvUpdate",
			Handler:    _AppService_EnvUpdate_Handler,
		},
		{
			MethodName: "EnvDelete",
			Handler:    _AppService_EnvDelete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "app/app.proto",
}

AppService_ServiceDesc is the grpc.ServiceDesc for AppService 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_app_app_proto protoreflect.FileDescriptor

Functions

func RegisterAppServiceHandler

func RegisterAppServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAppServiceHandler registers the http handlers for service AppService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAppServiceHandlerClient

func RegisterAppServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AppServiceClient) error

RegisterAppServiceHandlerClient registers the http handlers for service AppService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AppServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AppServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AppServiceClient" to call the correct interceptors.

func RegisterAppServiceHandlerFromEndpoint

func RegisterAppServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAppServiceHandlerFromEndpoint is same as RegisterAppServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAppServiceHandlerServer

func RegisterAppServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AppServiceServer) error

RegisterAppServiceHandlerServer registers the http handlers for service AppService to "mux". UnaryRPC :call AppServiceServer 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 RegisterAppServiceHandlerFromEndpoint instead.

func RegisterAppServiceServer

func RegisterAppServiceServer(s grpc.ServiceRegistrar, srv AppServiceServer)

Types

type ActionPayload

type ActionPayload struct {
	Id     string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Action ActionPayload_Action `protobuf:"varint,2,opt,name=action,proto3,enum=app.ActionPayload_Action" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*ActionPayload) Descriptor deprecated

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

Deprecated: Use ActionPayload.ProtoReflect.Descriptor instead.

func (*ActionPayload) GetAction

func (x *ActionPayload) GetAction() ActionPayload_Action

func (*ActionPayload) GetId

func (x *ActionPayload) GetId() string

func (*ActionPayload) ProtoMessage

func (*ActionPayload) ProtoMessage()

func (*ActionPayload) ProtoReflect

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

func (*ActionPayload) Reset

func (x *ActionPayload) Reset()

func (*ActionPayload) String

func (x *ActionPayload) String() string

func (*ActionPayload) Validate

func (m *ActionPayload) Validate() error

Validate checks the field values on ActionPayload with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ActionPayload) ValidateAll

func (m *ActionPayload) ValidateAll() error

ValidateAll checks the field values on ActionPayload with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ActionPayloadMultiError, or nil if none found.

type ActionPayloadMultiError

type ActionPayloadMultiError []error

ActionPayloadMultiError is an error wrapping multiple validation errors returned by ActionPayload.ValidateAll() if the designated constraints aren't met.

func (ActionPayloadMultiError) AllErrors

func (m ActionPayloadMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActionPayloadMultiError) Error

func (m ActionPayloadMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ActionPayloadValidationError

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

ActionPayloadValidationError is the validation error returned by ActionPayload.Validate if the designated constraints aren't met.

func (ActionPayloadValidationError) Cause

Cause function returns cause value.

func (ActionPayloadValidationError) Error

Error satisfies the builtin error interface

func (ActionPayloadValidationError) ErrorName

func (e ActionPayloadValidationError) ErrorName() string

ErrorName returns error name.

func (ActionPayloadValidationError) Field

Field function returns field value.

func (ActionPayloadValidationError) Key

Key function returns key value.

func (ActionPayloadValidationError) Reason

Reason function returns reason value.

type ActionPayload_Action

type ActionPayload_Action int32
const (
	ActionPayload_START   ActionPayload_Action = 0
	ActionPayload_STOP    ActionPayload_Action = 1
	ActionPayload_RESTART ActionPayload_Action = 2
)

func (ActionPayload_Action) Descriptor

func (ActionPayload_Action) Enum

func (ActionPayload_Action) EnumDescriptor deprecated

func (ActionPayload_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActionPayload_Action.Descriptor instead.

func (ActionPayload_Action) Number

func (ActionPayload_Action) String

func (x ActionPayload_Action) String() string

func (ActionPayload_Action) Type

type AppCfg

type AppCfg struct {
	Appid   string         `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
	Payload *Configuration `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*AppCfg) Descriptor deprecated

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

Deprecated: Use AppCfg.ProtoReflect.Descriptor instead.

func (*AppCfg) GetAppid

func (x *AppCfg) GetAppid() string

func (*AppCfg) GetPayload

func (x *AppCfg) GetPayload() *Configuration

func (*AppCfg) ProtoMessage

func (*AppCfg) ProtoMessage()

func (*AppCfg) ProtoReflect

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

func (*AppCfg) Reset

func (x *AppCfg) Reset()

func (*AppCfg) String

func (x *AppCfg) String() string

func (*AppCfg) Validate

func (m *AppCfg) Validate() error

Validate checks the field values on AppCfg with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AppCfg) ValidateAll

func (m *AppCfg) ValidateAll() error

ValidateAll checks the field values on AppCfg with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppCfgMultiError, or nil if none found.

type AppCfgMultiError

type AppCfgMultiError []error

AppCfgMultiError is an error wrapping multiple validation errors returned by AppCfg.ValidateAll() if the designated constraints aren't met.

func (AppCfgMultiError) AllErrors

func (m AppCfgMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppCfgMultiError) Error

func (m AppCfgMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AppCfgValidationError

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

AppCfgValidationError is the validation error returned by AppCfg.Validate if the designated constraints aren't met.

func (AppCfgValidationError) Cause

func (e AppCfgValidationError) Cause() error

Cause function returns cause value.

func (AppCfgValidationError) Error

func (e AppCfgValidationError) Error() string

Error satisfies the builtin error interface

func (AppCfgValidationError) ErrorName

func (e AppCfgValidationError) ErrorName() string

ErrorName returns error name.

func (AppCfgValidationError) Field

func (e AppCfgValidationError) Field() string

Field function returns field value.

func (AppCfgValidationError) Key

func (e AppCfgValidationError) Key() bool

Key function returns key value.

func (AppCfgValidationError) Reason

func (e AppCfgValidationError) Reason() string

Reason function returns reason value.

type AppEnv

type AppEnv struct {
	Appid   string       `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
	Payload *Environment `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*AppEnv) Descriptor deprecated

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

Deprecated: Use AppEnv.ProtoReflect.Descriptor instead.

func (*AppEnv) GetAppid

func (x *AppEnv) GetAppid() string

func (*AppEnv) GetPayload

func (x *AppEnv) GetPayload() *Environment

func (*AppEnv) ProtoMessage

func (*AppEnv) ProtoMessage()

func (*AppEnv) ProtoReflect

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

func (*AppEnv) Reset

func (x *AppEnv) Reset()

func (*AppEnv) String

func (x *AppEnv) String() string

func (*AppEnv) Validate

func (m *AppEnv) Validate() error

Validate checks the field values on AppEnv with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AppEnv) ValidateAll

func (m *AppEnv) ValidateAll() error

ValidateAll checks the field values on AppEnv with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppEnvMultiError, or nil if none found.

type AppEnvMultiError

type AppEnvMultiError []error

AppEnvMultiError is an error wrapping multiple validation errors returned by AppEnv.ValidateAll() if the designated constraints aren't met.

func (AppEnvMultiError) AllErrors

func (m AppEnvMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppEnvMultiError) Error

func (m AppEnvMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AppEnvValidationError

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

AppEnvValidationError is the validation error returned by AppEnv.Validate if the designated constraints aren't met.

func (AppEnvValidationError) Cause

func (e AppEnvValidationError) Cause() error

Cause function returns cause value.

func (AppEnvValidationError) Error

func (e AppEnvValidationError) Error() string

Error satisfies the builtin error interface

func (AppEnvValidationError) ErrorName

func (e AppEnvValidationError) ErrorName() string

ErrorName returns error name.

func (AppEnvValidationError) Field

func (e AppEnvValidationError) Field() string

Field function returns field value.

func (AppEnvValidationError) Key

func (e AppEnvValidationError) Key() bool

Key function returns key value.

func (AppEnvValidationError) Reason

func (e AppEnvValidationError) Reason() string

Reason function returns reason value.

type AppServiceClient

type AppServiceClient interface {
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Create(ctx context.Context, in *Application, opts ...grpc.CallOption) (*Application, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Application, error)
	Delete(ctx context.Context, in *kiae.IdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Read(ctx context.Context, in *kiae.IdRequest, opts ...grpc.CallOption) (*Application, error)
	DoAction(ctx context.Context, in *ActionPayload, opts ...grpc.CallOption) (*Application, error)
	CfgCreate(ctx context.Context, in *AppCfg, opts ...grpc.CallOption) (*Configuration, error)
	CfgUpdate(ctx context.Context, in *AppCfg, opts ...grpc.CallOption) (*Configuration, error)
	CfgDelete(ctx context.Context, in *AppCfg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	EnvCreate(ctx context.Context, in *AppEnv, opts ...grpc.CallOption) (*Environment, error)
	EnvUpdate(ctx context.Context, in *AppEnv, opts ...grpc.CallOption) (*Environment, error)
	EnvDelete(ctx context.Context, in *AppEnv, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AppServiceClient is the client API for AppService 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 NewAppServiceClient

func NewAppServiceClient(cc grpc.ClientConnInterface) AppServiceClient

type AppServiceServer

AppServiceServer is the server API for AppService service. All implementations should embed UnimplementedAppServiceServer for forward compatibility

type Application

type Application struct {
	Id             string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` // @gotags: bson:"_id,omitempty"
	Pid            string                 `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
	Env            string                 `protobuf:"bytes,3,opt,name=env,proto3" json:"env,omitempty"`
	Name           string                 `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Image          string                 `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"`
	Ports          []*project.Port        `protobuf:"bytes,6,rep,name=ports,proto3" json:"ports,omitempty"`
	Status         Status                 `protobuf:"varint,7,opt,name=status,proto3,enum=app.Status" json:"status,omitempty"`
	Size           Size                   `protobuf:"varint,8,opt,name=size,proto3,enum=app.Size" json:"size,omitempty"`
	Replicas       uint32                 `protobuf:"varint,9,opt,name=replicas,proto3" json:"replicas,omitempty"`
	Annotations    map[string]string      `` /* 164-byte string literal not displayed */
	LivenessProbe  *HealthProbe           `protobuf:"bytes,15,opt,name=liveness_probe,json=livenessProbe,proto3" json:"liveness_probe,omitempty"`
	ReadinessProbe *HealthProbe           `protobuf:"bytes,16,opt,name=readiness_probe,json=readinessProbe,proto3" json:"readiness_probe,omitempty"`
	Configs        []*Configuration       `protobuf:"bytes,17,rep,name=configs,proto3" json:"configs,omitempty"`
	Environments   []*Environment         `protobuf:"bytes,18,rep,name=environments,proto3" json:"environments,omitempty"`
	CreatedAt      *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at,omitempty"` // @gotags: bson:"created_at,omitempty"
	CreatedBy      *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty" bson:"created_by,omitempty"` // @gotags: bson:"created_by,omitempty"
	UpdatedAt      *timestamppb.Timestamp `protobuf:"bytes,103,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at,omitempty"` // @gotags: bson:"updated_at,omitempty"
	UpdatedBy      *timestamppb.Timestamp `protobuf:"bytes,104,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty" bson:"updated_by,omitempty"` // @gotags: bson:"updated_by,omitempty"
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

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

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetAnnotations

func (x *Application) GetAnnotations() map[string]string

func (*Application) GetConfigs

func (x *Application) GetConfigs() []*Configuration

func (*Application) GetCreatedAt

func (x *Application) GetCreatedAt() *timestamppb.Timestamp

func (*Application) GetCreatedBy

func (x *Application) GetCreatedBy() *timestamppb.Timestamp

func (*Application) GetEnv

func (x *Application) GetEnv() string

func (*Application) GetEnvironments

func (x *Application) GetEnvironments() []*Environment

func (*Application) GetId

func (x *Application) GetId() string

func (*Application) GetImage

func (x *Application) GetImage() string

func (*Application) GetLivenessProbe

func (x *Application) GetLivenessProbe() *HealthProbe

func (*Application) GetName

func (x *Application) GetName() string

func (*Application) GetPid

func (x *Application) GetPid() string

func (*Application) GetPorts

func (x *Application) GetPorts() []*project.Port

func (*Application) GetReadinessProbe

func (x *Application) GetReadinessProbe() *HealthProbe

func (*Application) GetReplicas

func (x *Application) GetReplicas() uint32

func (*Application) GetSize

func (x *Application) GetSize() Size

func (*Application) GetStatus

func (x *Application) GetStatus() Status

func (*Application) GetUpdatedAt

func (x *Application) GetUpdatedAt() *timestamppb.Timestamp

func (*Application) GetUpdatedBy

func (x *Application) GetUpdatedBy() *timestamppb.Timestamp

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

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

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

func (*Application) Validate

func (m *Application) Validate() error

Validate checks the field values on Application with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Application) ValidateAll

func (m *Application) ValidateAll() error

ValidateAll checks the field values on Application with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApplicationMultiError, or nil if none found.

type ApplicationMultiError

type ApplicationMultiError []error

ApplicationMultiError is an error wrapping multiple validation errors returned by Application.ValidateAll() if the designated constraints aren't met.

func (ApplicationMultiError) AllErrors

func (m ApplicationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApplicationMultiError) Error

func (m ApplicationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ApplicationValidationError

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

ApplicationValidationError is the validation error returned by Application.Validate if the designated constraints aren't met.

func (ApplicationValidationError) Cause

Cause function returns cause value.

func (ApplicationValidationError) Error

Error satisfies the builtin error interface

func (ApplicationValidationError) ErrorName

func (e ApplicationValidationError) ErrorName() string

ErrorName returns error name.

func (ApplicationValidationError) Field

Field function returns field value.

func (ApplicationValidationError) Key

Key function returns key value.

func (ApplicationValidationError) Reason

Reason function returns reason value.

type Configuration

type Configuration struct {
	Name      string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Filename  string                 `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	Content   string                 `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	MountPath string                 `protobuf:"bytes,4,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration) Descriptor deprecated

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

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetContent

func (x *Configuration) GetContent() string

func (*Configuration) GetCreatedAt

func (x *Configuration) GetCreatedAt() *timestamppb.Timestamp

func (*Configuration) GetFilename

func (x *Configuration) GetFilename() string

func (*Configuration) GetMountPath

func (x *Configuration) GetMountPath() string

func (*Configuration) GetName

func (x *Configuration) GetName() string

func (*Configuration) GetUpdatedAt

func (x *Configuration) GetUpdatedAt() *timestamppb.Timestamp

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

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

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

func (*Configuration) Validate

func (m *Configuration) Validate() error

Validate checks the field values on Configuration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Configuration) ValidateAll

func (m *Configuration) ValidateAll() error

ValidateAll checks the field values on Configuration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigurationMultiError, or nil if none found.

type ConfigurationMultiError

type ConfigurationMultiError []error

ConfigurationMultiError is an error wrapping multiple validation errors returned by Configuration.ValidateAll() if the designated constraints aren't met.

func (ConfigurationMultiError) AllErrors

func (m ConfigurationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigurationMultiError) Error

func (m ConfigurationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigurationValidationError

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

ConfigurationValidationError is the validation error returned by Configuration.Validate if the designated constraints aren't met.

func (ConfigurationValidationError) Cause

Cause function returns cause value.

func (ConfigurationValidationError) Error

Error satisfies the builtin error interface

func (ConfigurationValidationError) ErrorName

func (e ConfigurationValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigurationValidationError) Field

Field function returns field value.

func (ConfigurationValidationError) Key

Key function returns key value.

func (ConfigurationValidationError) Reason

Reason function returns reason value.

type Environment

type Environment struct {
	Type      Environment_Type       `protobuf:"varint,1,opt,name=type,proto3,enum=app.Environment_Type" json:"type,omitempty"`
	Name      string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Value     string                 `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetCreatedAt

func (x *Environment) GetCreatedAt() *timestamppb.Timestamp

func (*Environment) GetName

func (x *Environment) GetName() string

func (*Environment) GetType

func (x *Environment) GetType() Environment_Type

func (*Environment) GetUpdatedAt

func (x *Environment) GetUpdatedAt() *timestamppb.Timestamp

func (*Environment) GetValue

func (x *Environment) GetValue() string

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

func (*Environment) Validate

func (m *Environment) Validate() error

Validate checks the field values on Environment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Environment) ValidateAll

func (m *Environment) ValidateAll() error

ValidateAll checks the field values on Environment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentMultiError, or nil if none found.

type EnvironmentMultiError

type EnvironmentMultiError []error

EnvironmentMultiError is an error wrapping multiple validation errors returned by Environment.ValidateAll() if the designated constraints aren't met.

func (EnvironmentMultiError) AllErrors

func (m EnvironmentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EnvironmentMultiError) Error

func (m EnvironmentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EnvironmentValidationError

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

EnvironmentValidationError is the validation error returned by Environment.Validate if the designated constraints aren't met.

func (EnvironmentValidationError) Cause

Cause function returns cause value.

func (EnvironmentValidationError) Error

Error satisfies the builtin error interface

func (EnvironmentValidationError) ErrorName

func (e EnvironmentValidationError) ErrorName() string

ErrorName returns error name.

func (EnvironmentValidationError) Field

Field function returns field value.

func (EnvironmentValidationError) Key

Key function returns key value.

func (EnvironmentValidationError) Reason

Reason function returns reason value.

type Environment_Type

type Environment_Type int32
const (
	Environment_SYSTEM Environment_Type = 0
	Environment_PROJ   Environment_Type = 1
	Environment_USER   Environment_Type = 2
)

func (Environment_Type) Descriptor

func (Environment_Type) Enum

func (Environment_Type) EnumDescriptor deprecated

func (Environment_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Environment_Type.Descriptor instead.

func (Environment_Type) Number

func (Environment_Type) String

func (x Environment_Type) String() string

func (Environment_Type) Type

type HealthProbe

type HealthProbe struct {
	Enabled             bool   `protobuf:"varint,8,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Port                uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	Path                string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	PeriodSeconds       uint32 `protobuf:"varint,3,opt,name=period_seconds,json=periodSeconds,proto3" json:"period_seconds,omitempty"`
	TimeoutSeconds      uint32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
	SuccessThreshold    uint32 `protobuf:"varint,5,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"`
	FailureThreshold    uint32 `protobuf:"varint,6,opt,name=failure_threshold,json=failureThreshold,proto3" json:"failure_threshold,omitempty"`
	InitialDelaySeconds uint32 `protobuf:"varint,7,opt,name=initial_delay_seconds,json=initialDelaySeconds,proto3" json:"initial_delay_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthProbe) Descriptor deprecated

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

Deprecated: Use HealthProbe.ProtoReflect.Descriptor instead.

func (*HealthProbe) GetEnabled

func (x *HealthProbe) GetEnabled() bool

func (*HealthProbe) GetFailureThreshold

func (x *HealthProbe) GetFailureThreshold() uint32

func (*HealthProbe) GetInitialDelaySeconds

func (x *HealthProbe) GetInitialDelaySeconds() uint32

func (*HealthProbe) GetPath

func (x *HealthProbe) GetPath() string

func (*HealthProbe) GetPeriodSeconds

func (x *HealthProbe) GetPeriodSeconds() uint32

func (*HealthProbe) GetPort

func (x *HealthProbe) GetPort() uint32

func (*HealthProbe) GetSuccessThreshold

func (x *HealthProbe) GetSuccessThreshold() uint32

func (*HealthProbe) GetTimeoutSeconds

func (x *HealthProbe) GetTimeoutSeconds() uint32

func (*HealthProbe) ProtoMessage

func (*HealthProbe) ProtoMessage()

func (*HealthProbe) ProtoReflect

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

func (*HealthProbe) Reset

func (x *HealthProbe) Reset()

func (*HealthProbe) String

func (x *HealthProbe) String() string

func (*HealthProbe) Validate

func (m *HealthProbe) Validate() error

Validate checks the field values on HealthProbe with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HealthProbe) ValidateAll

func (m *HealthProbe) ValidateAll() error

ValidateAll checks the field values on HealthProbe with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HealthProbeMultiError, or nil if none found.

type HealthProbeMultiError

type HealthProbeMultiError []error

HealthProbeMultiError is an error wrapping multiple validation errors returned by HealthProbe.ValidateAll() if the designated constraints aren't met.

func (HealthProbeMultiError) AllErrors

func (m HealthProbeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HealthProbeMultiError) Error

func (m HealthProbeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HealthProbeValidationError

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

HealthProbeValidationError is the validation error returned by HealthProbe.Validate if the designated constraints aren't met.

func (HealthProbeValidationError) Cause

Cause function returns cause value.

func (HealthProbeValidationError) Error

Error satisfies the builtin error interface

func (HealthProbeValidationError) ErrorName

func (e HealthProbeValidationError) ErrorName() string

ErrorName returns error name.

func (HealthProbeValidationError) Field

Field function returns field value.

func (HealthProbeValidationError) Key

Key function returns key value.

func (HealthProbeValidationError) Reason

Reason function returns reason value.

type ListRequest

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

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPid

func (x *ListRequest) GetPid() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

func (*ListRequest) Validate

func (m *ListRequest) Validate() error

Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListRequest) ValidateAll

func (m *ListRequest) ValidateAll() error

ValidateAll checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRequestMultiError, or nil if none found.

type ListRequestMultiError

type ListRequestMultiError []error

ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.

func (ListRequestMultiError) AllErrors

func (m ListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRequestMultiError) Error

func (m ListRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListRequestValidationError

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

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

Reason function returns reason value.

type ListResponse

type ListResponse struct {
	Items []*Application `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Total int64          `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetItems

func (x *ListResponse) GetItems() []*Application

func (*ListResponse) GetTotal

func (x *ListResponse) GetTotal() int64

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

func (*ListResponse) Validate

func (m *ListResponse) Validate() error

Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListResponse) ValidateAll

func (m *ListResponse) ValidateAll() error

ValidateAll checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListResponseMultiError, or nil if none found.

type ListResponseMultiError

type ListResponseMultiError []error

ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.

func (ListResponseMultiError) AllErrors

func (m ListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResponseMultiError) Error

func (m ListResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListResponseValidationError

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

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

type Size

type Size int32
const (
	Size_SIZE_NANO    Size = 0
	Size_SIZE_MIRCO   Size = 1
	Size_SIZE_MINI    Size = 2
	Size_SIZE_SMALL   Size = 3
	Size_SIZE_MEDIUM  Size = 4
	Size_SIZE_LARGE   Size = 5
	Size_SIZE_XLARGE  Size = 6
	Size_SIZE_XXLARGE Size = 7
)

func (Size) Descriptor

func (Size) Descriptor() protoreflect.EnumDescriptor

func (Size) Enum

func (x Size) Enum() *Size

func (Size) EnumDescriptor deprecated

func (Size) EnumDescriptor() ([]byte, []int)

Deprecated: Use Size.Descriptor instead.

func (Size) Number

func (x Size) Number() protoreflect.EnumNumber

func (Size) String

func (x Size) String() string

func (Size) Type

func (Size) Type() protoreflect.EnumType

type Status

type Status int32
const (
	Status_STATUS_CREATED   Status = 0
	Status_STATUS_RUNNING   Status = 1
	Status_STATUS_STOPPED   Status = 2
	Status_STATUS_DEPLOYING Status = 3
	Status_STATUS_UNHEALTHY Status = 4
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type UnimplementedAppServiceServer

type UnimplementedAppServiceServer struct {
}

UnimplementedAppServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAppServiceServer) CfgCreate

func (UnimplementedAppServiceServer) CfgDelete

func (UnimplementedAppServiceServer) CfgUpdate

func (UnimplementedAppServiceServer) Create

func (UnimplementedAppServiceServer) Delete

func (UnimplementedAppServiceServer) DoAction

func (UnimplementedAppServiceServer) EnvCreate

func (UnimplementedAppServiceServer) EnvDelete

func (UnimplementedAppServiceServer) EnvUpdate

func (UnimplementedAppServiceServer) List

func (UnimplementedAppServiceServer) Read

func (UnimplementedAppServiceServer) Update

type UnsafeAppServiceServer

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

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

type UpdateRequest

type UpdateRequest struct {
	Payload    *Application           `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetPayload

func (x *UpdateRequest) GetPayload() *Application

func (*UpdateRequest) GetUpdateMask

func (x *UpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

func (*UpdateRequest) Validate

func (m *UpdateRequest) Validate() error

Validate checks the field values on UpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateRequest) ValidateAll

func (m *UpdateRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRequestMultiError, or nil if none found.

type UpdateRequestMultiError

type UpdateRequestMultiError []error

UpdateRequestMultiError is an error wrapping multiple validation errors returned by UpdateRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRequestMultiError) AllErrors

func (m UpdateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRequestMultiError) Error

func (m UpdateRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateRequestValidationError

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

UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.

func (UpdateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRequestValidationError) ErrorName

func (e UpdateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRequestValidationError) Field

Field function returns field value.

func (UpdateRequestValidationError) Key

Key function returns key value.

func (UpdateRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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