package secrets
import "github.com/moby/buildkit/session/secrets"
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)
- 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)
- 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 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 GetSecret ¶
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 `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*GetSecretRequest) CloneMessageVT ¶
func (m *GetSecretRequest) CloneMessageVT() proto.Message
func (*GetSecretRequest) CloneVT ¶
func (m *GetSecretRequest) CloneVT() *GetSecretRequest
func (*GetSecretRequest) Descriptor ¶
func (*GetSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.
func (*GetSecretRequest) EqualMessageVT ¶
func (this *GetSecretRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*GetSecretRequest) EqualVT ¶
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 ¶
func (m *GetSecretRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetSecretRequest) MarshalToVT ¶
func (m *GetSecretRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetSecretRequest) MarshalVT ¶
func (m *GetSecretRequest) MarshalVT() (dAtA []byte, err error)
func (*GetSecretRequest) ProtoMessage ¶
func (*GetSecretRequest) ProtoMessage()
func (*GetSecretRequest) ProtoReflect ¶
func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
func (*GetSecretRequest) Reset ¶
func (x *GetSecretRequest) Reset()
func (*GetSecretRequest) SizeVT ¶
func (m *GetSecretRequest) SizeVT() (n int)
func (*GetSecretRequest) String ¶
func (x *GetSecretRequest) String() string
func (*GetSecretRequest) UnmarshalVT ¶
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 ¶
func (m *GetSecretResponse) CloneMessageVT() proto.Message
func (*GetSecretResponse) CloneVT ¶
func (m *GetSecretResponse) CloneVT() *GetSecretResponse
func (*GetSecretResponse) Descriptor ¶
func (*GetSecretResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretResponse.ProtoReflect.Descriptor instead.
func (*GetSecretResponse) EqualMessageVT ¶
func (this *GetSecretResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*GetSecretResponse) EqualVT ¶
func (this *GetSecretResponse) EqualVT(that *GetSecretResponse) bool
func (*GetSecretResponse) GetData ¶
func (x *GetSecretResponse) GetData() []byte
func (*GetSecretResponse) MarshalToSizedBufferVT ¶
func (m *GetSecretResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetSecretResponse) MarshalToVT ¶
func (m *GetSecretResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetSecretResponse) MarshalVT ¶
func (m *GetSecretResponse) MarshalVT() (dAtA []byte, err error)
func (*GetSecretResponse) ProtoMessage ¶
func (*GetSecretResponse) ProtoMessage()
func (*GetSecretResponse) ProtoReflect ¶
func (x *GetSecretResponse) ProtoReflect() protoreflect.Message
func (*GetSecretResponse) Reset ¶
func (x *GetSecretResponse) Reset()
func (*GetSecretResponse) SizeVT ¶
func (m *GetSecretResponse) SizeVT() (n int)
func (*GetSecretResponse) String ¶
func (x *GetSecretResponse) String() string
func (*GetSecretResponse) UnmarshalVT ¶
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 ¶
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 ¶
func (UnimplementedSecretsServer) GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error)
type UnsafeSecretsServer ¶
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.
Source Files ¶
secrets.go secrets.pb.go secrets_grpc.pb.go secrets_vtproto.pb.go
Directories ¶
Path | Synopsis |
---|---|
session/secrets/secretsprovider |
- Version
- v0.21.0
- Published
- Apr 11, 2025
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 5 hours ago –
Tools for package owners.