Documentation ¶
Index ¶
- Constants
- Variables
- func GetSecret(ctx context.Context, c session.Caller, id string) ([]byte, error)
- func RegisterSecretsServer(s grpc.ServiceRegistrar, srv SecretsServer)
- type GetSecretRequest
- func (m *GetSecretRequest) CloneMessageVT() proto.Message
- func (m *GetSecretRequest) CloneVT() *GetSecretRequest
- func (*GetSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (this *GetSecretRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetSecretRequest) EqualVT(that *GetSecretRequest) bool
- func (x *GetSecretRequest) GetAnnotations() map[string]string
- func (x *GetSecretRequest) GetID() string
- func (m *GetSecretRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetSecretRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetSecretRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetSecretRequest) ProtoMessage()
- func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
- func (x *GetSecretRequest) Reset()
- func (m *GetSecretRequest) SizeVT() (n int)
- func (x *GetSecretRequest) String() string
- func (m *GetSecretRequest) UnmarshalVT(dAtA []byte) error
- type GetSecretResponse
- func (m *GetSecretResponse) CloneMessageVT() proto.Message
- func (m *GetSecretResponse) CloneVT() *GetSecretResponse
- func (*GetSecretResponse) Descriptor() ([]byte, []int)deprecated
- func (this *GetSecretResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetSecretResponse) EqualVT(that *GetSecretResponse) bool
- func (x *GetSecretResponse) GetData() []byte
- func (m *GetSecretResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetSecretResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetSecretResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetSecretResponse) ProtoMessage()
- func (x *GetSecretResponse) ProtoReflect() protoreflect.Message
- func (x *GetSecretResponse) Reset()
- func (m *GetSecretResponse) SizeVT() (n int)
- func (x *GetSecretResponse) String() string
- func (m *GetSecretResponse) UnmarshalVT(dAtA []byte) error
- type SecretStore
- type SecretsClient
- type SecretsServer
- type UnimplementedSecretsServer
- type UnsafeSecretsServer
Constants ¶
const (
Secrets_GetSecret_FullMethodName = "/moby.buildkit.secrets.v1.Secrets/GetSecret"
)
Variables ¶
var ErrNotFound = errors.Errorf("not found")
var File_github_com_moby_buildkit_session_secrets_secrets_proto protoreflect.FileDescriptor
var Secrets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "moby.buildkit.secrets.v1.Secrets", HandlerType: (*SecretsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSecret", Handler: _Secrets_GetSecret_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/moby/buildkit/session/secrets/secrets.proto", }
Secrets_ServiceDesc is the grpc.ServiceDesc for Secrets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSecretsServer ¶
func RegisterSecretsServer(s grpc.ServiceRegistrar, srv SecretsServer)
Types ¶
type GetSecretRequest ¶
type GetSecretRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Annotations map[string]string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetSecretRequest) CloneMessageVT ¶ added in v0.17.0
func (m *GetSecretRequest) CloneMessageVT() proto.Message
func (*GetSecretRequest) CloneVT ¶ added in v0.17.0
func (m *GetSecretRequest) CloneVT() *GetSecretRequest
func (*GetSecretRequest) Descriptor
deprecated
func (*GetSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.
func (*GetSecretRequest) EqualMessageVT ¶ added in v0.17.0
func (this *GetSecretRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*GetSecretRequest) EqualVT ¶ added in v0.17.0
func (this *GetSecretRequest) EqualVT(that *GetSecretRequest) bool
func (*GetSecretRequest) GetAnnotations ¶
func (x *GetSecretRequest) GetAnnotations() map[string]string
func (*GetSecretRequest) GetID ¶
func (x *GetSecretRequest) GetID() string
func (*GetSecretRequest) MarshalToSizedBufferVT ¶ added in v0.17.0
func (m *GetSecretRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetSecretRequest) MarshalToVT ¶ added in v0.17.0
func (m *GetSecretRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetSecretRequest) MarshalVT ¶ added in v0.17.0
func (m *GetSecretRequest) MarshalVT() (dAtA []byte, err error)
func (*GetSecretRequest) ProtoMessage ¶
func (*GetSecretRequest) ProtoMessage()
func (*GetSecretRequest) ProtoReflect ¶ added in v0.17.0
func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
func (*GetSecretRequest) Reset ¶
func (x *GetSecretRequest) Reset()
func (*GetSecretRequest) SizeVT ¶ added in v0.17.0
func (m *GetSecretRequest) SizeVT() (n int)
func (*GetSecretRequest) String ¶
func (x *GetSecretRequest) String() string
func (*GetSecretRequest) UnmarshalVT ¶ added in v0.17.0
func (m *GetSecretRequest) UnmarshalVT(dAtA []byte) error
type GetSecretResponse ¶
type GetSecretResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetSecretResponse) CloneMessageVT ¶ added in v0.17.0
func (m *GetSecretResponse) CloneMessageVT() proto.Message
func (*GetSecretResponse) CloneVT ¶ added in v0.17.0
func (m *GetSecretResponse) CloneVT() *GetSecretResponse
func (*GetSecretResponse) Descriptor
deprecated
func (*GetSecretResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretResponse.ProtoReflect.Descriptor instead.
func (*GetSecretResponse) EqualMessageVT ¶ added in v0.17.0
func (this *GetSecretResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*GetSecretResponse) EqualVT ¶ added in v0.17.0
func (this *GetSecretResponse) EqualVT(that *GetSecretResponse) bool
func (*GetSecretResponse) GetData ¶
func (x *GetSecretResponse) GetData() []byte
func (*GetSecretResponse) MarshalToSizedBufferVT ¶ added in v0.17.0
func (m *GetSecretResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetSecretResponse) MarshalToVT ¶ added in v0.17.0
func (m *GetSecretResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetSecretResponse) MarshalVT ¶ added in v0.17.0
func (m *GetSecretResponse) MarshalVT() (dAtA []byte, err error)
func (*GetSecretResponse) ProtoMessage ¶
func (*GetSecretResponse) ProtoMessage()
func (*GetSecretResponse) ProtoReflect ¶ added in v0.17.0
func (x *GetSecretResponse) ProtoReflect() protoreflect.Message
func (*GetSecretResponse) Reset ¶
func (x *GetSecretResponse) Reset()
func (*GetSecretResponse) SizeVT ¶ added in v0.17.0
func (m *GetSecretResponse) SizeVT() (n int)
func (*GetSecretResponse) String ¶
func (x *GetSecretResponse) String() string
func (*GetSecretResponse) UnmarshalVT ¶ added in v0.17.0
func (m *GetSecretResponse) UnmarshalVT(dAtA []byte) error
type SecretStore ¶
type SecretsClient ¶
type SecretsClient interface {
GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error)
}
SecretsClient is the client API for Secrets 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 NewSecretsClient ¶
func NewSecretsClient(cc grpc.ClientConnInterface) SecretsClient
type SecretsServer ¶
type SecretsServer interface {
GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error)
}
SecretsServer is the server API for Secrets service. All implementations should embed UnimplementedSecretsServer for forward compatibility.
type UnimplementedSecretsServer ¶ added in v0.7.0
type UnimplementedSecretsServer struct{}
UnimplementedSecretsServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSecretsServer) GetSecret ¶ added in v0.7.0
func (UnimplementedSecretsServer) GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error)
type UnsafeSecretsServer ¶ added in v0.17.0
type UnsafeSecretsServer interface {
// contains filtered or unexported methods
}
UnsafeSecretsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecretsServer will result in compilation errors.