package auth
import "github.com/moby/buildkit/session/auth"
Index ¶
- Constants
- Variables
- func CredentialsFunc(sm *session.Manager, g session.Group) func(string) (session, username, secret string, err error)
- func GetTokenAuthority(ctx context.Context, host string, sm *session.Manager, g session.Group) (sessionID string, pubKey *[32]byte, err error)
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func VerifyTokenAuthority(ctx context.Context, host string, pubKey *[32]byte, sm *session.Manager, g session.Group) (sessionID string, ok bool, err error)
- type AuthClient
- type AuthServer
- type CredentialsRequest
- func (m *CredentialsRequest) CloneMessageVT() proto.Message
- func (m *CredentialsRequest) CloneVT() *CredentialsRequest
- func (*CredentialsRequest) Descriptor() ([]byte, []int)
- func (this *CredentialsRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *CredentialsRequest) EqualVT(that *CredentialsRequest) bool
- func (x *CredentialsRequest) GetHost() string
- func (m *CredentialsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CredentialsRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *CredentialsRequest) MarshalVT() (dAtA []byte, err error)
- func (*CredentialsRequest) ProtoMessage()
- func (x *CredentialsRequest) ProtoReflect() protoreflect.Message
- func (x *CredentialsRequest) Reset()
- func (m *CredentialsRequest) SizeVT() (n int)
- func (x *CredentialsRequest) String() string
- func (m *CredentialsRequest) UnmarshalVT(dAtA []byte) error
- type CredentialsResponse
- func (m *CredentialsResponse) CloneMessageVT() proto.Message
- func (m *CredentialsResponse) CloneVT() *CredentialsResponse
- func (*CredentialsResponse) Descriptor() ([]byte, []int)
- func (this *CredentialsResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *CredentialsResponse) EqualVT(that *CredentialsResponse) bool
- func (x *CredentialsResponse) GetSecret() string
- func (x *CredentialsResponse) GetUsername() string
- func (m *CredentialsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CredentialsResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *CredentialsResponse) MarshalVT() (dAtA []byte, err error)
- func (*CredentialsResponse) ProtoMessage()
- func (x *CredentialsResponse) ProtoReflect() protoreflect.Message
- func (x *CredentialsResponse) Reset()
- func (m *CredentialsResponse) SizeVT() (n int)
- func (x *CredentialsResponse) String() string
- func (m *CredentialsResponse) UnmarshalVT(dAtA []byte) error
- type FetchTokenRequest
- func (m *FetchTokenRequest) CloneMessageVT() proto.Message
- func (m *FetchTokenRequest) CloneVT() *FetchTokenRequest
- func (*FetchTokenRequest) Descriptor() ([]byte, []int)
- func (this *FetchTokenRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *FetchTokenRequest) EqualVT(that *FetchTokenRequest) bool
- func (x *FetchTokenRequest) GetClientID() string
- func (x *FetchTokenRequest) GetHost() string
- func (x *FetchTokenRequest) GetRealm() string
- func (x *FetchTokenRequest) GetScopes() []string
- func (x *FetchTokenRequest) GetService() string
- func (m *FetchTokenRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *FetchTokenRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *FetchTokenRequest) MarshalVT() (dAtA []byte, err error)
- func (*FetchTokenRequest) ProtoMessage()
- func (x *FetchTokenRequest) ProtoReflect() protoreflect.Message
- func (x *FetchTokenRequest) Reset()
- func (m *FetchTokenRequest) SizeVT() (n int)
- func (x *FetchTokenRequest) String() string
- func (m *FetchTokenRequest) UnmarshalVT(dAtA []byte) error
- type FetchTokenResponse
- func FetchToken(ctx context.Context, req *FetchTokenRequest, sm *session.Manager, g session.Group) (resp *FetchTokenResponse, err error)
- func (m *FetchTokenResponse) CloneMessageVT() proto.Message
- func (m *FetchTokenResponse) CloneVT() *FetchTokenResponse
- func (*FetchTokenResponse) Descriptor() ([]byte, []int)
- func (this *FetchTokenResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *FetchTokenResponse) EqualVT(that *FetchTokenResponse) bool
- func (x *FetchTokenResponse) GetExpiresIn() int64
- func (x *FetchTokenResponse) GetIssuedAt() int64
- func (x *FetchTokenResponse) GetToken() string
- func (m *FetchTokenResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *FetchTokenResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *FetchTokenResponse) MarshalVT() (dAtA []byte, err error)
- func (*FetchTokenResponse) ProtoMessage()
- func (x *FetchTokenResponse) ProtoReflect() protoreflect.Message
- func (x *FetchTokenResponse) Reset()
- func (m *FetchTokenResponse) SizeVT() (n int)
- func (x *FetchTokenResponse) String() string
- func (m *FetchTokenResponse) UnmarshalVT(dAtA []byte) error
- type GetTokenAuthorityRequest
- func (m *GetTokenAuthorityRequest) CloneMessageVT() proto.Message
- func (m *GetTokenAuthorityRequest) CloneVT() *GetTokenAuthorityRequest
- func (*GetTokenAuthorityRequest) Descriptor() ([]byte, []int)
- func (this *GetTokenAuthorityRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetTokenAuthorityRequest) EqualVT(that *GetTokenAuthorityRequest) bool
- func (x *GetTokenAuthorityRequest) GetHost() string
- func (x *GetTokenAuthorityRequest) GetSalt() []byte
- func (m *GetTokenAuthorityRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetTokenAuthorityRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetTokenAuthorityRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetTokenAuthorityRequest) ProtoMessage()
- func (x *GetTokenAuthorityRequest) ProtoReflect() protoreflect.Message
- func (x *GetTokenAuthorityRequest) Reset()
- func (m *GetTokenAuthorityRequest) SizeVT() (n int)
- func (x *GetTokenAuthorityRequest) String() string
- func (m *GetTokenAuthorityRequest) UnmarshalVT(dAtA []byte) error
- type GetTokenAuthorityResponse
- func (m *GetTokenAuthorityResponse) CloneMessageVT() proto.Message
- func (m *GetTokenAuthorityResponse) CloneVT() *GetTokenAuthorityResponse
- func (*GetTokenAuthorityResponse) Descriptor() ([]byte, []int)
- func (this *GetTokenAuthorityResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetTokenAuthorityResponse) EqualVT(that *GetTokenAuthorityResponse) bool
- func (x *GetTokenAuthorityResponse) GetPublicKey() []byte
- func (m *GetTokenAuthorityResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetTokenAuthorityResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetTokenAuthorityResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetTokenAuthorityResponse) ProtoMessage()
- func (x *GetTokenAuthorityResponse) ProtoReflect() protoreflect.Message
- func (x *GetTokenAuthorityResponse) Reset()
- func (m *GetTokenAuthorityResponse) SizeVT() (n int)
- func (x *GetTokenAuthorityResponse) String() string
- func (m *GetTokenAuthorityResponse) UnmarshalVT(dAtA []byte) error
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) Credentials(context.Context, *CredentialsRequest) (*CredentialsResponse, error)
- func (UnimplementedAuthServer) FetchToken(context.Context, *FetchTokenRequest) (*FetchTokenResponse, error)
- func (UnimplementedAuthServer) GetTokenAuthority(context.Context, *GetTokenAuthorityRequest) (*GetTokenAuthorityResponse, error)
- func (UnimplementedAuthServer) VerifyTokenAuthority(context.Context, *VerifyTokenAuthorityRequest) (*VerifyTokenAuthorityResponse, error)
- type UnsafeAuthServer
- type VerifyTokenAuthorityRequest
- func (m *VerifyTokenAuthorityRequest) CloneMessageVT() proto.Message
- func (m *VerifyTokenAuthorityRequest) CloneVT() *VerifyTokenAuthorityRequest
- func (*VerifyTokenAuthorityRequest) Descriptor() ([]byte, []int)
- func (this *VerifyTokenAuthorityRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *VerifyTokenAuthorityRequest) EqualVT(that *VerifyTokenAuthorityRequest) bool
- func (x *VerifyTokenAuthorityRequest) GetHost() string
- func (x *VerifyTokenAuthorityRequest) GetPayload() []byte
- func (x *VerifyTokenAuthorityRequest) GetSalt() []byte
- func (m *VerifyTokenAuthorityRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *VerifyTokenAuthorityRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *VerifyTokenAuthorityRequest) MarshalVT() (dAtA []byte, err error)
- func (*VerifyTokenAuthorityRequest) ProtoMessage()
- func (x *VerifyTokenAuthorityRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenAuthorityRequest) Reset()
- func (m *VerifyTokenAuthorityRequest) SizeVT() (n int)
- func (x *VerifyTokenAuthorityRequest) String() string
- func (m *VerifyTokenAuthorityRequest) UnmarshalVT(dAtA []byte) error
- type VerifyTokenAuthorityResponse
- func (m *VerifyTokenAuthorityResponse) CloneMessageVT() proto.Message
- func (m *VerifyTokenAuthorityResponse) CloneVT() *VerifyTokenAuthorityResponse
- func (*VerifyTokenAuthorityResponse) Descriptor() ([]byte, []int)
- func (this *VerifyTokenAuthorityResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *VerifyTokenAuthorityResponse) EqualVT(that *VerifyTokenAuthorityResponse) bool
- func (x *VerifyTokenAuthorityResponse) GetSigned() []byte
- func (m *VerifyTokenAuthorityResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *VerifyTokenAuthorityResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *VerifyTokenAuthorityResponse) MarshalVT() (dAtA []byte, err error)
- func (*VerifyTokenAuthorityResponse) ProtoMessage()
- func (x *VerifyTokenAuthorityResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenAuthorityResponse) Reset()
- func (m *VerifyTokenAuthorityResponse) SizeVT() (n int)
- func (x *VerifyTokenAuthorityResponse) String() string
- func (m *VerifyTokenAuthorityResponse) UnmarshalVT(dAtA []byte) error
Constants ¶
const ( Auth_Credentials_FullMethodName = "/moby.filesync.v1.Auth/Credentials" Auth_FetchToken_FullMethodName = "/moby.filesync.v1.Auth/FetchToken" Auth_GetTokenAuthority_FullMethodName = "/moby.filesync.v1.Auth/GetTokenAuthority" Auth_VerifyTokenAuthority_FullMethodName = "/moby.filesync.v1.Auth/VerifyTokenAuthority" )
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "moby.filesync.v1.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Credentials", Handler: _Auth_Credentials_Handler, }, { MethodName: "FetchToken", Handler: _Auth_FetchToken_Handler, }, { MethodName: "GetTokenAuthority", Handler: _Auth_GetTokenAuthority_Handler, }, { MethodName: "VerifyTokenAuthority", Handler: _Auth_VerifyTokenAuthority_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/moby/buildkit/session/auth/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_moby_buildkit_session_auth_auth_proto protoreflect.FileDescriptor
Functions ¶
func CredentialsFunc ¶
func CredentialsFunc(sm *session.Manager, g session.Group) func(string) (session, username, secret string, err error)
func GetTokenAuthority ¶
func GetTokenAuthority(ctx context.Context, host string, sm *session.Manager, g session.Group) (sessionID string, pubKey *[32]byte, err error)
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func VerifyTokenAuthority ¶
func VerifyTokenAuthority(ctx context.Context, host string, pubKey *[32]byte, sm *session.Manager, g session.Group) (sessionID string, ok bool, err error)
Types ¶
type AuthClient ¶
type AuthClient interface { Credentials(ctx context.Context, in *CredentialsRequest, opts ...grpc.CallOption) (*CredentialsResponse, error) FetchToken(ctx context.Context, in *FetchTokenRequest, opts ...grpc.CallOption) (*FetchTokenResponse, error) GetTokenAuthority(ctx context.Context, in *GetTokenAuthorityRequest, opts ...grpc.CallOption) (*GetTokenAuthorityResponse, error) VerifyTokenAuthority(ctx context.Context, in *VerifyTokenAuthorityRequest, opts ...grpc.CallOption) (*VerifyTokenAuthorityResponse, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { Credentials(context.Context, *CredentialsRequest) (*CredentialsResponse, error) FetchToken(context.Context, *FetchTokenRequest) (*FetchTokenResponse, error) GetTokenAuthority(context.Context, *GetTokenAuthorityRequest) (*GetTokenAuthorityResponse, error) VerifyTokenAuthority(context.Context, *VerifyTokenAuthorityRequest) (*VerifyTokenAuthorityResponse, error) }
AuthServer is the server API for Auth service. All implementations should embed UnimplementedAuthServer for forward compatibility.
type CredentialsRequest ¶
type CredentialsRequest struct { Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"` // contains filtered or unexported fields }
func (*CredentialsRequest) CloneMessageVT ¶
func (m *CredentialsRequest) CloneMessageVT() proto.Message
func (*CredentialsRequest) CloneVT ¶
func (m *CredentialsRequest) CloneVT() *CredentialsRequest
func (*CredentialsRequest) Descriptor ¶
func (*CredentialsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CredentialsRequest.ProtoReflect.Descriptor instead.
func (*CredentialsRequest) EqualMessageVT ¶
func (this *CredentialsRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*CredentialsRequest) EqualVT ¶
func (this *CredentialsRequest) EqualVT(that *CredentialsRequest) bool
func (*CredentialsRequest) GetHost ¶
func (x *CredentialsRequest) GetHost() string
func (*CredentialsRequest) MarshalToSizedBufferVT ¶
func (m *CredentialsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CredentialsRequest) MarshalToVT ¶
func (m *CredentialsRequest) MarshalToVT(dAtA []byte) (int, error)
func (*CredentialsRequest) MarshalVT ¶
func (m *CredentialsRequest) MarshalVT() (dAtA []byte, err error)
func (*CredentialsRequest) ProtoMessage ¶
func (*CredentialsRequest) ProtoMessage()
func (*CredentialsRequest) ProtoReflect ¶
func (x *CredentialsRequest) ProtoReflect() protoreflect.Message
func (*CredentialsRequest) Reset ¶
func (x *CredentialsRequest) Reset()
func (*CredentialsRequest) SizeVT ¶
func (m *CredentialsRequest) SizeVT() (n int)
func (*CredentialsRequest) String ¶
func (x *CredentialsRequest) String() string
func (*CredentialsRequest) UnmarshalVT ¶
func (m *CredentialsRequest) UnmarshalVT(dAtA []byte) error
type CredentialsResponse ¶
type CredentialsResponse struct { Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"` Secret string `protobuf:"bytes,2,opt,name=Secret,proto3" json:"Secret,omitempty"` // contains filtered or unexported fields }
func (*CredentialsResponse) CloneMessageVT ¶
func (m *CredentialsResponse) CloneMessageVT() proto.Message
func (*CredentialsResponse) CloneVT ¶
func (m *CredentialsResponse) CloneVT() *CredentialsResponse
func (*CredentialsResponse) Descriptor ¶
func (*CredentialsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CredentialsResponse.ProtoReflect.Descriptor instead.
func (*CredentialsResponse) EqualMessageVT ¶
func (this *CredentialsResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*CredentialsResponse) EqualVT ¶
func (this *CredentialsResponse) EqualVT(that *CredentialsResponse) bool
func (*CredentialsResponse) GetSecret ¶
func (x *CredentialsResponse) GetSecret() string
func (*CredentialsResponse) GetUsername ¶
func (x *CredentialsResponse) GetUsername() string
func (*CredentialsResponse) MarshalToSizedBufferVT ¶
func (m *CredentialsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CredentialsResponse) MarshalToVT ¶
func (m *CredentialsResponse) MarshalToVT(dAtA []byte) (int, error)
func (*CredentialsResponse) MarshalVT ¶
func (m *CredentialsResponse) MarshalVT() (dAtA []byte, err error)
func (*CredentialsResponse) ProtoMessage ¶
func (*CredentialsResponse) ProtoMessage()
func (*CredentialsResponse) ProtoReflect ¶
func (x *CredentialsResponse) ProtoReflect() protoreflect.Message
func (*CredentialsResponse) Reset ¶
func (x *CredentialsResponse) Reset()
func (*CredentialsResponse) SizeVT ¶
func (m *CredentialsResponse) SizeVT() (n int)
func (*CredentialsResponse) String ¶
func (x *CredentialsResponse) String() string
func (*CredentialsResponse) UnmarshalVT ¶
func (m *CredentialsResponse) UnmarshalVT(dAtA []byte) error
type FetchTokenRequest ¶
type FetchTokenRequest struct { ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` Host string `protobuf:"bytes,2,opt,name=Host,proto3" json:"Host,omitempty"` Realm string `protobuf:"bytes,3,opt,name=Realm,proto3" json:"Realm,omitempty"` Service string `protobuf:"bytes,4,opt,name=Service,proto3" json:"Service,omitempty"` Scopes []string `protobuf:"bytes,5,rep,name=Scopes,proto3" json:"Scopes,omitempty"` // contains filtered or unexported fields }
func (*FetchTokenRequest) CloneMessageVT ¶
func (m *FetchTokenRequest) CloneMessageVT() proto.Message
func (*FetchTokenRequest) CloneVT ¶
func (m *FetchTokenRequest) CloneVT() *FetchTokenRequest
func (*FetchTokenRequest) Descriptor ¶
func (*FetchTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchTokenRequest.ProtoReflect.Descriptor instead.
func (*FetchTokenRequest) EqualMessageVT ¶
func (this *FetchTokenRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*FetchTokenRequest) EqualVT ¶
func (this *FetchTokenRequest) EqualVT(that *FetchTokenRequest) bool
func (*FetchTokenRequest) GetClientID ¶
func (x *FetchTokenRequest) GetClientID() string
func (*FetchTokenRequest) GetHost ¶
func (x *FetchTokenRequest) GetHost() string
func (*FetchTokenRequest) GetRealm ¶
func (x *FetchTokenRequest) GetRealm() string
func (*FetchTokenRequest) GetScopes ¶
func (x *FetchTokenRequest) GetScopes() []string
func (*FetchTokenRequest) GetService ¶
func (x *FetchTokenRequest) GetService() string
func (*FetchTokenRequest) MarshalToSizedBufferVT ¶
func (m *FetchTokenRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*FetchTokenRequest) MarshalToVT ¶
func (m *FetchTokenRequest) MarshalToVT(dAtA []byte) (int, error)
func (*FetchTokenRequest) MarshalVT ¶
func (m *FetchTokenRequest) MarshalVT() (dAtA []byte, err error)
func (*FetchTokenRequest) ProtoMessage ¶
func (*FetchTokenRequest) ProtoMessage()
func (*FetchTokenRequest) ProtoReflect ¶
func (x *FetchTokenRequest) ProtoReflect() protoreflect.Message
func (*FetchTokenRequest) Reset ¶
func (x *FetchTokenRequest) Reset()
func (*FetchTokenRequest) SizeVT ¶
func (m *FetchTokenRequest) SizeVT() (n int)
func (*FetchTokenRequest) String ¶
func (x *FetchTokenRequest) String() string
func (*FetchTokenRequest) UnmarshalVT ¶
func (m *FetchTokenRequest) UnmarshalVT(dAtA []byte) error
type FetchTokenResponse ¶
type FetchTokenResponse struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=ExpiresIn,proto3" json:"ExpiresIn,omitempty"` // seconds IssuedAt int64 `protobuf:"varint,3,opt,name=IssuedAt,proto3" json:"IssuedAt,omitempty"` // timestamp // contains filtered or unexported fields }
func FetchToken ¶
func FetchToken(ctx context.Context, req *FetchTokenRequest, sm *session.Manager, g session.Group) (resp *FetchTokenResponse, err error)
func (*FetchTokenResponse) CloneMessageVT ¶
func (m *FetchTokenResponse) CloneMessageVT() proto.Message
func (*FetchTokenResponse) CloneVT ¶
func (m *FetchTokenResponse) CloneVT() *FetchTokenResponse
func (*FetchTokenResponse) Descriptor ¶
func (*FetchTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchTokenResponse.ProtoReflect.Descriptor instead.
func (*FetchTokenResponse) EqualMessageVT ¶
func (this *FetchTokenResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*FetchTokenResponse) EqualVT ¶
func (this *FetchTokenResponse) EqualVT(that *FetchTokenResponse) bool
func (*FetchTokenResponse) GetExpiresIn ¶
func (x *FetchTokenResponse) GetExpiresIn() int64
func (*FetchTokenResponse) GetIssuedAt ¶
func (x *FetchTokenResponse) GetIssuedAt() int64
func (*FetchTokenResponse) GetToken ¶
func (x *FetchTokenResponse) GetToken() string
func (*FetchTokenResponse) MarshalToSizedBufferVT ¶
func (m *FetchTokenResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*FetchTokenResponse) MarshalToVT ¶
func (m *FetchTokenResponse) MarshalToVT(dAtA []byte) (int, error)
func (*FetchTokenResponse) MarshalVT ¶
func (m *FetchTokenResponse) MarshalVT() (dAtA []byte, err error)
func (*FetchTokenResponse) ProtoMessage ¶
func (*FetchTokenResponse) ProtoMessage()
func (*FetchTokenResponse) ProtoReflect ¶
func (x *FetchTokenResponse) ProtoReflect() protoreflect.Message
func (*FetchTokenResponse) Reset ¶
func (x *FetchTokenResponse) Reset()
func (*FetchTokenResponse) SizeVT ¶
func (m *FetchTokenResponse) SizeVT() (n int)
func (*FetchTokenResponse) String ¶
func (x *FetchTokenResponse) String() string
func (*FetchTokenResponse) UnmarshalVT ¶
func (m *FetchTokenResponse) UnmarshalVT(dAtA []byte) error
type GetTokenAuthorityRequest ¶
type GetTokenAuthorityRequest struct { Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"` Salt []byte `protobuf:"bytes,2,opt,name=Salt,proto3" json:"Salt,omitempty"` // contains filtered or unexported fields }
func (*GetTokenAuthorityRequest) CloneMessageVT ¶
func (m *GetTokenAuthorityRequest) CloneMessageVT() proto.Message
func (*GetTokenAuthorityRequest) CloneVT ¶
func (m *GetTokenAuthorityRequest) CloneVT() *GetTokenAuthorityRequest
func (*GetTokenAuthorityRequest) Descriptor ¶
func (*GetTokenAuthorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenAuthorityRequest.ProtoReflect.Descriptor instead.
func (*GetTokenAuthorityRequest) EqualMessageVT ¶
func (this *GetTokenAuthorityRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*GetTokenAuthorityRequest) EqualVT ¶
func (this *GetTokenAuthorityRequest) EqualVT(that *GetTokenAuthorityRequest) bool
func (*GetTokenAuthorityRequest) GetHost ¶
func (x *GetTokenAuthorityRequest) GetHost() string
func (*GetTokenAuthorityRequest) GetSalt ¶
func (x *GetTokenAuthorityRequest) GetSalt() []byte
func (*GetTokenAuthorityRequest) MarshalToSizedBufferVT ¶
func (m *GetTokenAuthorityRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetTokenAuthorityRequest) MarshalToVT ¶
func (m *GetTokenAuthorityRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetTokenAuthorityRequest) MarshalVT ¶
func (m *GetTokenAuthorityRequest) MarshalVT() (dAtA []byte, err error)
func (*GetTokenAuthorityRequest) ProtoMessage ¶
func (*GetTokenAuthorityRequest) ProtoMessage()
func (*GetTokenAuthorityRequest) ProtoReflect ¶
func (x *GetTokenAuthorityRequest) ProtoReflect() protoreflect.Message
func (*GetTokenAuthorityRequest) Reset ¶
func (x *GetTokenAuthorityRequest) Reset()
func (*GetTokenAuthorityRequest) SizeVT ¶
func (m *GetTokenAuthorityRequest) SizeVT() (n int)
func (*GetTokenAuthorityRequest) String ¶
func (x *GetTokenAuthorityRequest) String() string
func (*GetTokenAuthorityRequest) UnmarshalVT ¶
func (m *GetTokenAuthorityRequest) UnmarshalVT(dAtA []byte) error
type GetTokenAuthorityResponse ¶
type GetTokenAuthorityResponse struct { PublicKey []byte `protobuf:"bytes,1,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` // contains filtered or unexported fields }
func (*GetTokenAuthorityResponse) CloneMessageVT ¶
func (m *GetTokenAuthorityResponse) CloneMessageVT() proto.Message
func (*GetTokenAuthorityResponse) CloneVT ¶
func (m *GetTokenAuthorityResponse) CloneVT() *GetTokenAuthorityResponse
func (*GetTokenAuthorityResponse) Descriptor ¶
func (*GetTokenAuthorityResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenAuthorityResponse.ProtoReflect.Descriptor instead.
func (*GetTokenAuthorityResponse) EqualMessageVT ¶
func (this *GetTokenAuthorityResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*GetTokenAuthorityResponse) EqualVT ¶
func (this *GetTokenAuthorityResponse) EqualVT(that *GetTokenAuthorityResponse) bool
func (*GetTokenAuthorityResponse) GetPublicKey ¶
func (x *GetTokenAuthorityResponse) GetPublicKey() []byte
func (*GetTokenAuthorityResponse) MarshalToSizedBufferVT ¶
func (m *GetTokenAuthorityResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetTokenAuthorityResponse) MarshalToVT ¶
func (m *GetTokenAuthorityResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetTokenAuthorityResponse) MarshalVT ¶
func (m *GetTokenAuthorityResponse) MarshalVT() (dAtA []byte, err error)
func (*GetTokenAuthorityResponse) ProtoMessage ¶
func (*GetTokenAuthorityResponse) ProtoMessage()
func (*GetTokenAuthorityResponse) ProtoReflect ¶
func (x *GetTokenAuthorityResponse) ProtoReflect() protoreflect.Message
func (*GetTokenAuthorityResponse) Reset ¶
func (x *GetTokenAuthorityResponse) Reset()
func (*GetTokenAuthorityResponse) SizeVT ¶
func (m *GetTokenAuthorityResponse) SizeVT() (n int)
func (*GetTokenAuthorityResponse) String ¶
func (x *GetTokenAuthorityResponse) String() string
func (*GetTokenAuthorityResponse) UnmarshalVT ¶
func (m *GetTokenAuthorityResponse) UnmarshalVT(dAtA []byte) error
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct{}
UnimplementedAuthServer 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 (UnimplementedAuthServer) Credentials ¶
func (UnimplementedAuthServer) Credentials(context.Context, *CredentialsRequest) (*CredentialsResponse, error)
func (UnimplementedAuthServer) FetchToken ¶
func (UnimplementedAuthServer) FetchToken(context.Context, *FetchTokenRequest) (*FetchTokenResponse, error)
func (UnimplementedAuthServer) GetTokenAuthority ¶
func (UnimplementedAuthServer) GetTokenAuthority(context.Context, *GetTokenAuthorityRequest) (*GetTokenAuthorityResponse, error)
func (UnimplementedAuthServer) VerifyTokenAuthority ¶
func (UnimplementedAuthServer) VerifyTokenAuthority(context.Context, *VerifyTokenAuthorityRequest) (*VerifyTokenAuthorityResponse, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type VerifyTokenAuthorityRequest ¶
type VerifyTokenAuthorityRequest struct { Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=Payload,proto3" json:"Payload,omitempty"` Salt []byte `protobuf:"bytes,3,opt,name=Salt,proto3" json:"Salt,omitempty"` // contains filtered or unexported fields }
func (*VerifyTokenAuthorityRequest) CloneMessageVT ¶
func (m *VerifyTokenAuthorityRequest) CloneMessageVT() proto.Message
func (*VerifyTokenAuthorityRequest) CloneVT ¶
func (m *VerifyTokenAuthorityRequest) CloneVT() *VerifyTokenAuthorityRequest
func (*VerifyTokenAuthorityRequest) Descriptor ¶
func (*VerifyTokenAuthorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenAuthorityRequest.ProtoReflect.Descriptor instead.
func (*VerifyTokenAuthorityRequest) EqualMessageVT ¶
func (this *VerifyTokenAuthorityRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*VerifyTokenAuthorityRequest) EqualVT ¶
func (this *VerifyTokenAuthorityRequest) EqualVT(that *VerifyTokenAuthorityRequest) bool
func (*VerifyTokenAuthorityRequest) GetHost ¶
func (x *VerifyTokenAuthorityRequest) GetHost() string
func (*VerifyTokenAuthorityRequest) GetPayload ¶
func (x *VerifyTokenAuthorityRequest) GetPayload() []byte
func (*VerifyTokenAuthorityRequest) GetSalt ¶
func (x *VerifyTokenAuthorityRequest) GetSalt() []byte
func (*VerifyTokenAuthorityRequest) MarshalToSizedBufferVT ¶
func (m *VerifyTokenAuthorityRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*VerifyTokenAuthorityRequest) MarshalToVT ¶
func (m *VerifyTokenAuthorityRequest) MarshalToVT(dAtA []byte) (int, error)
func (*VerifyTokenAuthorityRequest) MarshalVT ¶
func (m *VerifyTokenAuthorityRequest) MarshalVT() (dAtA []byte, err error)
func (*VerifyTokenAuthorityRequest) ProtoMessage ¶
func (*VerifyTokenAuthorityRequest) ProtoMessage()
func (*VerifyTokenAuthorityRequest) ProtoReflect ¶
func (x *VerifyTokenAuthorityRequest) ProtoReflect() protoreflect.Message
func (*VerifyTokenAuthorityRequest) Reset ¶
func (x *VerifyTokenAuthorityRequest) Reset()
func (*VerifyTokenAuthorityRequest) SizeVT ¶
func (m *VerifyTokenAuthorityRequest) SizeVT() (n int)
func (*VerifyTokenAuthorityRequest) String ¶
func (x *VerifyTokenAuthorityRequest) String() string
func (*VerifyTokenAuthorityRequest) UnmarshalVT ¶
func (m *VerifyTokenAuthorityRequest) UnmarshalVT(dAtA []byte) error
type VerifyTokenAuthorityResponse ¶
type VerifyTokenAuthorityResponse struct { Signed []byte `protobuf:"bytes,1,opt,name=Signed,proto3" json:"Signed,omitempty"` // contains filtered or unexported fields }
func (*VerifyTokenAuthorityResponse) CloneMessageVT ¶
func (m *VerifyTokenAuthorityResponse) CloneMessageVT() proto.Message
func (*VerifyTokenAuthorityResponse) CloneVT ¶
func (m *VerifyTokenAuthorityResponse) CloneVT() *VerifyTokenAuthorityResponse
func (*VerifyTokenAuthorityResponse) Descriptor ¶
func (*VerifyTokenAuthorityResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenAuthorityResponse.ProtoReflect.Descriptor instead.
func (*VerifyTokenAuthorityResponse) EqualMessageVT ¶
func (this *VerifyTokenAuthorityResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*VerifyTokenAuthorityResponse) EqualVT ¶
func (this *VerifyTokenAuthorityResponse) EqualVT(that *VerifyTokenAuthorityResponse) bool
func (*VerifyTokenAuthorityResponse) GetSigned ¶
func (x *VerifyTokenAuthorityResponse) GetSigned() []byte
func (*VerifyTokenAuthorityResponse) MarshalToSizedBufferVT ¶
func (m *VerifyTokenAuthorityResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*VerifyTokenAuthorityResponse) MarshalToVT ¶
func (m *VerifyTokenAuthorityResponse) MarshalToVT(dAtA []byte) (int, error)
func (*VerifyTokenAuthorityResponse) MarshalVT ¶
func (m *VerifyTokenAuthorityResponse) MarshalVT() (dAtA []byte, err error)
func (*VerifyTokenAuthorityResponse) ProtoMessage ¶
func (*VerifyTokenAuthorityResponse) ProtoMessage()
func (*VerifyTokenAuthorityResponse) ProtoReflect ¶
func (x *VerifyTokenAuthorityResponse) ProtoReflect() protoreflect.Message
func (*VerifyTokenAuthorityResponse) Reset ¶
func (x *VerifyTokenAuthorityResponse) Reset()
func (*VerifyTokenAuthorityResponse) SizeVT ¶
func (m *VerifyTokenAuthorityResponse) SizeVT() (n int)
func (*VerifyTokenAuthorityResponse) String ¶
func (x *VerifyTokenAuthorityResponse) String() string
func (*VerifyTokenAuthorityResponse) UnmarshalVT ¶
func (m *VerifyTokenAuthorityResponse) UnmarshalVT(dAtA []byte) error
Source Files ¶
auth.go auth.pb.go auth_grpc.pb.go auth_vtproto.pb.go
Directories ¶
Path | Synopsis |
---|---|
session/auth/authprovider |
- Version
- v0.21.0 (latest)
- Published
- Apr 11, 2025
- Platform
- linux/amd64
- Imports
- 18 packages
- Last checked
- 2 days ago –
Tools for package owners.