Documentation
¶
Overview ¶
Package semaphore_secrets_v1beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterSecretsApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSecretsApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecretsApiClient) error
- func RegisterSecretsApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSecretsApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecretsApiServer) error
- func RegisterSecretsApiServer(s grpc.ServiceRegistrar, srv SecretsApiServer)
- type DeleteSecretRequest
- func (*DeleteSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSecretRequest) GetSecretIdOrName() string
- func (*DeleteSecretRequest) ProtoMessage()
- func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSecretRequest) Reset()
- func (x *DeleteSecretRequest) String() string
- type Empty
- type GetSecretRequest
- type ListSecretsRequest
- func (*ListSecretsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretsRequest) GetOrder() ListSecretsRequest_Order
- func (x *ListSecretsRequest) GetPageSize() int32
- func (x *ListSecretsRequest) GetPageToken() string
- func (*ListSecretsRequest) ProtoMessage()
- func (x *ListSecretsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSecretsRequest) Reset()
- func (x *ListSecretsRequest) String() string
- type ListSecretsRequest_Order
- func (ListSecretsRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListSecretsRequest_Order) Enum() *ListSecretsRequest_Order
- func (ListSecretsRequest_Order) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListSecretsRequest_Order) Number() protoreflect.EnumNumber
- func (x ListSecretsRequest_Order) String() string
- func (ListSecretsRequest_Order) Type() protoreflect.EnumType
- type ListSecretsResponse
- func (*ListSecretsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretsResponse) GetNextPageToken() string
- func (x *ListSecretsResponse) GetSecrets() []*Secret
- func (*ListSecretsResponse) ProtoMessage()
- func (x *ListSecretsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSecretsResponse) Reset()
- func (x *ListSecretsResponse) String() string
- type Secret
- func (*Secret) Descriptor() ([]byte, []int)deprecated
- func (x *Secret) GetData() *Secret_Data
- func (x *Secret) GetMetadata() *Secret_Metadata
- func (x *Secret) GetOrgConfig() *Secret_OrgConfig
- func (*Secret) ProtoMessage()
- func (x *Secret) ProtoReflect() protoreflect.Message
- func (x *Secret) Reset()
- func (x *Secret) String() string
- type Secret_Data
- func (*Secret_Data) Descriptor() ([]byte, []int)deprecated
- func (x *Secret_Data) GetEnvVars() []*Secret_EnvVar
- func (x *Secret_Data) GetFiles() []*Secret_File
- func (*Secret_Data) ProtoMessage()
- func (x *Secret_Data) ProtoReflect() protoreflect.Message
- func (x *Secret_Data) Reset()
- func (x *Secret_Data) String() string
- type Secret_EnvVar
- func (*Secret_EnvVar) Descriptor() ([]byte, []int)deprecated
- func (x *Secret_EnvVar) GetName() string
- func (x *Secret_EnvVar) GetValue() string
- func (*Secret_EnvVar) ProtoMessage()
- func (x *Secret_EnvVar) ProtoReflect() protoreflect.Message
- func (x *Secret_EnvVar) Reset()
- func (x *Secret_EnvVar) String() string
- type Secret_File
- func (*Secret_File) Descriptor() ([]byte, []int)deprecated
- func (x *Secret_File) GetContent() string
- func (x *Secret_File) GetPath() string
- func (*Secret_File) ProtoMessage()
- func (x *Secret_File) ProtoReflect() protoreflect.Message
- func (x *Secret_File) Reset()
- func (x *Secret_File) String() string
- type Secret_Metadata
- func (*Secret_Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Secret_Metadata) GetCheckoutAt() int64
- func (x *Secret_Metadata) GetContentIncluded() bool
- func (x *Secret_Metadata) GetCreateTime() int64
- func (x *Secret_Metadata) GetId() string
- func (x *Secret_Metadata) GetName() string
- func (x *Secret_Metadata) GetUpdateTime() int64
- func (*Secret_Metadata) ProtoMessage()
- func (x *Secret_Metadata) ProtoReflect() protoreflect.Message
- func (x *Secret_Metadata) Reset()
- func (x *Secret_Metadata) String() string
- type Secret_OrgConfig
- func (*Secret_OrgConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Secret_OrgConfig) GetAttachAccess() Secret_OrgConfig_JobAttachAccess
- func (x *Secret_OrgConfig) GetDebugAccess() Secret_OrgConfig_JobDebugAccess
- func (x *Secret_OrgConfig) GetProjectIds() []string
- func (x *Secret_OrgConfig) GetProjectsAccess() Secret_OrgConfig_ProjectsAccess
- func (*Secret_OrgConfig) ProtoMessage()
- func (x *Secret_OrgConfig) ProtoReflect() protoreflect.Message
- func (x *Secret_OrgConfig) Reset()
- func (x *Secret_OrgConfig) String() string
- type Secret_OrgConfig_JobAttachAccess
- func (Secret_OrgConfig_JobAttachAccess) Descriptor() protoreflect.EnumDescriptor
- func (x Secret_OrgConfig_JobAttachAccess) Enum() *Secret_OrgConfig_JobAttachAccess
- func (Secret_OrgConfig_JobAttachAccess) EnumDescriptor() ([]byte, []int)deprecated
- func (x Secret_OrgConfig_JobAttachAccess) Number() protoreflect.EnumNumber
- func (x Secret_OrgConfig_JobAttachAccess) String() string
- func (Secret_OrgConfig_JobAttachAccess) Type() protoreflect.EnumType
- type Secret_OrgConfig_JobDebugAccess
- func (Secret_OrgConfig_JobDebugAccess) Descriptor() protoreflect.EnumDescriptor
- func (x Secret_OrgConfig_JobDebugAccess) Enum() *Secret_OrgConfig_JobDebugAccess
- func (Secret_OrgConfig_JobDebugAccess) EnumDescriptor() ([]byte, []int)deprecated
- func (x Secret_OrgConfig_JobDebugAccess) Number() protoreflect.EnumNumber
- func (x Secret_OrgConfig_JobDebugAccess) String() string
- func (Secret_OrgConfig_JobDebugAccess) Type() protoreflect.EnumType
- type Secret_OrgConfig_ProjectsAccess
- func (Secret_OrgConfig_ProjectsAccess) Descriptor() protoreflect.EnumDescriptor
- func (x Secret_OrgConfig_ProjectsAccess) Enum() *Secret_OrgConfig_ProjectsAccess
- func (Secret_OrgConfig_ProjectsAccess) EnumDescriptor() ([]byte, []int)deprecated
- func (x Secret_OrgConfig_ProjectsAccess) Number() protoreflect.EnumNumber
- func (x Secret_OrgConfig_ProjectsAccess) String() string
- func (Secret_OrgConfig_ProjectsAccess) Type() protoreflect.EnumType
- type SecretsApiClient
- type SecretsApiServer
- type UnimplementedSecretsApiServer
- func (UnimplementedSecretsApiServer) CreateSecret(context.Context, *Secret) (*Secret, error)
- func (UnimplementedSecretsApiServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*Empty, error)
- func (UnimplementedSecretsApiServer) GetSecret(context.Context, *GetSecretRequest) (*Secret, error)
- func (UnimplementedSecretsApiServer) ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)
- func (UnimplementedSecretsApiServer) UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error)
- type UnsafeSecretsApiServer
- type UpdateSecretRequest
- func (*UpdateSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSecretRequest) GetSecret() *Secret
- func (x *UpdateSecretRequest) GetSecretIdOrName() string
- func (*UpdateSecretRequest) ProtoMessage()
- func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSecretRequest) Reset()
- func (x *UpdateSecretRequest) String() string
Constants ¶
const ( SecretsApi_ListSecrets_FullMethodName = "/semaphore.secrets.v1beta.SecretsApi/ListSecrets" SecretsApi_GetSecret_FullMethodName = "/semaphore.secrets.v1beta.SecretsApi/GetSecret" SecretsApi_CreateSecret_FullMethodName = "/semaphore.secrets.v1beta.SecretsApi/CreateSecret" SecretsApi_UpdateSecret_FullMethodName = "/semaphore.secrets.v1beta.SecretsApi/UpdateSecret" SecretsApi_DeleteSecret_FullMethodName = "/semaphore.secrets.v1beta.SecretsApi/DeleteSecret" )
Variables ¶
var ( Secret_OrgConfig_ProjectsAccess_name = map[int32]string{ 0: "ALL", 1: "ALLOWED", 2: "NONE", } Secret_OrgConfig_ProjectsAccess_value = map[string]int32{ "ALL": 0, "ALLOWED": 1, "NONE": 2, } )
Enum value maps for Secret_OrgConfig_ProjectsAccess.
var ( Secret_OrgConfig_JobAttachAccess_name = map[int32]string{ 0: "JOB_ATTACH_YES", 2: "JOB_ATTACH_NO", } Secret_OrgConfig_JobAttachAccess_value = map[string]int32{ "JOB_ATTACH_YES": 0, "JOB_ATTACH_NO": 2, } )
Enum value maps for Secret_OrgConfig_JobAttachAccess.
var ( Secret_OrgConfig_JobDebugAccess_name = map[int32]string{ 0: "JOB_DEBUG_YES", 2: "JOB_DEBUG_NO", } Secret_OrgConfig_JobDebugAccess_value = map[string]int32{ "JOB_DEBUG_YES": 0, "JOB_DEBUG_NO": 2, } )
Enum value maps for Secret_OrgConfig_JobDebugAccess.
var ( ListSecretsRequest_Order_name = map[int32]string{ 0: "BY_NAME_ASC", 1: "BY_CREATE_TIME_ASC", } ListSecretsRequest_Order_value = map[string]int32{ "BY_NAME_ASC": 0, "BY_CREATE_TIME_ASC": 1, } )
Enum value maps for ListSecretsRequest_Order.
var File_semaphore_secrets_v1beta_proto protoreflect.FileDescriptor
var SecretsApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "semaphore.secrets.v1beta.SecretsApi", HandlerType: (*SecretsApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSecrets", Handler: _SecretsApi_ListSecrets_Handler, }, { MethodName: "GetSecret", Handler: _SecretsApi_GetSecret_Handler, }, { MethodName: "CreateSecret", Handler: _SecretsApi_CreateSecret_Handler, }, { MethodName: "UpdateSecret", Handler: _SecretsApi_UpdateSecret_Handler, }, { MethodName: "DeleteSecret", Handler: _SecretsApi_DeleteSecret_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "semaphore/secrets.v1beta.proto", }
SecretsApi_ServiceDesc is the grpc.ServiceDesc for SecretsApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSecretsApiHandler ¶
func RegisterSecretsApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSecretsApiHandler registers the http handlers for service SecretsApi to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSecretsApiHandlerClient ¶
func RegisterSecretsApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecretsApiClient) error
RegisterSecretsApiHandlerClient registers the http handlers for service SecretsApi to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SecretsApiClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SecretsApiClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SecretsApiClient" to call the correct interceptors.
func RegisterSecretsApiHandlerFromEndpoint ¶
func RegisterSecretsApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSecretsApiHandlerFromEndpoint is same as RegisterSecretsApiHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSecretsApiHandlerServer ¶
func RegisterSecretsApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecretsApiServer) error
RegisterSecretsApiHandlerServer registers the http handlers for service SecretsApi to "mux". UnaryRPC :call SecretsApiServer 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 RegisterSecretsApiHandlerFromEndpoint instead.
func RegisterSecretsApiServer ¶
func RegisterSecretsApiServer(s grpc.ServiceRegistrar, srv SecretsApiServer)
Types ¶
type DeleteSecretRequest ¶
type DeleteSecretRequest struct { SecretIdOrName string `protobuf:"bytes,1,opt,name=secret_id_or_name,json=secretIdOrName,proto3" json:"secret_id_or_name,omitempty"` // contains filtered or unexported fields }
func (*DeleteSecretRequest) Descriptor
deprecated
func (*DeleteSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.
func (*DeleteSecretRequest) GetSecretIdOrName ¶
func (x *DeleteSecretRequest) GetSecretIdOrName() string
func (*DeleteSecretRequest) ProtoMessage ¶
func (*DeleteSecretRequest) ProtoMessage()
func (*DeleteSecretRequest) ProtoReflect ¶
func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message
func (*DeleteSecretRequest) Reset ¶
func (x *DeleteSecretRequest) Reset()
func (*DeleteSecretRequest) String ¶
func (x *DeleteSecretRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetSecretRequest ¶
type GetSecretRequest struct { SecretIdOrName string `protobuf:"bytes,1,opt,name=secret_id_or_name,json=secretIdOrName,proto3" json:"secret_id_or_name,omitempty"` // contains filtered or unexported fields }
func (*GetSecretRequest) Descriptor
deprecated
func (*GetSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.
func (*GetSecretRequest) GetSecretIdOrName ¶
func (x *GetSecretRequest) GetSecretIdOrName() string
func (*GetSecretRequest) ProtoMessage ¶
func (*GetSecretRequest) ProtoMessage()
func (*GetSecretRequest) ProtoReflect ¶
func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
func (*GetSecretRequest) Reset ¶
func (x *GetSecretRequest) Reset()
func (*GetSecretRequest) String ¶
func (x *GetSecretRequest) String() string
type ListSecretsRequest ¶
type ListSecretsRequest struct { PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Order ListSecretsRequest_Order `protobuf:"varint,3,opt,name=order,proto3,enum=semaphore.secrets.v1beta.ListSecretsRequest_Order" json:"order,omitempty"` // contains filtered or unexported fields }
func (*ListSecretsRequest) Descriptor
deprecated
func (*ListSecretsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretsRequest.ProtoReflect.Descriptor instead.
func (*ListSecretsRequest) GetOrder ¶
func (x *ListSecretsRequest) GetOrder() ListSecretsRequest_Order
func (*ListSecretsRequest) GetPageSize ¶
func (x *ListSecretsRequest) GetPageSize() int32
func (*ListSecretsRequest) GetPageToken ¶
func (x *ListSecretsRequest) GetPageToken() string
func (*ListSecretsRequest) ProtoMessage ¶
func (*ListSecretsRequest) ProtoMessage()
func (*ListSecretsRequest) ProtoReflect ¶
func (x *ListSecretsRequest) ProtoReflect() protoreflect.Message
func (*ListSecretsRequest) Reset ¶
func (x *ListSecretsRequest) Reset()
func (*ListSecretsRequest) String ¶
func (x *ListSecretsRequest) String() string
type ListSecretsRequest_Order ¶
type ListSecretsRequest_Order int32
const ( ListSecretsRequest_BY_NAME_ASC ListSecretsRequest_Order = 0 ListSecretsRequest_BY_CREATE_TIME_ASC ListSecretsRequest_Order = 1 )
func (ListSecretsRequest_Order) Descriptor ¶
func (ListSecretsRequest_Order) Descriptor() protoreflect.EnumDescriptor
func (ListSecretsRequest_Order) Enum ¶
func (x ListSecretsRequest_Order) Enum() *ListSecretsRequest_Order
func (ListSecretsRequest_Order) EnumDescriptor
deprecated
func (ListSecretsRequest_Order) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListSecretsRequest_Order.Descriptor instead.
func (ListSecretsRequest_Order) Number ¶
func (x ListSecretsRequest_Order) Number() protoreflect.EnumNumber
func (ListSecretsRequest_Order) String ¶
func (x ListSecretsRequest_Order) String() string
func (ListSecretsRequest_Order) Type ¶
func (ListSecretsRequest_Order) Type() protoreflect.EnumType
type ListSecretsResponse ¶
type ListSecretsResponse struct { Secrets []*Secret `protobuf:"bytes,1,rep,name=secrets,proto3" json:"secrets,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListSecretsResponse) Descriptor
deprecated
func (*ListSecretsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretsResponse.ProtoReflect.Descriptor instead.
func (*ListSecretsResponse) GetNextPageToken ¶
func (x *ListSecretsResponse) GetNextPageToken() string
func (*ListSecretsResponse) GetSecrets ¶
func (x *ListSecretsResponse) GetSecrets() []*Secret
func (*ListSecretsResponse) ProtoMessage ¶
func (*ListSecretsResponse) ProtoMessage()
func (*ListSecretsResponse) ProtoReflect ¶
func (x *ListSecretsResponse) ProtoReflect() protoreflect.Message
func (*ListSecretsResponse) Reset ¶
func (x *ListSecretsResponse) Reset()
func (*ListSecretsResponse) String ¶
func (x *ListSecretsResponse) String() string
type Secret ¶
type Secret struct { Metadata *Secret_Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Data *Secret_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` OrgConfig *Secret_OrgConfig `protobuf:"bytes,3,opt,name=org_config,json=orgConfig,proto3" json:"org_config,omitempty"` // contains filtered or unexported fields }
func (*Secret) Descriptor
deprecated
func (*Secret) GetData ¶
func (x *Secret) GetData() *Secret_Data
func (*Secret) GetMetadata ¶
func (x *Secret) GetMetadata() *Secret_Metadata
func (*Secret) GetOrgConfig ¶
func (x *Secret) GetOrgConfig() *Secret_OrgConfig
func (*Secret) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) ProtoReflect ¶
func (x *Secret) ProtoReflect() protoreflect.Message
type Secret_Data ¶
type Secret_Data struct { EnvVars []*Secret_EnvVar `protobuf:"bytes,1,rep,name=env_vars,json=envVars,proto3" json:"env_vars,omitempty"` Files []*Secret_File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*Secret_Data) Descriptor
deprecated
func (*Secret_Data) Descriptor() ([]byte, []int)
Deprecated: Use Secret_Data.ProtoReflect.Descriptor instead.
func (*Secret_Data) GetEnvVars ¶
func (x *Secret_Data) GetEnvVars() []*Secret_EnvVar
func (*Secret_Data) GetFiles ¶
func (x *Secret_Data) GetFiles() []*Secret_File
func (*Secret_Data) ProtoMessage ¶
func (*Secret_Data) ProtoMessage()
func (*Secret_Data) ProtoReflect ¶
func (x *Secret_Data) ProtoReflect() protoreflect.Message
func (*Secret_Data) Reset ¶
func (x *Secret_Data) Reset()
func (*Secret_Data) String ¶
func (x *Secret_Data) String() string
type Secret_EnvVar ¶
type Secret_EnvVar struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Secret_EnvVar) Descriptor
deprecated
func (*Secret_EnvVar) Descriptor() ([]byte, []int)
Deprecated: Use Secret_EnvVar.ProtoReflect.Descriptor instead.
func (*Secret_EnvVar) GetName ¶
func (x *Secret_EnvVar) GetName() string
func (*Secret_EnvVar) GetValue ¶
func (x *Secret_EnvVar) GetValue() string
func (*Secret_EnvVar) ProtoMessage ¶
func (*Secret_EnvVar) ProtoMessage()
func (*Secret_EnvVar) ProtoReflect ¶
func (x *Secret_EnvVar) ProtoReflect() protoreflect.Message
func (*Secret_EnvVar) Reset ¶
func (x *Secret_EnvVar) Reset()
func (*Secret_EnvVar) String ¶
func (x *Secret_EnvVar) String() string
type Secret_File ¶
type Secret_File struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Secret_File) Descriptor
deprecated
func (*Secret_File) Descriptor() ([]byte, []int)
Deprecated: Use Secret_File.ProtoReflect.Descriptor instead.
func (*Secret_File) GetContent ¶
func (x *Secret_File) GetContent() string
func (*Secret_File) GetPath ¶
func (x *Secret_File) GetPath() string
func (*Secret_File) ProtoMessage ¶
func (*Secret_File) ProtoMessage()
func (*Secret_File) ProtoReflect ¶
func (x *Secret_File) ProtoReflect() protoreflect.Message
func (*Secret_File) Reset ¶
func (x *Secret_File) Reset()
func (*Secret_File) String ¶
func (x *Secret_File) String() string
type Secret_Metadata ¶
type Secret_Metadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` CreateTime int64 `protobuf:"varint,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // unix timestamp of secret creation UpdateTime int64 `protobuf:"varint,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // unix timestamp of last update CheckoutAt int64 `protobuf:"varint,5,opt,name=checkout_at,json=checkoutAt,proto3" json:"checkout_at,omitempty"` // unix timestamp of last checkout (usage of secret) ContentIncluded bool `protobuf:"varint,6,opt,name=content_included,json=contentIncluded,proto3" json:"content_included,omitempty"` // if true, content is included in the response // contains filtered or unexported fields }
func (*Secret_Metadata) Descriptor
deprecated
func (*Secret_Metadata) Descriptor() ([]byte, []int)
Deprecated: Use Secret_Metadata.ProtoReflect.Descriptor instead.
func (*Secret_Metadata) GetCheckoutAt ¶
func (x *Secret_Metadata) GetCheckoutAt() int64
func (*Secret_Metadata) GetContentIncluded ¶
func (x *Secret_Metadata) GetContentIncluded() bool
func (*Secret_Metadata) GetCreateTime ¶
func (x *Secret_Metadata) GetCreateTime() int64
func (*Secret_Metadata) GetId ¶
func (x *Secret_Metadata) GetId() string
func (*Secret_Metadata) GetName ¶
func (x *Secret_Metadata) GetName() string
func (*Secret_Metadata) GetUpdateTime ¶
func (x *Secret_Metadata) GetUpdateTime() int64
func (*Secret_Metadata) ProtoMessage ¶
func (*Secret_Metadata) ProtoMessage()
func (*Secret_Metadata) ProtoReflect ¶
func (x *Secret_Metadata) ProtoReflect() protoreflect.Message
func (*Secret_Metadata) Reset ¶
func (x *Secret_Metadata) Reset()
func (*Secret_Metadata) String ¶
func (x *Secret_Metadata) String() string
type Secret_OrgConfig ¶
type Secret_OrgConfig struct { ProjectsAccess Secret_OrgConfig_ProjectsAccess `` /* 166-byte string literal not displayed */ ProjectIds []string `protobuf:"bytes,2,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` DebugAccess Secret_OrgConfig_JobDebugAccess `` /* 157-byte string literal not displayed */ AttachAccess Secret_OrgConfig_JobAttachAccess `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Secret_OrgConfig) Descriptor
deprecated
func (*Secret_OrgConfig) Descriptor() ([]byte, []int)
Deprecated: Use Secret_OrgConfig.ProtoReflect.Descriptor instead.
func (*Secret_OrgConfig) GetAttachAccess ¶
func (x *Secret_OrgConfig) GetAttachAccess() Secret_OrgConfig_JobAttachAccess
func (*Secret_OrgConfig) GetDebugAccess ¶
func (x *Secret_OrgConfig) GetDebugAccess() Secret_OrgConfig_JobDebugAccess
func (*Secret_OrgConfig) GetProjectIds ¶
func (x *Secret_OrgConfig) GetProjectIds() []string
func (*Secret_OrgConfig) GetProjectsAccess ¶
func (x *Secret_OrgConfig) GetProjectsAccess() Secret_OrgConfig_ProjectsAccess
func (*Secret_OrgConfig) ProtoMessage ¶
func (*Secret_OrgConfig) ProtoMessage()
func (*Secret_OrgConfig) ProtoReflect ¶
func (x *Secret_OrgConfig) ProtoReflect() protoreflect.Message
func (*Secret_OrgConfig) Reset ¶
func (x *Secret_OrgConfig) Reset()
func (*Secret_OrgConfig) String ¶
func (x *Secret_OrgConfig) String() string
type Secret_OrgConfig_JobAttachAccess ¶
type Secret_OrgConfig_JobAttachAccess int32
const ( Secret_OrgConfig_JOB_ATTACH_YES Secret_OrgConfig_JobAttachAccess = 0 Secret_OrgConfig_JOB_ATTACH_NO Secret_OrgConfig_JobAttachAccess = 2 )
func (Secret_OrgConfig_JobAttachAccess) Descriptor ¶
func (Secret_OrgConfig_JobAttachAccess) Descriptor() protoreflect.EnumDescriptor
func (Secret_OrgConfig_JobAttachAccess) Enum ¶
func (x Secret_OrgConfig_JobAttachAccess) Enum() *Secret_OrgConfig_JobAttachAccess
func (Secret_OrgConfig_JobAttachAccess) EnumDescriptor
deprecated
func (Secret_OrgConfig_JobAttachAccess) EnumDescriptor() ([]byte, []int)
Deprecated: Use Secret_OrgConfig_JobAttachAccess.Descriptor instead.
func (Secret_OrgConfig_JobAttachAccess) Number ¶
func (x Secret_OrgConfig_JobAttachAccess) Number() protoreflect.EnumNumber
func (Secret_OrgConfig_JobAttachAccess) String ¶
func (x Secret_OrgConfig_JobAttachAccess) String() string
func (Secret_OrgConfig_JobAttachAccess) Type ¶
func (Secret_OrgConfig_JobAttachAccess) Type() protoreflect.EnumType
type Secret_OrgConfig_JobDebugAccess ¶
type Secret_OrgConfig_JobDebugAccess int32
const ( Secret_OrgConfig_JOB_DEBUG_YES Secret_OrgConfig_JobDebugAccess = 0 Secret_OrgConfig_JOB_DEBUG_NO Secret_OrgConfig_JobDebugAccess = 2 )
func (Secret_OrgConfig_JobDebugAccess) Descriptor ¶
func (Secret_OrgConfig_JobDebugAccess) Descriptor() protoreflect.EnumDescriptor
func (Secret_OrgConfig_JobDebugAccess) Enum ¶
func (x Secret_OrgConfig_JobDebugAccess) Enum() *Secret_OrgConfig_JobDebugAccess
func (Secret_OrgConfig_JobDebugAccess) EnumDescriptor
deprecated
func (Secret_OrgConfig_JobDebugAccess) EnumDescriptor() ([]byte, []int)
Deprecated: Use Secret_OrgConfig_JobDebugAccess.Descriptor instead.
func (Secret_OrgConfig_JobDebugAccess) Number ¶
func (x Secret_OrgConfig_JobDebugAccess) Number() protoreflect.EnumNumber
func (Secret_OrgConfig_JobDebugAccess) String ¶
func (x Secret_OrgConfig_JobDebugAccess) String() string
func (Secret_OrgConfig_JobDebugAccess) Type ¶
func (Secret_OrgConfig_JobDebugAccess) Type() protoreflect.EnumType
type Secret_OrgConfig_ProjectsAccess ¶
type Secret_OrgConfig_ProjectsAccess int32
const ( Secret_OrgConfig_ALL Secret_OrgConfig_ProjectsAccess = 0 Secret_OrgConfig_ALLOWED Secret_OrgConfig_ProjectsAccess = 1 Secret_OrgConfig_NONE Secret_OrgConfig_ProjectsAccess = 2 )
func (Secret_OrgConfig_ProjectsAccess) Descriptor ¶
func (Secret_OrgConfig_ProjectsAccess) Descriptor() protoreflect.EnumDescriptor
func (Secret_OrgConfig_ProjectsAccess) Enum ¶
func (x Secret_OrgConfig_ProjectsAccess) Enum() *Secret_OrgConfig_ProjectsAccess
func (Secret_OrgConfig_ProjectsAccess) EnumDescriptor
deprecated
func (Secret_OrgConfig_ProjectsAccess) EnumDescriptor() ([]byte, []int)
Deprecated: Use Secret_OrgConfig_ProjectsAccess.Descriptor instead.
func (Secret_OrgConfig_ProjectsAccess) Number ¶
func (x Secret_OrgConfig_ProjectsAccess) Number() protoreflect.EnumNumber
func (Secret_OrgConfig_ProjectsAccess) String ¶
func (x Secret_OrgConfig_ProjectsAccess) String() string
func (Secret_OrgConfig_ProjectsAccess) Type ¶
func (Secret_OrgConfig_ProjectsAccess) Type() protoreflect.EnumType
type SecretsApiClient ¶
type SecretsApiClient interface { ListSecrets(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error) GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*Secret, error) CreateSecret(ctx context.Context, in *Secret, opts ...grpc.CallOption) (*Secret, error) UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*Secret, error) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*Empty, error) }
SecretsApiClient is the client API for SecretsApi 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 NewSecretsApiClient ¶
func NewSecretsApiClient(cc grpc.ClientConnInterface) SecretsApiClient
type SecretsApiServer ¶
type SecretsApiServer interface { ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error) GetSecret(context.Context, *GetSecretRequest) (*Secret, error) CreateSecret(context.Context, *Secret) (*Secret, error) UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error) DeleteSecret(context.Context, *DeleteSecretRequest) (*Empty, error) }
SecretsApiServer is the server API for SecretsApi service. All implementations should embed UnimplementedSecretsApiServer for forward compatibility
type UnimplementedSecretsApiServer ¶
type UnimplementedSecretsApiServer struct { }
UnimplementedSecretsApiServer should be embedded to have forward compatible implementations.
func (UnimplementedSecretsApiServer) CreateSecret ¶
func (UnimplementedSecretsApiServer) DeleteSecret ¶
func (UnimplementedSecretsApiServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*Empty, error)
func (UnimplementedSecretsApiServer) GetSecret ¶
func (UnimplementedSecretsApiServer) GetSecret(context.Context, *GetSecretRequest) (*Secret, error)
func (UnimplementedSecretsApiServer) ListSecrets ¶
func (UnimplementedSecretsApiServer) ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)
func (UnimplementedSecretsApiServer) UpdateSecret ¶
func (UnimplementedSecretsApiServer) UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error)
type UnsafeSecretsApiServer ¶
type UnsafeSecretsApiServer interface {
// contains filtered or unexported methods
}
UnsafeSecretsApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecretsApiServer will result in compilation errors.
type UpdateSecretRequest ¶
type UpdateSecretRequest struct { SecretIdOrName string `protobuf:"bytes,1,opt,name=secret_id_or_name,json=secretIdOrName,proto3" json:"secret_id_or_name,omitempty"` Secret *Secret `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
func (*UpdateSecretRequest) Descriptor
deprecated
func (*UpdateSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSecretRequest.ProtoReflect.Descriptor instead.
func (*UpdateSecretRequest) GetSecret ¶
func (x *UpdateSecretRequest) GetSecret() *Secret
func (*UpdateSecretRequest) GetSecretIdOrName ¶
func (x *UpdateSecretRequest) GetSecretIdOrName() string
func (*UpdateSecretRequest) ProtoMessage ¶
func (*UpdateSecretRequest) ProtoMessage()
func (*UpdateSecretRequest) ProtoReflect ¶
func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message
func (*UpdateSecretRequest) Reset ¶
func (x *UpdateSecretRequest) Reset()
func (*UpdateSecretRequest) String ¶
func (x *UpdateSecretRequest) String() string