spec

package
v0.0.0-...-3439342 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-cdd. DO NOT EDIT. source: spec.proto

Package spec is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var AuthConfigFullMethods = map[string]AuthConfig{
	"/spec.SpecApi/GetEnvar":               AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/UpsertEnvar":            AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/GetScale":               AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/UpsertScale":            AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/GetPort":                AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/UpsertPort":             AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/GetAffinity":            AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/UpsertAffinity":         AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/GetDeploymentConfig":    AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/spec.SpecApi/UpsertDeploymentConfig": AuthConfig{NeedAuth: false, Roles: []string{"*"}},
}
View Source
var FullMethods = fullMethods{
	SpecApi_GetEnvar:               "/spec.SpecApi/GetEnvar",
	SpecApi_UpsertEnvar:            "/spec.SpecApi/UpsertEnvar",
	SpecApi_GetScale:               "/spec.SpecApi/GetScale",
	SpecApi_UpsertScale:            "/spec.SpecApi/UpsertScale",
	SpecApi_GetPort:                "/spec.SpecApi/GetPort",
	SpecApi_UpsertPort:             "/spec.SpecApi/UpsertPort",
	SpecApi_GetAffinity:            "/spec.SpecApi/GetAffinity",
	SpecApi_UpsertAffinity:         "/spec.SpecApi/UpsertAffinity",
	SpecApi_GetDeploymentConfig:    "/spec.SpecApi/GetDeploymentConfig",
	SpecApi_UpsertDeploymentConfig: "/spec.SpecApi/UpsertDeploymentConfig",
}
View Source
var NeedApiKeyFullMethods = []string{}
View Source
var NeedAuthFullMethods = []string{}

Functions

func RegisterSpecApiGrstServer

func RegisterSpecApiGrstServer(grpcRestServer *grst.Server, hndl SpecApiServer)

func RegisterSpecApiHandler

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

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

func RegisterSpecApiHandlerClient

func RegisterSpecApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpecApiClient) error

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

func RegisterSpecApiHandlerFromEndpoint

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

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

func RegisterSpecApiHandlerServer

func RegisterSpecApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpecApiServer) error

RegisterSpecApiHandlerServer registers the http handlers for service SpecApi to "mux". UnaryRPC :call SpecApiServer 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 RegisterSpecApiHandlerFromEndpoint instead.

func RegisterSpecApiServer

func RegisterSpecApiServer(s *grpc.Server, srv SpecApiServer)

func ValidateRequest

func ValidateRequest(req interface{}) error

Types

type Affinity

type Affinity struct {
	NodeAffinity    []*AffinityTerm       `protobuf:"bytes,3,rep,name=NodeAffinity,json=node_affinity,proto3" json:"node_affinity,omitempty" validate:"required"`
	PodAffinity     []*AffinityTerm       `protobuf:"bytes,4,rep,name=PodAffinity,json=pod_affinity,proto3" json:"pod_affinity,omitempty" validate:"required"`
	PodAntiAffinity []*AffinityTerm       `` /* 128-byte string literal not displayed */
	Tolerations     []*AffinityToleration `protobuf:"bytes,6,rep,name=Tolerations,json=tolerations,proto3" json:"tolerations,omitempty"`
	// contains filtered or unexported fields
}

func (*Affinity) Descriptor deprecated

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

Deprecated: Use Affinity.ProtoReflect.Descriptor instead.

func (*Affinity) GetNodeAffinity

func (x *Affinity) GetNodeAffinity() []*AffinityTerm

func (*Affinity) GetPodAffinity

func (x *Affinity) GetPodAffinity() []*AffinityTerm

func (*Affinity) GetPodAntiAffinity

func (x *Affinity) GetPodAntiAffinity() []*AffinityTerm

func (*Affinity) GetTolerations

func (x *Affinity) GetTolerations() []*AffinityToleration

func (*Affinity) ProtoMessage

func (*Affinity) ProtoMessage()

func (*Affinity) ProtoReflect

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

func (*Affinity) Reset

func (x *Affinity) Reset()

func (*Affinity) String

func (x *Affinity) String() string

type AffinityTerm

type AffinityTerm struct {
	Mode        string   `protobuf:"bytes,1,opt,name=Mode,json=mode,proto3" json:"mode,omitempty" validate:"required,enum=required|preferred"`
	Key         string   `protobuf:"bytes,2,opt,name=Key,json=key,proto3" json:"key,omitempty" validate:"required"`
	Operator    string   `` /* 143-byte string literal not displayed */
	Values      []string `protobuf:"bytes,4,rep,name=Values,json=values,proto3" json:"values,omitempty"`
	Weight      int32    `protobuf:"varint,5,opt,name=Weight,json=weight,proto3" json:"weight,omitempty" validate:"min=0,max=100"`
	TopologyKey string   `protobuf:"bytes,6,opt,name=TopologyKey,json=topology_key,proto3" json:"topology_key,omitempty"`
	// contains filtered or unexported fields
}

func (*AffinityTerm) Descriptor deprecated

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

Deprecated: Use AffinityTerm.ProtoReflect.Descriptor instead.

func (*AffinityTerm) GetKey

func (x *AffinityTerm) GetKey() string

func (*AffinityTerm) GetMode

func (x *AffinityTerm) GetMode() string

func (*AffinityTerm) GetOperator

func (x *AffinityTerm) GetOperator() string

func (*AffinityTerm) GetTopologyKey

func (x *AffinityTerm) GetTopologyKey() string

func (*AffinityTerm) GetValues

func (x *AffinityTerm) GetValues() []string

func (*AffinityTerm) GetWeight

func (x *AffinityTerm) GetWeight() int32

func (*AffinityTerm) ProtoMessage

func (*AffinityTerm) ProtoMessage()

func (*AffinityTerm) ProtoReflect

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

func (*AffinityTerm) Reset

func (x *AffinityTerm) Reset()

func (*AffinityTerm) String

func (x *AffinityTerm) String() string

type AffinityToleration

type AffinityToleration struct {
	Key      string `protobuf:"bytes,1,opt,name=Key,json=key,proto3" json:"key,omitempty" validate:"required"`
	Operator string `protobuf:"bytes,2,opt,name=Operator,json=operator,proto3" json:"operator,omitempty" validate:"enum=Equal|Exists"`
	Value    string `protobuf:"bytes,3,opt,name=Value,json=value,proto3" json:"value,omitempty"`
	Effect   string `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AffinityToleration) Descriptor deprecated

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

Deprecated: Use AffinityToleration.ProtoReflect.Descriptor instead.

func (*AffinityToleration) GetEffect

func (x *AffinityToleration) GetEffect() string

func (*AffinityToleration) GetKey

func (x *AffinityToleration) GetKey() string

func (*AffinityToleration) GetOperator

func (x *AffinityToleration) GetOperator() string

func (*AffinityToleration) GetValue

func (x *AffinityToleration) GetValue() string

func (*AffinityToleration) ProtoMessage

func (*AffinityToleration) ProtoMessage()

func (*AffinityToleration) ProtoReflect

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

func (*AffinityToleration) Reset

func (x *AffinityToleration) Reset()

func (*AffinityToleration) String

func (x *AffinityToleration) String() string

type AuthConfig

type AuthConfig struct {
	NeedAuth bool
	Roles    []string
}

type DeploymentConfig

type DeploymentConfig struct {
	LivenessProbe  *HttpGetProbe `protobuf:"bytes,1,opt,name=LivenessProbe,json=liveness_probe,proto3" json:"liveness_probe,omitempty"`
	ReadinessProbe *HttpGetProbe `protobuf:"bytes,2,opt,name=ReadinessProbe,json=readiness_probe,proto3" json:"readiness_probe,omitempty"`
	StartupProbe   *HttpGetProbe `protobuf:"bytes,3,opt,name=StartupProbe,json=startup_probe,proto3" json:"startup_probe,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentConfig) Descriptor deprecated

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

Deprecated: Use DeploymentConfig.ProtoReflect.Descriptor instead.

func (*DeploymentConfig) GetLivenessProbe

func (x *DeploymentConfig) GetLivenessProbe() *HttpGetProbe

func (*DeploymentConfig) GetReadinessProbe

func (x *DeploymentConfig) GetReadinessProbe() *HttpGetProbe

func (*DeploymentConfig) GetStartupProbe

func (x *DeploymentConfig) GetStartupProbe() *HttpGetProbe

func (*DeploymentConfig) ProtoMessage

func (*DeploymentConfig) ProtoMessage()

func (*DeploymentConfig) ProtoReflect

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

func (*DeploymentConfig) Reset

func (x *DeploymentConfig) Reset()

func (*DeploymentConfig) String

func (x *DeploymentConfig) String() string

type Envar

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

func (*Envar) Descriptor deprecated

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

Deprecated: Use Envar.ProtoReflect.Descriptor instead.

func (*Envar) GetVariables

func (x *Envar) GetVariables() string

func (*Envar) ProtoMessage

func (*Envar) ProtoMessage()

func (*Envar) ProtoReflect

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

func (*Envar) Reset

func (x *Envar) Reset()

func (*Envar) String

func (x *Envar) String() string

type GetAffinityReq

type GetAffinityReq struct {
	Project string `protobuf:"bytes,3,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env     string `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name    string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetAffinityReq) Descriptor deprecated

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

Deprecated: Use GetAffinityReq.ProtoReflect.Descriptor instead.

func (*GetAffinityReq) GetEnv

func (x *GetAffinityReq) GetEnv() string

func (*GetAffinityReq) GetName

func (x *GetAffinityReq) GetName() string

func (*GetAffinityReq) GetProject

func (x *GetAffinityReq) GetProject() string

func (*GetAffinityReq) ProtoMessage

func (*GetAffinityReq) ProtoMessage()

func (*GetAffinityReq) ProtoReflect

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

func (*GetAffinityReq) Reset

func (x *GetAffinityReq) Reset()

func (*GetAffinityReq) String

func (x *GetAffinityReq) String() string

type GetAffinityTemplateReq

type GetAffinityTemplateReq struct {
	TemplateName string `protobuf:"bytes,1,opt,name=TemplateName,json=template_name,proto3" json:"template_name,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetAffinityTemplateReq) Descriptor deprecated

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

Deprecated: Use GetAffinityTemplateReq.ProtoReflect.Descriptor instead.

func (*GetAffinityTemplateReq) GetTemplateName

func (x *GetAffinityTemplateReq) GetTemplateName() string

func (*GetAffinityTemplateReq) ProtoMessage

func (*GetAffinityTemplateReq) ProtoMessage()

func (*GetAffinityTemplateReq) ProtoReflect

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

func (*GetAffinityTemplateReq) Reset

func (x *GetAffinityTemplateReq) Reset()

func (*GetAffinityTemplateReq) String

func (x *GetAffinityTemplateReq) String() string

type GetDeploymentConfigReq

type GetDeploymentConfigReq struct {
	Project string `protobuf:"bytes,3,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env     string `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name    string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetDeploymentConfigReq) Descriptor deprecated

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

Deprecated: Use GetDeploymentConfigReq.ProtoReflect.Descriptor instead.

func (*GetDeploymentConfigReq) GetEnv

func (x *GetDeploymentConfigReq) GetEnv() string

func (*GetDeploymentConfigReq) GetName

func (x *GetDeploymentConfigReq) GetName() string

func (*GetDeploymentConfigReq) GetProject

func (x *GetDeploymentConfigReq) GetProject() string

func (*GetDeploymentConfigReq) ProtoMessage

func (*GetDeploymentConfigReq) ProtoMessage()

func (*GetDeploymentConfigReq) ProtoReflect

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

func (*GetDeploymentConfigReq) Reset

func (x *GetDeploymentConfigReq) Reset()

func (*GetDeploymentConfigReq) String

func (x *GetDeploymentConfigReq) String() string

type GetEnvarReq

type GetEnvarReq struct {
	Project string `protobuf:"bytes,3,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env     string `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name    string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetEnvarReq) Descriptor deprecated

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

Deprecated: Use GetEnvarReq.ProtoReflect.Descriptor instead.

func (*GetEnvarReq) GetEnv

func (x *GetEnvarReq) GetEnv() string

func (*GetEnvarReq) GetName

func (x *GetEnvarReq) GetName() string

func (*GetEnvarReq) GetProject

func (x *GetEnvarReq) GetProject() string

func (*GetEnvarReq) ProtoMessage

func (*GetEnvarReq) ProtoMessage()

func (*GetEnvarReq) ProtoReflect

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

func (*GetEnvarReq) Reset

func (x *GetEnvarReq) Reset()

func (*GetEnvarReq) String

func (x *GetEnvarReq) String() string

type GetPortReq

type GetPortReq struct {
	Project string `protobuf:"bytes,3,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env     string `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name    string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetPortReq) Descriptor deprecated

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

Deprecated: Use GetPortReq.ProtoReflect.Descriptor instead.

func (*GetPortReq) GetEnv

func (x *GetPortReq) GetEnv() string

func (*GetPortReq) GetName

func (x *GetPortReq) GetName() string

func (*GetPortReq) GetProject

func (x *GetPortReq) GetProject() string

func (*GetPortReq) ProtoMessage

func (*GetPortReq) ProtoMessage()

func (*GetPortReq) ProtoReflect

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

func (*GetPortReq) Reset

func (x *GetPortReq) Reset()

func (*GetPortReq) String

func (x *GetPortReq) String() string

type GetPortTemplateReq

type GetPortTemplateReq struct {
	TemplateName string `protobuf:"bytes,1,opt,name=TemplateName,json=template_name,proto3" json:"template_name,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetPortTemplateReq) Descriptor deprecated

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

Deprecated: Use GetPortTemplateReq.ProtoReflect.Descriptor instead.

func (*GetPortTemplateReq) GetTemplateName

func (x *GetPortTemplateReq) GetTemplateName() string

func (*GetPortTemplateReq) ProtoMessage

func (*GetPortTemplateReq) ProtoMessage()

func (*GetPortTemplateReq) ProtoReflect

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

func (*GetPortTemplateReq) Reset

func (x *GetPortTemplateReq) Reset()

func (*GetPortTemplateReq) String

func (x *GetPortTemplateReq) String() string

type GetScaleReq

type GetScaleReq struct {
	Project string `protobuf:"bytes,3,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env     string `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name    string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*GetScaleReq) Descriptor deprecated

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

Deprecated: Use GetScaleReq.ProtoReflect.Descriptor instead.

func (*GetScaleReq) GetEnv

func (x *GetScaleReq) GetEnv() string

func (*GetScaleReq) GetName

func (x *GetScaleReq) GetName() string

func (*GetScaleReq) GetProject

func (x *GetScaleReq) GetProject() string

func (*GetScaleReq) ProtoMessage

func (*GetScaleReq) ProtoMessage()

func (*GetScaleReq) ProtoReflect

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

func (*GetScaleReq) Reset

func (x *GetScaleReq) Reset()

func (*GetScaleReq) String

func (x *GetScaleReq) String() string

type HttpGetProbe

type HttpGetProbe struct {
	Path                string `protobuf:"bytes,1,opt,name=Path,json=path,proto3" json:"path,omitempty"`
	Port                int32  `protobuf:"varint,2,opt,name=Port,json=port,proto3" json:"port,omitempty"`
	FailureThreshold    int32  `protobuf:"varint,3,opt,name=FailureThreshold,json=failure_threshold,proto3" json:"failure_threshold,omitempty"`
	PeriodSeconds       int32  `protobuf:"varint,4,opt,name=PeriodSeconds,json=period_seconds,proto3" json:"period_seconds,omitempty"`
	InitialDelaySeconds int32  `protobuf:"varint,5,opt,name=InitialDelaySeconds,json=initial_delay_seconds,proto3" json:"initial_delay_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpGetProbe) Descriptor deprecated

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

Deprecated: Use HttpGetProbe.ProtoReflect.Descriptor instead.

func (*HttpGetProbe) GetFailureThreshold

func (x *HttpGetProbe) GetFailureThreshold() int32

func (*HttpGetProbe) GetInitialDelaySeconds

func (x *HttpGetProbe) GetInitialDelaySeconds() int32

func (*HttpGetProbe) GetPath

func (x *HttpGetProbe) GetPath() string

func (*HttpGetProbe) GetPeriodSeconds

func (x *HttpGetProbe) GetPeriodSeconds() int32

func (*HttpGetProbe) GetPort

func (x *HttpGetProbe) GetPort() int32

func (*HttpGetProbe) ProtoMessage

func (*HttpGetProbe) ProtoMessage()

func (*HttpGetProbe) ProtoReflect

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

func (*HttpGetProbe) Reset

func (x *HttpGetProbe) Reset()

func (*HttpGetProbe) String

func (x *HttpGetProbe) String() string

type Port

type Port struct {
	PortName   string `protobuf:"bytes,1,opt,name=PortName,json=name,proto3" json:"name,omitempty" validate:"required"`
	Port       int32  `protobuf:"varint,2,opt,name=Port,json=port,proto3" json:"port,omitempty" validate:"required"`
	RemotePort int32  `protobuf:"varint,3,opt,name=RemotePort,json=remote_port,proto3" json:"remote_port,omitempty" validate:"required"`
	Protocol   string `protobuf:"bytes,4,opt,name=Protocol,json=protocol,proto3" json:"protocol,omitempty" validate:"required,enum=TCP|UDP|SCTP"`
	// contains filtered or unexported fields
}

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetPort

func (x *Port) GetPort() int32

func (*Port) GetPortName

func (x *Port) GetPortName() string

func (*Port) GetProtocol

func (x *Port) GetProtocol() string

func (*Port) GetRemotePort

func (x *Port) GetRemotePort() int32

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

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

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

type Ports

type Ports struct {
	Ports      []*Port `protobuf:"bytes,1,rep,name=Ports,json=ports,proto3" json:"ports,omitempty"`
	AccessType string  `protobuf:"bytes,2,opt,name=AccessType,json=access_type,proto3" json:"access_type,omitempty"`
	ExternalIP string  `protobuf:"bytes,3,opt,name=ExternalIP,json=external_ip,proto3" json:"external_ip,omitempty"`
	// contains filtered or unexported fields
}

func (*Ports) Descriptor deprecated

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

Deprecated: Use Ports.ProtoReflect.Descriptor instead.

func (*Ports) GetAccessType

func (x *Ports) GetAccessType() string

func (*Ports) GetExternalIP

func (x *Ports) GetExternalIP() string

func (*Ports) GetPorts

func (x *Ports) GetPorts() []*Port

func (*Ports) ProtoMessage

func (*Ports) ProtoMessage()

func (*Ports) ProtoReflect

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

func (*Ports) Reset

func (x *Ports) Reset()

func (*Ports) String

func (x *Ports) String() string

type Scale

type Scale struct {
	Project              string `protobuf:"bytes,1,opt,name=Project,json=project,proto3" json:"project,omitempty"`
	Env                  string `protobuf:"bytes,2,opt,name=Env,json=env,proto3" json:"env,omitempty"`
	Name                 string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"name,omitempty"`
	MinReplica           int32  `protobuf:"varint,4,opt,name=MinReplica,json=min_replica,proto3" json:"min_replica,omitempty"`
	MaxReplica           int32  `protobuf:"varint,5,opt,name=MaxReplica,json=max_replica,proto3" json:"max_replica,omitempty"`
	MinCpu               int32  `protobuf:"varint,6,opt,name=MinCpu,json=min_cpu,proto3" json:"min_cpu,omitempty"`
	MaxCpu               int32  `protobuf:"varint,7,opt,name=MaxCpu,json=max_cpu,proto3" json:"max_cpu,omitempty"`
	MinMemory            int32  `protobuf:"varint,8,opt,name=MinMemory,json=min_memory,proto3" json:"min_memory,omitempty"`
	MaxMemory            int32  `protobuf:"varint,9,opt,name=MaxMemory,json=max_memory,proto3" json:"max_memory,omitempty"`
	TargetCPUUtilization int32  `protobuf:"varint,10,opt,name=TargetCPUUtilization,json=target_cpu,proto3" json:"target_cpu,omitempty"`
	// contains filtered or unexported fields
}

func (*Scale) Descriptor deprecated

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

Deprecated: Use Scale.ProtoReflect.Descriptor instead.

func (*Scale) GetEnv

func (x *Scale) GetEnv() string

func (*Scale) GetMaxCpu

func (x *Scale) GetMaxCpu() int32

func (*Scale) GetMaxMemory

func (x *Scale) GetMaxMemory() int32

func (*Scale) GetMaxReplica

func (x *Scale) GetMaxReplica() int32

func (*Scale) GetMinCpu

func (x *Scale) GetMinCpu() int32

func (*Scale) GetMinMemory

func (x *Scale) GetMinMemory() int32

func (*Scale) GetMinReplica

func (x *Scale) GetMinReplica() int32

func (*Scale) GetName

func (x *Scale) GetName() string

func (*Scale) GetProject

func (x *Scale) GetProject() string

func (*Scale) GetTargetCPUUtilization

func (x *Scale) GetTargetCPUUtilization() int32

func (*Scale) ProtoMessage

func (*Scale) ProtoMessage()

func (*Scale) ProtoReflect

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

func (*Scale) Reset

func (x *Scale) Reset()

func (*Scale) String

func (x *Scale) String() string

type SpecApiClient

type SpecApiClient interface {
	GetEnvar(ctx context.Context, in *GetEnvarReq, opts ...grpc.CallOption) (*Envar, error)
	UpsertEnvar(ctx context.Context, in *UpsertEnvarReq, opts ...grpc.CallOption) (*empty.Empty, error)
	GetScale(ctx context.Context, in *GetScaleReq, opts ...grpc.CallOption) (*Scale, error)
	UpsertScale(ctx context.Context, in *UpsertScaleReq, opts ...grpc.CallOption) (*empty.Empty, error)
	GetPort(ctx context.Context, in *GetPortReq, opts ...grpc.CallOption) (*Ports, error)
	UpsertPort(ctx context.Context, in *UpsertPortReq, opts ...grpc.CallOption) (*empty.Empty, error)
	GetAffinity(ctx context.Context, in *GetAffinityReq, opts ...grpc.CallOption) (*Affinity, error)
	UpsertAffinity(ctx context.Context, in *UpsertAffinityReq, opts ...grpc.CallOption) (*empty.Empty, error)
	GetDeploymentConfig(ctx context.Context, in *GetDeploymentConfigReq, opts ...grpc.CallOption) (*DeploymentConfig, error)
	UpsertDeploymentConfig(ctx context.Context, in *UpsertDeploymentConfigReq, opts ...grpc.CallOption) (*empty.Empty, error)
}

SpecApiClient is the client API for SpecApi 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 NewSpecApiClient

func NewSpecApiClient(cc grpc.ClientConnInterface) SpecApiClient

func NewSpecApiGrstClient

func NewSpecApiGrstClient(serverHost string, creds *credentials.TransportCredentials, dialOpts ...grpc.DialOption) (SpecApiClient, error)

type SpecApiServer

type SpecApiServer interface {
	GetEnvar(context.Context, *GetEnvarReq) (*Envar, error)
	UpsertEnvar(context.Context, *UpsertEnvarReq) (*empty.Empty, error)
	GetScale(context.Context, *GetScaleReq) (*Scale, error)
	UpsertScale(context.Context, *UpsertScaleReq) (*empty.Empty, error)
	GetPort(context.Context, *GetPortReq) (*Ports, error)
	UpsertPort(context.Context, *UpsertPortReq) (*empty.Empty, error)
	GetAffinity(context.Context, *GetAffinityReq) (*Affinity, error)
	UpsertAffinity(context.Context, *UpsertAffinityReq) (*empty.Empty, error)
	GetDeploymentConfig(context.Context, *GetDeploymentConfigReq) (*DeploymentConfig, error)
	UpsertDeploymentConfig(context.Context, *UpsertDeploymentConfigReq) (*empty.Empty, error)
	// contains filtered or unexported methods
}

SpecApiServer is the server API for SpecApi service. All implementations must embed UnimplementedSpecApiServer for forward compatibility

type UnimplementedSpecApiServer

type UnimplementedSpecApiServer struct {
}

UnimplementedSpecApiServer must be embedded to have forward compatible implementations.

func (UnimplementedSpecApiServer) GetAffinity

func (UnimplementedSpecApiServer) GetDeploymentConfig

func (UnimplementedSpecApiServer) GetEnvar

func (UnimplementedSpecApiServer) GetPort

func (UnimplementedSpecApiServer) GetScale

func (UnimplementedSpecApiServer) UpsertAffinity

func (UnimplementedSpecApiServer) UpsertDeploymentConfig

func (UnimplementedSpecApiServer) UpsertEnvar

func (UnimplementedSpecApiServer) UpsertPort

func (UnimplementedSpecApiServer) UpsertScale

type UnsafeSpecApiServer

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

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

type UpdateAffinityTemplateReq

type UpdateAffinityTemplateReq struct {
	TemplateName    string                `protobuf:"bytes,1,opt,name=TemplateName,json=template_name,proto3" json:"template_name,omitempty" validate:"required"`
	NodeAffinity    []*AffinityTerm       `protobuf:"bytes,2,rep,name=NodeAffinity,json=node_affinity,proto3" json:"node_affinity,omitempty"`
	PodAffinity     []*AffinityTerm       `protobuf:"bytes,3,rep,name=PodAffinity,json=pod_affinity,proto3" json:"pod_affinity,omitempty"`
	PodAntiAffinity []*AffinityTerm       `protobuf:"bytes,4,rep,name=PodAntiAffinity,json=pod_anti_affinity,proto3" json:"pod_anti_affinity,omitempty"`
	Tolerations     []*AffinityToleration `protobuf:"bytes,5,rep,name=Tolerations,json=tolerations,proto3" json:"tolerations,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAffinityTemplateReq) Descriptor deprecated

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

Deprecated: Use UpdateAffinityTemplateReq.ProtoReflect.Descriptor instead.

func (*UpdateAffinityTemplateReq) GetNodeAffinity

func (x *UpdateAffinityTemplateReq) GetNodeAffinity() []*AffinityTerm

func (*UpdateAffinityTemplateReq) GetPodAffinity

func (x *UpdateAffinityTemplateReq) GetPodAffinity() []*AffinityTerm

func (*UpdateAffinityTemplateReq) GetPodAntiAffinity

func (x *UpdateAffinityTemplateReq) GetPodAntiAffinity() []*AffinityTerm

func (*UpdateAffinityTemplateReq) GetTemplateName

func (x *UpdateAffinityTemplateReq) GetTemplateName() string

func (*UpdateAffinityTemplateReq) GetTolerations

func (x *UpdateAffinityTemplateReq) GetTolerations() []*AffinityToleration

func (*UpdateAffinityTemplateReq) ProtoMessage

func (*UpdateAffinityTemplateReq) ProtoMessage()

func (*UpdateAffinityTemplateReq) ProtoReflect

func (*UpdateAffinityTemplateReq) Reset

func (x *UpdateAffinityTemplateReq) Reset()

func (*UpdateAffinityTemplateReq) String

func (x *UpdateAffinityTemplateReq) String() string

type UpdatePortTemplateReq

type UpdatePortTemplateReq struct {
	TemplateName string  `protobuf:"bytes,1,opt,name=TemplateName,json=template_name,proto3" json:"template_name,omitempty" validate:"required"`
	Ports        []*Port `protobuf:"bytes,2,rep,name=Ports,json=ports,proto3" json:"ports,omitempty"`
	AccessType   string  `protobuf:"bytes,3,opt,name=AccessType,json=access_type,proto3" json:"access_type,omitempty"`
	ExternalIP   string  `protobuf:"bytes,4,opt,name=ExternalIP,json=external_ip,proto3" json:"external_ip,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePortTemplateReq) Descriptor deprecated

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

Deprecated: Use UpdatePortTemplateReq.ProtoReflect.Descriptor instead.

func (*UpdatePortTemplateReq) GetAccessType

func (x *UpdatePortTemplateReq) GetAccessType() string

func (*UpdatePortTemplateReq) GetExternalIP

func (x *UpdatePortTemplateReq) GetExternalIP() string

func (*UpdatePortTemplateReq) GetPorts

func (x *UpdatePortTemplateReq) GetPorts() []*Port

func (*UpdatePortTemplateReq) GetTemplateName

func (x *UpdatePortTemplateReq) GetTemplateName() string

func (*UpdatePortTemplateReq) ProtoMessage

func (*UpdatePortTemplateReq) ProtoMessage()

func (*UpdatePortTemplateReq) ProtoReflect

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

func (*UpdatePortTemplateReq) Reset

func (x *UpdatePortTemplateReq) Reset()

func (*UpdatePortTemplateReq) String

func (x *UpdatePortTemplateReq) String() string

type UpsertAffinityReq

type UpsertAffinityReq struct {
	Project         string                `protobuf:"bytes,6,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env             string                `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name            string                `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	NodeAffinity    []*AffinityTerm       `protobuf:"bytes,3,rep,name=NodeAffinity,json=node_affinity,proto3" json:"node_affinity,omitempty"`
	PodAffinity     []*AffinityTerm       `protobuf:"bytes,4,rep,name=PodAffinity,json=pod_affinity,proto3" json:"pod_affinity,omitempty"`
	PodAntiAffinity []*AffinityTerm       `protobuf:"bytes,5,rep,name=PodAntiAffinity,json=pod_anti_affinity,proto3" json:"pod_anti_affinity,omitempty"`
	Tolerations     []*AffinityToleration `protobuf:"bytes,7,rep,name=Tolerations,json=tolerations,proto3" json:"tolerations,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertAffinityReq) Descriptor deprecated

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

Deprecated: Use UpsertAffinityReq.ProtoReflect.Descriptor instead.

func (*UpsertAffinityReq) GetEnv

func (x *UpsertAffinityReq) GetEnv() string

func (*UpsertAffinityReq) GetName

func (x *UpsertAffinityReq) GetName() string

func (*UpsertAffinityReq) GetNodeAffinity

func (x *UpsertAffinityReq) GetNodeAffinity() []*AffinityTerm

func (*UpsertAffinityReq) GetPodAffinity

func (x *UpsertAffinityReq) GetPodAffinity() []*AffinityTerm

func (*UpsertAffinityReq) GetPodAntiAffinity

func (x *UpsertAffinityReq) GetPodAntiAffinity() []*AffinityTerm

func (*UpsertAffinityReq) GetProject

func (x *UpsertAffinityReq) GetProject() string

func (*UpsertAffinityReq) GetTolerations

func (x *UpsertAffinityReq) GetTolerations() []*AffinityToleration

func (*UpsertAffinityReq) ProtoMessage

func (*UpsertAffinityReq) ProtoMessage()

func (*UpsertAffinityReq) ProtoReflect

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

func (*UpsertAffinityReq) Reset

func (x *UpsertAffinityReq) Reset()

func (*UpsertAffinityReq) String

func (x *UpsertAffinityReq) String() string

type UpsertDeploymentConfigReq

type UpsertDeploymentConfigReq struct {
	Project        string        `protobuf:"bytes,6,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env            string        `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name           string        `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	LivenessProbe  *HttpGetProbe `protobuf:"bytes,3,opt,name=LivenessProbe,json=liveness_probe,proto3" json:"liveness_probe,omitempty"`
	ReadinessProbe *HttpGetProbe `protobuf:"bytes,4,opt,name=ReadinessProbe,json=readiness_probe,proto3" json:"readiness_probe,omitempty"`
	StartupProbe   *HttpGetProbe `protobuf:"bytes,5,opt,name=StartupProbe,json=startup_probe,proto3" json:"startup_probe,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertDeploymentConfigReq) Descriptor deprecated

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

Deprecated: Use UpsertDeploymentConfigReq.ProtoReflect.Descriptor instead.

func (*UpsertDeploymentConfigReq) GetEnv

func (x *UpsertDeploymentConfigReq) GetEnv() string

func (*UpsertDeploymentConfigReq) GetLivenessProbe

func (x *UpsertDeploymentConfigReq) GetLivenessProbe() *HttpGetProbe

func (*UpsertDeploymentConfigReq) GetName

func (x *UpsertDeploymentConfigReq) GetName() string

func (*UpsertDeploymentConfigReq) GetProject

func (x *UpsertDeploymentConfigReq) GetProject() string

func (*UpsertDeploymentConfigReq) GetReadinessProbe

func (x *UpsertDeploymentConfigReq) GetReadinessProbe() *HttpGetProbe

func (*UpsertDeploymentConfigReq) GetStartupProbe

func (x *UpsertDeploymentConfigReq) GetStartupProbe() *HttpGetProbe

func (*UpsertDeploymentConfigReq) ProtoMessage

func (*UpsertDeploymentConfigReq) ProtoMessage()

func (*UpsertDeploymentConfigReq) ProtoReflect

func (*UpsertDeploymentConfigReq) Reset

func (x *UpsertDeploymentConfigReq) Reset()

func (*UpsertDeploymentConfigReq) String

func (x *UpsertDeploymentConfigReq) String() string

type UpsertEnvarReq

type UpsertEnvarReq struct {
	Project   string `protobuf:"bytes,4,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env       string `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name      string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	Variables string `protobuf:"bytes,3,opt,name=Variables,json=variables,proto3" json:"variables,omitempty" validate:"required,json"`
	// contains filtered or unexported fields
}

func (*UpsertEnvarReq) Descriptor deprecated

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

Deprecated: Use UpsertEnvarReq.ProtoReflect.Descriptor instead.

func (*UpsertEnvarReq) GetEnv

func (x *UpsertEnvarReq) GetEnv() string

func (*UpsertEnvarReq) GetName

func (x *UpsertEnvarReq) GetName() string

func (*UpsertEnvarReq) GetProject

func (x *UpsertEnvarReq) GetProject() string

func (*UpsertEnvarReq) GetVariables

func (x *UpsertEnvarReq) GetVariables() string

func (*UpsertEnvarReq) ProtoMessage

func (*UpsertEnvarReq) ProtoMessage()

func (*UpsertEnvarReq) ProtoReflect

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

func (*UpsertEnvarReq) Reset

func (x *UpsertEnvarReq) Reset()

func (*UpsertEnvarReq) String

func (x *UpsertEnvarReq) String() string

type UpsertPortReq

type UpsertPortReq struct {
	Project    string  `protobuf:"bytes,6,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env        string  `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name       string  `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	AccessType string  `` /* 139-byte string literal not displayed */
	ExternalIP string  `protobuf:"bytes,4,opt,name=ExternalIP,json=external_ip,proto3" json:"external_ip,omitempty"`
	Ports      []*Port `protobuf:"bytes,5,rep,name=Ports,json=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertPortReq) Descriptor deprecated

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

Deprecated: Use UpsertPortReq.ProtoReflect.Descriptor instead.

func (*UpsertPortReq) GetAccessType

func (x *UpsertPortReq) GetAccessType() string

func (*UpsertPortReq) GetEnv

func (x *UpsertPortReq) GetEnv() string

func (*UpsertPortReq) GetExternalIP

func (x *UpsertPortReq) GetExternalIP() string

func (*UpsertPortReq) GetName

func (x *UpsertPortReq) GetName() string

func (*UpsertPortReq) GetPorts

func (x *UpsertPortReq) GetPorts() []*Port

func (*UpsertPortReq) GetProject

func (x *UpsertPortReq) GetProject() string

func (*UpsertPortReq) ProtoMessage

func (*UpsertPortReq) ProtoMessage()

func (*UpsertPortReq) ProtoReflect

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

func (*UpsertPortReq) Reset

func (x *UpsertPortReq) Reset()

func (*UpsertPortReq) String

func (x *UpsertPortReq) String() string

type UpsertScaleReq

type UpsertScaleReq struct {
	Project              string `protobuf:"bytes,10,opt,name=Project,json=project,proto3" json:"project,omitempty" default:"default"`
	Env                  string `protobuf:"bytes,1,opt,name=Env,json=env,proto3" json:"env,omitempty" validate:"required"`
	Name                 string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"name,omitempty" validate:"required"`
	MinReplica           int32  `protobuf:"varint,3,opt,name=MinReplica,json=min_replica,proto3" json:"min_replica,omitempty" validate:"required,min=1"`
	MaxReplica           int32  `protobuf:"varint,4,opt,name=MaxReplica,json=max_replica,proto3" json:"max_replica,omitempty" validate:"required,min=1"`
	MinCpu               int32  `protobuf:"varint,5,opt,name=MinCpu,json=min_cpu,proto3" json:"min_cpu,omitempty" validate:"required,min=10"`
	MaxCpu               int32  `protobuf:"varint,6,opt,name=MaxCpu,json=max_cpu,proto3" json:"max_cpu,omitempty" validate:"required,min=10"`
	MinMemory            int32  `protobuf:"varint,7,opt,name=MinMemory,json=min_memory,proto3" json:"min_memory,omitempty" validate:"required,min=10"`
	MaxMemory            int32  `protobuf:"varint,8,opt,name=MaxMemory,json=max_memory,proto3" json:"max_memory,omitempty" validate:"required,min=10"`
	TargetCPUUtilization int32  `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpsertScaleReq) Descriptor deprecated

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

Deprecated: Use UpsertScaleReq.ProtoReflect.Descriptor instead.

func (*UpsertScaleReq) GetEnv

func (x *UpsertScaleReq) GetEnv() string

func (*UpsertScaleReq) GetMaxCpu

func (x *UpsertScaleReq) GetMaxCpu() int32

func (*UpsertScaleReq) GetMaxMemory

func (x *UpsertScaleReq) GetMaxMemory() int32

func (*UpsertScaleReq) GetMaxReplica

func (x *UpsertScaleReq) GetMaxReplica() int32

func (*UpsertScaleReq) GetMinCpu

func (x *UpsertScaleReq) GetMinCpu() int32

func (*UpsertScaleReq) GetMinMemory

func (x *UpsertScaleReq) GetMinMemory() int32

func (*UpsertScaleReq) GetMinReplica

func (x *UpsertScaleReq) GetMinReplica() int32

func (*UpsertScaleReq) GetName

func (x *UpsertScaleReq) GetName() string

func (*UpsertScaleReq) GetProject

func (x *UpsertScaleReq) GetProject() string

func (*UpsertScaleReq) GetTargetCPUUtilization

func (x *UpsertScaleReq) GetTargetCPUUtilization() int32

func (*UpsertScaleReq) ProtoMessage

func (*UpsertScaleReq) ProtoMessage()

func (*UpsertScaleReq) ProtoReflect

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

func (*UpsertScaleReq) Reset

func (x *UpsertScaleReq) Reset()

func (*UpsertScaleReq) String

func (x *UpsertScaleReq) String() string

Jump to

Keyboard shortcuts

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