gitops_deploy_secret_api

package
v0.0.0-...-6d3c127 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeploySecretApi_SetSecretItem_FullMethodName    = "/gitops_deploy_secret_api.DeploySecretApi/setSecretItem"
	DeploySecretApi_ListSecretItem_FullMethodName   = "/gitops_deploy_secret_api.DeploySecretApi/listSecretItem"
	DeploySecretApi_RemoveSecretItem_FullMethodName = "/gitops_deploy_secret_api.DeploySecretApi/removeSecretItem"
)

Variables

View Source
var (
	SetSecretItemResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_ACCESS_TOKEN",
		2: "CODE_NO_PERMISSION",
		3: "CODE_NO_PLAN",
		4: "CODE_NO_HOST",
	}
	SetSecretItemResponse_CODE_value = map[string]int32{
		"CODE_OK":                 0,
		"CODE_WRONG_ACCESS_TOKEN": 1,
		"CODE_NO_PERMISSION":      2,
		"CODE_NO_PLAN":            3,
		"CODE_NO_HOST":            4,
	}
)

Enum value maps for SetSecretItemResponse_CODE.

View Source
var (
	ListSecretItemResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_ACCESS_TOKEN",
		2: "CODE_NO_PERMISSION",
		3: "CODE_NO_PLAN",
		4: "CODE_NO_HOST",
	}
	ListSecretItemResponse_CODE_value = map[string]int32{
		"CODE_OK":                 0,
		"CODE_WRONG_ACCESS_TOKEN": 1,
		"CODE_NO_PERMISSION":      2,
		"CODE_NO_PLAN":            3,
		"CODE_NO_HOST":            4,
	}
)

Enum value maps for ListSecretItemResponse_CODE.

View Source
var (
	RemoveSecretItemResponse_CODE_name = map[int32]string{
		0: "CODE_OK",
		1: "CODE_WRONG_ACCESS_TOKEN",
		2: "CODE_NO_PERMISSION",
		3: "CODE_NO_PLAN",
		4: "CODE_NO_HOST",
	}
	RemoveSecretItemResponse_CODE_value = map[string]int32{
		"CODE_OK":                 0,
		"CODE_WRONG_ACCESS_TOKEN": 1,
		"CODE_NO_PERMISSION":      2,
		"CODE_NO_PLAN":            3,
		"CODE_NO_HOST":            4,
	}
)

Enum value maps for RemoveSecretItemResponse_CODE.

View Source
var DeploySecretApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitops_deploy_secret_api.DeploySecretApi",
	HandlerType: (*DeploySecretApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "setSecretItem",
			Handler:    _DeploySecretApi_SetSecretItem_Handler,
		},
		{
			MethodName: "listSecretItem",
			Handler:    _DeploySecretApi_ListSecretItem_Handler,
		},
		{
			MethodName: "removeSecretItem",
			Handler:    _DeploySecretApi_RemoveSecretItem_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/deploy_secret_api.proto",
}

DeploySecretApi_ServiceDesc is the grpc.ServiceDesc for DeploySecretApi 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_proto_deploy_secret_api_proto protoreflect.FileDescriptor

Functions

func RegisterDeploySecretApiServer

func RegisterDeploySecretApiServer(s grpc.ServiceRegistrar, srv DeploySecretApiServer)

Types

type DeploySecretApiClient

type DeploySecretApiClient interface {
	// 设置secret item
	SetSecretItem(ctx context.Context, in *SetSecretItemRequest, opts ...grpc.CallOption) (*SetSecretItemResponse, error)
	// 列出secret item
	ListSecretItem(ctx context.Context, in *ListSecretItemRequest, opts ...grpc.CallOption) (*ListSecretItemResponse, error)
	// 删除secret item
	RemoveSecretItem(ctx context.Context, in *RemoveSecretItemRequest, opts ...grpc.CallOption) (*RemoveSecretItemResponse, error)
}

DeploySecretApiClient is the client API for DeploySecretApi 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 NewDeploySecretApiClient

func NewDeploySecretApiClient(cc grpc.ClientConnInterface) DeploySecretApiClient

type DeploySecretApiServer

type DeploySecretApiServer interface {
	// 设置secret item
	SetSecretItem(context.Context, *SetSecretItemRequest) (*SetSecretItemResponse, error)
	// 列出secret item
	ListSecretItem(context.Context, *ListSecretItemRequest) (*ListSecretItemResponse, error)
	// 删除secret item
	RemoveSecretItem(context.Context, *RemoveSecretItemRequest) (*RemoveSecretItemResponse, error)
	// contains filtered or unexported methods
}

DeploySecretApiServer is the server API for DeploySecretApi service. All implementations must embed UnimplementedDeploySecretApiServer for forward compatibility

type ListSecretItemRequest

type ListSecretItemRequest struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
	DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"`
	HostId       string `protobuf:"bytes,3,opt,name=hostId,proto3" json:"hostId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretItemRequest) Descriptor deprecated

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

Deprecated: Use ListSecretItemRequest.ProtoReflect.Descriptor instead.

func (*ListSecretItemRequest) GetAccessToken

func (x *ListSecretItemRequest) GetAccessToken() string

func (*ListSecretItemRequest) GetDeployPlanId

func (x *ListSecretItemRequest) GetDeployPlanId() string

func (*ListSecretItemRequest) GetHostId

func (x *ListSecretItemRequest) GetHostId() string

func (*ListSecretItemRequest) ProtoMessage

func (*ListSecretItemRequest) ProtoMessage()

func (*ListSecretItemRequest) ProtoReflect

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

func (*ListSecretItemRequest) Reset

func (x *ListSecretItemRequest) Reset()

func (*ListSecretItemRequest) String

func (x *ListSecretItemRequest) String() string

type ListSecretItemResponse

type ListSecretItemResponse struct {
	Code     ListSecretItemResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_secret_api.ListSecretItemResponse_CODE" json:"code,omitempty"`
	ErrMsg   string                      `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	ItemList []*SecretItemInfo           `protobuf:"bytes,3,rep,name=itemList,proto3" json:"itemList,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretItemResponse) Descriptor deprecated

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

Deprecated: Use ListSecretItemResponse.ProtoReflect.Descriptor instead.

func (*ListSecretItemResponse) GetCode

func (*ListSecretItemResponse) GetErrMsg

func (x *ListSecretItemResponse) GetErrMsg() string

func (*ListSecretItemResponse) GetItemList

func (x *ListSecretItemResponse) GetItemList() []*SecretItemInfo

func (*ListSecretItemResponse) ProtoMessage

func (*ListSecretItemResponse) ProtoMessage()

func (*ListSecretItemResponse) ProtoReflect

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

func (*ListSecretItemResponse) Reset

func (x *ListSecretItemResponse) Reset()

func (*ListSecretItemResponse) String

func (x *ListSecretItemResponse) String() string

type ListSecretItemResponse_CODE

type ListSecretItemResponse_CODE int32
const (
	ListSecretItemResponse_CODE_OK                 ListSecretItemResponse_CODE = 0
	ListSecretItemResponse_CODE_WRONG_ACCESS_TOKEN ListSecretItemResponse_CODE = 1
	ListSecretItemResponse_CODE_NO_PERMISSION      ListSecretItemResponse_CODE = 2
	ListSecretItemResponse_CODE_NO_PLAN            ListSecretItemResponse_CODE = 3
	ListSecretItemResponse_CODE_NO_HOST            ListSecretItemResponse_CODE = 4
)

func (ListSecretItemResponse_CODE) Descriptor

func (ListSecretItemResponse_CODE) Enum

func (ListSecretItemResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use ListSecretItemResponse_CODE.Descriptor instead.

func (ListSecretItemResponse_CODE) Number

func (ListSecretItemResponse_CODE) String

func (ListSecretItemResponse_CODE) Type

type RemoveSecretItemRequest

type RemoveSecretItemRequest struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
	DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"`
	HostId       string `protobuf:"bytes,3,opt,name=hostId,proto3" json:"hostId,omitempty"`
	Key          string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveSecretItemRequest) Descriptor deprecated

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

Deprecated: Use RemoveSecretItemRequest.ProtoReflect.Descriptor instead.

func (*RemoveSecretItemRequest) GetAccessToken

func (x *RemoveSecretItemRequest) GetAccessToken() string

func (*RemoveSecretItemRequest) GetDeployPlanId

func (x *RemoveSecretItemRequest) GetDeployPlanId() string

func (*RemoveSecretItemRequest) GetHostId

func (x *RemoveSecretItemRequest) GetHostId() string

func (*RemoveSecretItemRequest) GetKey

func (x *RemoveSecretItemRequest) GetKey() string

func (*RemoveSecretItemRequest) ProtoMessage

func (*RemoveSecretItemRequest) ProtoMessage()

func (*RemoveSecretItemRequest) ProtoReflect

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

func (*RemoveSecretItemRequest) Reset

func (x *RemoveSecretItemRequest) Reset()

func (*RemoveSecretItemRequest) String

func (x *RemoveSecretItemRequest) String() string

type RemoveSecretItemResponse

type RemoveSecretItemResponse struct {
	Code   RemoveSecretItemResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_secret_api.RemoveSecretItemResponse_CODE" json:"code,omitempty"`
	ErrMsg string                        `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveSecretItemResponse) Descriptor deprecated

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

Deprecated: Use RemoveSecretItemResponse.ProtoReflect.Descriptor instead.

func (*RemoveSecretItemResponse) GetCode

func (*RemoveSecretItemResponse) GetErrMsg

func (x *RemoveSecretItemResponse) GetErrMsg() string

func (*RemoveSecretItemResponse) ProtoMessage

func (*RemoveSecretItemResponse) ProtoMessage()

func (*RemoveSecretItemResponse) ProtoReflect

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

func (*RemoveSecretItemResponse) Reset

func (x *RemoveSecretItemResponse) Reset()

func (*RemoveSecretItemResponse) String

func (x *RemoveSecretItemResponse) String() string

type RemoveSecretItemResponse_CODE

type RemoveSecretItemResponse_CODE int32
const (
	RemoveSecretItemResponse_CODE_OK                 RemoveSecretItemResponse_CODE = 0
	RemoveSecretItemResponse_CODE_WRONG_ACCESS_TOKEN RemoveSecretItemResponse_CODE = 1
	RemoveSecretItemResponse_CODE_NO_PERMISSION      RemoveSecretItemResponse_CODE = 2
	RemoveSecretItemResponse_CODE_NO_PLAN            RemoveSecretItemResponse_CODE = 3
	RemoveSecretItemResponse_CODE_NO_HOST            RemoveSecretItemResponse_CODE = 4
)

func (RemoveSecretItemResponse_CODE) Descriptor

func (RemoveSecretItemResponse_CODE) Enum

func (RemoveSecretItemResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use RemoveSecretItemResponse_CODE.Descriptor instead.

func (RemoveSecretItemResponse_CODE) Number

func (RemoveSecretItemResponse_CODE) String

func (RemoveSecretItemResponse_CODE) Type

type SecretItemInfo

type SecretItemInfo struct {
	Key     string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value   string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Inherit bool   `protobuf:"varint,3,opt,name=inherit,proto3" json:"inherit,omitempty"` //继承的配置项
	// contains filtered or unexported fields
}

func (*SecretItemInfo) Descriptor deprecated

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

Deprecated: Use SecretItemInfo.ProtoReflect.Descriptor instead.

func (*SecretItemInfo) GetInherit

func (x *SecretItemInfo) GetInherit() bool

func (*SecretItemInfo) GetKey

func (x *SecretItemInfo) GetKey() string

func (*SecretItemInfo) GetValue

func (x *SecretItemInfo) GetValue() string

func (*SecretItemInfo) ProtoMessage

func (*SecretItemInfo) ProtoMessage()

func (*SecretItemInfo) ProtoReflect

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

func (*SecretItemInfo) Reset

func (x *SecretItemInfo) Reset()

func (*SecretItemInfo) String

func (x *SecretItemInfo) String() string

type SetSecretItemRequest

type SetSecretItemRequest struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
	DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"`
	HostId       string `protobuf:"bytes,3,opt,name=hostId,proto3" json:"hostId,omitempty"`
	Key          string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	Value        string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSecretItemRequest) Descriptor deprecated

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

Deprecated: Use SetSecretItemRequest.ProtoReflect.Descriptor instead.

func (*SetSecretItemRequest) GetAccessToken

func (x *SetSecretItemRequest) GetAccessToken() string

func (*SetSecretItemRequest) GetDeployPlanId

func (x *SetSecretItemRequest) GetDeployPlanId() string

func (*SetSecretItemRequest) GetHostId

func (x *SetSecretItemRequest) GetHostId() string

func (*SetSecretItemRequest) GetKey

func (x *SetSecretItemRequest) GetKey() string

func (*SetSecretItemRequest) GetValue

func (x *SetSecretItemRequest) GetValue() string

func (*SetSecretItemRequest) ProtoMessage

func (*SetSecretItemRequest) ProtoMessage()

func (*SetSecretItemRequest) ProtoReflect

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

func (*SetSecretItemRequest) Reset

func (x *SetSecretItemRequest) Reset()

func (*SetSecretItemRequest) String

func (x *SetSecretItemRequest) String() string

type SetSecretItemResponse

type SetSecretItemResponse struct {
	Code   SetSecretItemResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_secret_api.SetSecretItemResponse_CODE" json:"code,omitempty"`
	ErrMsg string                     `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSecretItemResponse) Descriptor deprecated

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

Deprecated: Use SetSecretItemResponse.ProtoReflect.Descriptor instead.

func (*SetSecretItemResponse) GetCode

func (*SetSecretItemResponse) GetErrMsg

func (x *SetSecretItemResponse) GetErrMsg() string

func (*SetSecretItemResponse) ProtoMessage

func (*SetSecretItemResponse) ProtoMessage()

func (*SetSecretItemResponse) ProtoReflect

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

func (*SetSecretItemResponse) Reset

func (x *SetSecretItemResponse) Reset()

func (*SetSecretItemResponse) String

func (x *SetSecretItemResponse) String() string

type SetSecretItemResponse_CODE

type SetSecretItemResponse_CODE int32
const (
	SetSecretItemResponse_CODE_OK                 SetSecretItemResponse_CODE = 0
	SetSecretItemResponse_CODE_WRONG_ACCESS_TOKEN SetSecretItemResponse_CODE = 1
	SetSecretItemResponse_CODE_NO_PERMISSION      SetSecretItemResponse_CODE = 2
	SetSecretItemResponse_CODE_NO_PLAN            SetSecretItemResponse_CODE = 3
	SetSecretItemResponse_CODE_NO_HOST            SetSecretItemResponse_CODE = 4
)

func (SetSecretItemResponse_CODE) Descriptor

func (SetSecretItemResponse_CODE) Enum

func (SetSecretItemResponse_CODE) EnumDescriptor deprecated

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

Deprecated: Use SetSecretItemResponse_CODE.Descriptor instead.

func (SetSecretItemResponse_CODE) Number

func (SetSecretItemResponse_CODE) String

func (SetSecretItemResponse_CODE) Type

type UnimplementedDeploySecretApiServer

type UnimplementedDeploySecretApiServer struct {
}

UnimplementedDeploySecretApiServer must be embedded to have forward compatible implementations.

func (UnimplementedDeploySecretApiServer) ListSecretItem

func (UnimplementedDeploySecretApiServer) RemoveSecretItem

func (UnimplementedDeploySecretApiServer) SetSecretItem

type UnsafeDeploySecretApiServer

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

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

Jump to

Keyboard shortcuts

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