deploy

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: deploy.proto

Package deploy 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{
	"/deploy.DeployApi/DeployImage": AuthConfig{NeedAuth: false, Roles: []string{"*"}},
	"/deploy.DeployApi/Redeploy":    AuthConfig{NeedAuth: false, Roles: []string{"*"}},
}
View Source
var File_deploy_proto protoreflect.FileDescriptor
View Source
var FullMethods = fullMethods{
	DeployApi_DeployImage: "/deploy.DeployApi/DeployImage",
	DeployApi_Redeploy:    "/deploy.DeployApi/Redeploy",
}
View Source
var NeedApiKeyFullMethods = []string{}
View Source
var NeedAuthFullMethods = []string{}

Functions

func RegisterDeployApiGrstServer

func RegisterDeployApiGrstServer(grpcRestServer *grst.Server, hndl DeployApiServer)

func RegisterDeployApiHandler

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

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

func RegisterDeployApiHandlerClient

func RegisterDeployApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DeployApiClient) error

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

func RegisterDeployApiHandlerFromEndpoint

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

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

func RegisterDeployApiHandlerServer

func RegisterDeployApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DeployApiServer) error

RegisterDeployApiHandlerServer registers the http handlers for service DeployApi to "mux". UnaryRPC :call DeployApiServer 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 RegisterDeployApiHandlerFromEndpoint instead.

func RegisterDeployApiServer

func RegisterDeployApiServer(s *grpc.Server, srv DeployApiServer)

func ValidateRequest

func ValidateRequest(req interface{}) error

Types

type AuthConfig

type AuthConfig struct {
	NeedAuth bool
	Roles    []string
}

type DeployApiClient

type DeployApiClient interface {
	DeployImage(ctx context.Context, in *DeployImageReq, opts ...grpc.CallOption) (*empty.Empty, error)
	Redeploy(ctx context.Context, in *RedeployReq, opts ...grpc.CallOption) (*empty.Empty, error)
}

DeployApiClient is the client API for DeployApi 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 NewDeployApiClient

func NewDeployApiClient(cc grpc.ClientConnInterface) DeployApiClient

func NewDeployApiGrstClient

func NewDeployApiGrstClient(serverHost string, creds *credentials.TransportCredentials, dialOpts ...grpc.DialOption) (DeployApiClient, error)

type DeployApiServer

type DeployApiServer interface {
	DeployImage(context.Context, *DeployImageReq) (*empty.Empty, error)
	Redeploy(context.Context, *RedeployReq) (*empty.Empty, error)
	// contains filtered or unexported methods
}

DeployApiServer is the server API for DeployApi service. All implementations must embed UnimplementedDeployApiServer for forward compatibility

type DeployImageReq

type DeployImageReq 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"`
	Digest  string `protobuf:"bytes,3,opt,name=Digest,json=digest,proto3" json:"digest,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*DeployImageReq) Descriptor deprecated

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

Deprecated: Use DeployImageReq.ProtoReflect.Descriptor instead.

func (*DeployImageReq) GetDigest

func (x *DeployImageReq) GetDigest() string

func (*DeployImageReq) GetEnv

func (x *DeployImageReq) GetEnv() string

func (*DeployImageReq) GetName

func (x *DeployImageReq) GetName() string

func (*DeployImageReq) GetProject

func (x *DeployImageReq) GetProject() string

func (*DeployImageReq) ProtoMessage

func (*DeployImageReq) ProtoMessage()

func (*DeployImageReq) ProtoReflect

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

func (*DeployImageReq) Reset

func (x *DeployImageReq) Reset()

func (*DeployImageReq) String

func (x *DeployImageReq) String() string

type RedeployReq

type RedeployReq 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 (*RedeployReq) Descriptor deprecated

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

Deprecated: Use RedeployReq.ProtoReflect.Descriptor instead.

func (*RedeployReq) GetEnv

func (x *RedeployReq) GetEnv() string

func (*RedeployReq) GetName

func (x *RedeployReq) GetName() string

func (*RedeployReq) GetProject

func (x *RedeployReq) GetProject() string

func (*RedeployReq) ProtoMessage

func (*RedeployReq) ProtoMessage()

func (*RedeployReq) ProtoReflect

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

func (*RedeployReq) Reset

func (x *RedeployReq) Reset()

func (*RedeployReq) String

func (x *RedeployReq) String() string

type UnimplementedDeployApiServer

type UnimplementedDeployApiServer struct {
}

UnimplementedDeployApiServer must be embedded to have forward compatible implementations.

func (UnimplementedDeployApiServer) DeployImage

func (UnimplementedDeployApiServer) Redeploy

type UnsafeDeployApiServer

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

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

Jump to

Keyboard shortcuts

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