Documentation ¶
Overview ¶
Package auth is a generated protocol buffer package.
It is generated from these files:
client/auth/auth.proto
It has these top-level messages:
AuthenticateRequest AuthenticateResponse AuthorizeRequest AuthorizeResponse WhoAmIRequest WhoAmIResponse SetScopeRequest SetScopeResponse GetScopeRequest GetScopeResponse ACLEntry GetACLRequest GetACLResponse ACL User ActivateRequest ActivateResponse GetCapabilityRequest GetCapabilityResponse RevokeAuthTokenRequest RevokeAuthTokenResponse
Index ¶
- Constants
- Variables
- func In2Out(ctx context.Context) context.Context
- func IsNotActivatedError(e error) bool
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type ACL
- func (*ACL) Descriptor() ([]byte, []int)
- func (m *ACL) GetEntries() map[string]Scope
- func (m *ACL) Marshal() (dAtA []byte, err error)
- func (m *ACL) MarshalTo(dAtA []byte) (int, error)
- func (*ACL) ProtoMessage()
- func (m *ACL) Reset()
- func (m *ACL) Size() (n int)
- func (m *ACL) String() string
- func (m *ACL) Unmarshal(dAtA []byte) error
- type ACLEntry
- func (*ACLEntry) Descriptor() ([]byte, []int)
- func (m *ACLEntry) GetScope() Scope
- func (m *ACLEntry) GetUsername() string
- func (m *ACLEntry) Marshal() (dAtA []byte, err error)
- func (m *ACLEntry) MarshalTo(dAtA []byte) (int, error)
- func (*ACLEntry) ProtoMessage()
- func (m *ACLEntry) Reset()
- func (m *ACLEntry) Size() (n int)
- func (m *ACLEntry) String() string
- func (m *ACLEntry) Unmarshal(dAtA []byte) error
- type APIClient
- type APIServer
- type ActivateRequest
- func (*ActivateRequest) Descriptor() ([]byte, []int)
- func (m *ActivateRequest) GetActivationCode() string
- func (m *ActivateRequest) GetAdmins() []string
- func (m *ActivateRequest) Marshal() (dAtA []byte, err error)
- func (m *ActivateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ActivateRequest) ProtoMessage()
- func (m *ActivateRequest) Reset()
- func (m *ActivateRequest) Size() (n int)
- func (m *ActivateRequest) String() string
- func (m *ActivateRequest) Unmarshal(dAtA []byte) error
- type ActivateResponse
- func (*ActivateResponse) Descriptor() ([]byte, []int)
- func (m *ActivateResponse) Marshal() (dAtA []byte, err error)
- func (m *ActivateResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ActivateResponse) ProtoMessage()
- func (m *ActivateResponse) Reset()
- func (m *ActivateResponse) Size() (n int)
- func (m *ActivateResponse) String() string
- func (m *ActivateResponse) Unmarshal(dAtA []byte) error
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)
- func (m *AuthenticateRequest) GetGithubToken() string
- func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthenticateRequest) ProtoMessage()
- func (m *AuthenticateRequest) Reset()
- func (m *AuthenticateRequest) Size() (n int)
- func (m *AuthenticateRequest) String() string
- func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)
- func (m *AuthenticateResponse) GetPachToken() string
- func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthenticateResponse) ProtoMessage()
- func (m *AuthenticateResponse) Reset()
- func (m *AuthenticateResponse) Size() (n int)
- func (m *AuthenticateResponse) String() string
- func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error
- type AuthorizeRequest
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)
- func (m *AuthorizeRequest) GetRepo() *pfs.Repo
- func (m *AuthorizeRequest) GetScope() Scope
- func (m *AuthorizeRequest) Marshal() (dAtA []byte, err error)
- func (m *AuthorizeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AuthorizeRequest) ProtoMessage()
- func (m *AuthorizeRequest) Reset()
- func (m *AuthorizeRequest) Size() (n int)
- func (m *AuthorizeRequest) String() string
- func (m *AuthorizeRequest) Unmarshal(dAtA []byte) error
- type AuthorizeResponse
- func (*AuthorizeResponse) Descriptor() ([]byte, []int)
- func (m *AuthorizeResponse) GetAuthorized() bool
- func (m *AuthorizeResponse) Marshal() (dAtA []byte, err error)
- func (m *AuthorizeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*AuthorizeResponse) ProtoMessage()
- func (m *AuthorizeResponse) Reset()
- func (m *AuthorizeResponse) Size() (n int)
- func (m *AuthorizeResponse) String() string
- func (m *AuthorizeResponse) Unmarshal(dAtA []byte) error
- type GetACLRequest
- func (*GetACLRequest) Descriptor() ([]byte, []int)
- func (m *GetACLRequest) GetRepo() *pfs.Repo
- func (m *GetACLRequest) Marshal() (dAtA []byte, err error)
- func (m *GetACLRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetACLRequest) ProtoMessage()
- func (m *GetACLRequest) Reset()
- func (m *GetACLRequest) Size() (n int)
- func (m *GetACLRequest) String() string
- func (m *GetACLRequest) Unmarshal(dAtA []byte) error
- type GetACLResponse
- func (*GetACLResponse) Descriptor() ([]byte, []int)
- func (m *GetACLResponse) GetAcl() *ACL
- func (m *GetACLResponse) Marshal() (dAtA []byte, err error)
- func (m *GetACLResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetACLResponse) ProtoMessage()
- func (m *GetACLResponse) Reset()
- func (m *GetACLResponse) Size() (n int)
- func (m *GetACLResponse) String() string
- func (m *GetACLResponse) Unmarshal(dAtA []byte) error
- type GetCapabilityRequest
- func (*GetCapabilityRequest) Descriptor() ([]byte, []int)
- func (m *GetCapabilityRequest) Marshal() (dAtA []byte, err error)
- func (m *GetCapabilityRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetCapabilityRequest) ProtoMessage()
- func (m *GetCapabilityRequest) Reset()
- func (m *GetCapabilityRequest) Size() (n int)
- func (m *GetCapabilityRequest) String() string
- func (m *GetCapabilityRequest) Unmarshal(dAtA []byte) error
- type GetCapabilityResponse
- func (*GetCapabilityResponse) Descriptor() ([]byte, []int)
- func (m *GetCapabilityResponse) GetCapability() string
- func (m *GetCapabilityResponse) Marshal() (dAtA []byte, err error)
- func (m *GetCapabilityResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetCapabilityResponse) ProtoMessage()
- func (m *GetCapabilityResponse) Reset()
- func (m *GetCapabilityResponse) Size() (n int)
- func (m *GetCapabilityResponse) String() string
- func (m *GetCapabilityResponse) Unmarshal(dAtA []byte) error
- type GetScopeRequest
- func (*GetScopeRequest) Descriptor() ([]byte, []int)
- func (m *GetScopeRequest) GetRepo() *pfs.Repo
- func (m *GetScopeRequest) GetUsername() string
- func (m *GetScopeRequest) Marshal() (dAtA []byte, err error)
- func (m *GetScopeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetScopeRequest) ProtoMessage()
- func (m *GetScopeRequest) Reset()
- func (m *GetScopeRequest) Size() (n int)
- func (m *GetScopeRequest) String() string
- func (m *GetScopeRequest) Unmarshal(dAtA []byte) error
- type GetScopeResponse
- func (*GetScopeResponse) Descriptor() ([]byte, []int)
- func (m *GetScopeResponse) GetScope() Scope
- func (m *GetScopeResponse) Marshal() (dAtA []byte, err error)
- func (m *GetScopeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetScopeResponse) ProtoMessage()
- func (m *GetScopeResponse) Reset()
- func (m *GetScopeResponse) Size() (n int)
- func (m *GetScopeResponse) String() string
- func (m *GetScopeResponse) Unmarshal(dAtA []byte) error
- type NotActivatedError
- type RevokeAuthTokenRequest
- func (*RevokeAuthTokenRequest) Descriptor() ([]byte, []int)
- func (m *RevokeAuthTokenRequest) GetToken() string
- func (m *RevokeAuthTokenRequest) Marshal() (dAtA []byte, err error)
- func (m *RevokeAuthTokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RevokeAuthTokenRequest) ProtoMessage()
- func (m *RevokeAuthTokenRequest) Reset()
- func (m *RevokeAuthTokenRequest) Size() (n int)
- func (m *RevokeAuthTokenRequest) String() string
- func (m *RevokeAuthTokenRequest) Unmarshal(dAtA []byte) error
- type RevokeAuthTokenResponse
- func (*RevokeAuthTokenResponse) Descriptor() ([]byte, []int)
- func (m *RevokeAuthTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *RevokeAuthTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RevokeAuthTokenResponse) ProtoMessage()
- func (m *RevokeAuthTokenResponse) Reset()
- func (m *RevokeAuthTokenResponse) Size() (n int)
- func (m *RevokeAuthTokenResponse) String() string
- func (m *RevokeAuthTokenResponse) Unmarshal(dAtA []byte) error
- type Scope
- type SetScopeRequest
- func (*SetScopeRequest) Descriptor() ([]byte, []int)
- func (m *SetScopeRequest) GetRepo() *pfs.Repo
- func (m *SetScopeRequest) GetScope() Scope
- func (m *SetScopeRequest) GetUsername() string
- func (m *SetScopeRequest) Marshal() (dAtA []byte, err error)
- func (m *SetScopeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*SetScopeRequest) ProtoMessage()
- func (m *SetScopeRequest) Reset()
- func (m *SetScopeRequest) Size() (n int)
- func (m *SetScopeRequest) String() string
- func (m *SetScopeRequest) Unmarshal(dAtA []byte) error
- type SetScopeResponse
- func (*SetScopeResponse) Descriptor() ([]byte, []int)
- func (m *SetScopeResponse) Marshal() (dAtA []byte, err error)
- func (m *SetScopeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*SetScopeResponse) ProtoMessage()
- func (m *SetScopeResponse) Reset()
- func (m *SetScopeResponse) Size() (n int)
- func (m *SetScopeResponse) String() string
- func (m *SetScopeResponse) Unmarshal(dAtA []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAdmin() bool
- func (m *User) GetUsername() string
- func (m *User) Marshal() (dAtA []byte, err error)
- func (m *User) MarshalTo(dAtA []byte) (int, error)
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) Size() (n int)
- func (m *User) String() string
- func (m *User) Unmarshal(dAtA []byte) error
- type WhoAmIRequest
- func (*WhoAmIRequest) Descriptor() ([]byte, []int)
- func (m *WhoAmIRequest) Marshal() (dAtA []byte, err error)
- func (m *WhoAmIRequest) MarshalTo(dAtA []byte) (int, error)
- func (*WhoAmIRequest) ProtoMessage()
- func (m *WhoAmIRequest) Reset()
- func (m *WhoAmIRequest) Size() (n int)
- func (m *WhoAmIRequest) String() string
- func (m *WhoAmIRequest) Unmarshal(dAtA []byte) error
- type WhoAmIResponse
- func (*WhoAmIResponse) Descriptor() ([]byte, []int)
- func (m *WhoAmIResponse) GetUsername() string
- func (m *WhoAmIResponse) Marshal() (dAtA []byte, err error)
- func (m *WhoAmIResponse) MarshalTo(dAtA []byte) (int, error)
- func (*WhoAmIResponse) ProtoMessage()
- func (m *WhoAmIResponse) Reset()
- func (m *WhoAmIResponse) Size() (n int)
- func (m *WhoAmIResponse) String() string
- func (m *WhoAmIResponse) Unmarshal(dAtA []byte) error
Constants ¶
View Source
const ( // ContextTokenKey is the key of the auth token in an // authenticated context ContextTokenKey = "authn-token" )
Variables ¶
View Source
var ( ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") )
View Source
var Scope_name = map[int32]string{
0: "NONE",
1: "READER",
2: "WRITER",
3: "OWNER",
}
View Source
var Scope_value = map[string]int32{
"NONE": 0,
"READER": 1,
"WRITER": 2,
"OWNER": 3,
}
Functions ¶
func In2Out ¶ added in v1.5.2
In2Out converts an incoming context containing auth information into an outgoing context containing auth information, stripping other keys (e.g. for metrics) in the process. If the incoming context doesn't have any auth information, then the returned context won't either.
func IsNotActivatedError ¶
IsNotActivatedError checks if an error is a NotActivatedError
func RegisterAPIServer ¶
Types ¶
type ACL ¶
type ACL struct { // username -> scope Entries map[string]Scope `` /* 165-byte string literal not displayed */ }
func (*ACL) Descriptor ¶
func (*ACL) GetEntries ¶
func (*ACL) ProtoMessage ¶
func (*ACL) ProtoMessage()
type ACLEntry ¶
type ACLEntry struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Scope Scope `protobuf:"varint,2,opt,name=scope,proto3,enum=auth.Scope" json:"scope,omitempty"` }
func (*ACLEntry) Descriptor ¶
func (*ACLEntry) GetUsername ¶
func (*ACLEntry) ProtoMessage ¶
func (*ACLEntry) ProtoMessage()
type APIClient ¶
type APIClient interface { Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) SetScope(ctx context.Context, in *SetScopeRequest, opts ...grpc.CallOption) (*SetScopeResponse, error) GetScope(ctx context.Context, in *GetScopeRequest, opts ...grpc.CallOption) (*GetScopeResponse, error) GetACL(ctx context.Context, in *GetACLRequest, opts ...grpc.CallOption) (*GetACLResponse, error) GetCapability(ctx context.Context, in *GetCapabilityRequest, opts ...grpc.CallOption) (*GetCapabilityResponse, error) RevokeAuthToken(ctx context.Context, in *RevokeAuthTokenRequest, opts ...grpc.CallOption) (*RevokeAuthTokenResponse, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) SetScope(context.Context, *SetScopeRequest) (*SetScopeResponse, error) GetScope(context.Context, *GetScopeRequest) (*GetScopeResponse, error) GetACL(context.Context, *GetACLRequest) (*GetACLResponse, error) GetCapability(context.Context, *GetCapabilityRequest) (*GetCapabilityResponse, error) RevokeAuthToken(context.Context, *RevokeAuthTokenRequest) (*RevokeAuthTokenResponse, error) }
type ActivateRequest ¶
type ActivateRequest struct { ActivationCode string `protobuf:"bytes,1,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"` Admins []string `protobuf:"bytes,2,rep,name=admins" json:"admins,omitempty"` }
func (*ActivateRequest) Descriptor ¶
func (*ActivateRequest) Descriptor() ([]byte, []int)
func (*ActivateRequest) GetActivationCode ¶
func (m *ActivateRequest) GetActivationCode() string
func (*ActivateRequest) GetAdmins ¶
func (m *ActivateRequest) GetAdmins() []string
func (*ActivateRequest) Marshal ¶
func (m *ActivateRequest) Marshal() (dAtA []byte, err error)
func (*ActivateRequest) ProtoMessage ¶
func (*ActivateRequest) ProtoMessage()
func (*ActivateRequest) Reset ¶
func (m *ActivateRequest) Reset()
func (*ActivateRequest) Size ¶
func (m *ActivateRequest) Size() (n int)
func (*ActivateRequest) String ¶
func (m *ActivateRequest) String() string
func (*ActivateRequest) Unmarshal ¶
func (m *ActivateRequest) Unmarshal(dAtA []byte) error
type ActivateResponse ¶
type ActivateResponse struct { }
func (*ActivateResponse) Descriptor ¶
func (*ActivateResponse) Descriptor() ([]byte, []int)
func (*ActivateResponse) Marshal ¶
func (m *ActivateResponse) Marshal() (dAtA []byte, err error)
func (*ActivateResponse) ProtoMessage ¶
func (*ActivateResponse) ProtoMessage()
func (*ActivateResponse) Reset ¶
func (m *ActivateResponse) Reset()
func (*ActivateResponse) Size ¶
func (m *ActivateResponse) Size() (n int)
func (*ActivateResponse) String ¶
func (m *ActivateResponse) String() string
func (*ActivateResponse) Unmarshal ¶
func (m *ActivateResponse) Unmarshal(dAtA []byte) error
type AuthenticateRequest ¶
type AuthenticateRequest struct {
GithubToken string `protobuf:"bytes,1,opt,name=github_token,json=githubToken,proto3" json:"github_token,omitempty"`
}
func (*AuthenticateRequest) Descriptor ¶
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
func (*AuthenticateRequest) GetGithubToken ¶
func (m *AuthenticateRequest) GetGithubToken() string
func (*AuthenticateRequest) Marshal ¶
func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error)
func (*AuthenticateRequest) MarshalTo ¶
func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error)
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) Reset ¶
func (m *AuthenticateRequest) Reset()
func (*AuthenticateRequest) Size ¶
func (m *AuthenticateRequest) Size() (n int)
func (*AuthenticateRequest) String ¶
func (m *AuthenticateRequest) String() string
func (*AuthenticateRequest) Unmarshal ¶
func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error
type AuthenticateResponse ¶
type AuthenticateResponse struct {
PachToken string `protobuf:"bytes,1,opt,name=pach_token,json=pachToken,proto3" json:"pach_token,omitempty"`
}
func (*AuthenticateResponse) Descriptor ¶
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
func (*AuthenticateResponse) GetPachToken ¶
func (m *AuthenticateResponse) GetPachToken() string
func (*AuthenticateResponse) Marshal ¶
func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error)
func (*AuthenticateResponse) MarshalTo ¶
func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) Reset ¶
func (m *AuthenticateResponse) Reset()
func (*AuthenticateResponse) Size ¶
func (m *AuthenticateResponse) Size() (n int)
func (*AuthenticateResponse) String ¶
func (m *AuthenticateResponse) String() string
func (*AuthenticateResponse) Unmarshal ¶
func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error
type AuthorizeRequest ¶
type AuthorizeRequest struct { Repo *pfs.Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"` Scope Scope `protobuf:"varint,2,opt,name=scope,proto3,enum=auth.Scope" json:"scope,omitempty"` }
func (*AuthorizeRequest) Descriptor ¶
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
func (*AuthorizeRequest) GetRepo ¶
func (m *AuthorizeRequest) GetRepo() *pfs.Repo
func (*AuthorizeRequest) GetScope ¶
func (m *AuthorizeRequest) GetScope() Scope
func (*AuthorizeRequest) Marshal ¶
func (m *AuthorizeRequest) Marshal() (dAtA []byte, err error)
func (*AuthorizeRequest) ProtoMessage ¶
func (*AuthorizeRequest) ProtoMessage()
func (*AuthorizeRequest) Reset ¶
func (m *AuthorizeRequest) Reset()
func (*AuthorizeRequest) Size ¶
func (m *AuthorizeRequest) Size() (n int)
func (*AuthorizeRequest) String ¶
func (m *AuthorizeRequest) String() string
func (*AuthorizeRequest) Unmarshal ¶
func (m *AuthorizeRequest) Unmarshal(dAtA []byte) error
type AuthorizeResponse ¶
type AuthorizeResponse struct {
Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"`
}
func (*AuthorizeResponse) Descriptor ¶
func (*AuthorizeResponse) Descriptor() ([]byte, []int)
func (*AuthorizeResponse) GetAuthorized ¶
func (m *AuthorizeResponse) GetAuthorized() bool
func (*AuthorizeResponse) Marshal ¶
func (m *AuthorizeResponse) Marshal() (dAtA []byte, err error)
func (*AuthorizeResponse) MarshalTo ¶
func (m *AuthorizeResponse) MarshalTo(dAtA []byte) (int, error)
func (*AuthorizeResponse) ProtoMessage ¶
func (*AuthorizeResponse) ProtoMessage()
func (*AuthorizeResponse) Reset ¶
func (m *AuthorizeResponse) Reset()
func (*AuthorizeResponse) Size ¶
func (m *AuthorizeResponse) Size() (n int)
func (*AuthorizeResponse) String ¶
func (m *AuthorizeResponse) String() string
func (*AuthorizeResponse) Unmarshal ¶
func (m *AuthorizeResponse) Unmarshal(dAtA []byte) error
type GetACLRequest ¶
type GetACLRequest struct {
Repo *pfs.Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"`
}
func (*GetACLRequest) Descriptor ¶
func (*GetACLRequest) Descriptor() ([]byte, []int)
func (*GetACLRequest) GetRepo ¶
func (m *GetACLRequest) GetRepo() *pfs.Repo
func (*GetACLRequest) Marshal ¶
func (m *GetACLRequest) Marshal() (dAtA []byte, err error)
func (*GetACLRequest) ProtoMessage ¶
func (*GetACLRequest) ProtoMessage()
func (*GetACLRequest) Reset ¶
func (m *GetACLRequest) Reset()
func (*GetACLRequest) Size ¶
func (m *GetACLRequest) Size() (n int)
func (*GetACLRequest) String ¶
func (m *GetACLRequest) String() string
func (*GetACLRequest) Unmarshal ¶
func (m *GetACLRequest) Unmarshal(dAtA []byte) error
type GetACLResponse ¶
type GetACLResponse struct {
Acl *ACL `protobuf:"bytes,1,opt,name=acl" json:"acl,omitempty"`
}
func (*GetACLResponse) Descriptor ¶
func (*GetACLResponse) Descriptor() ([]byte, []int)
func (*GetACLResponse) GetAcl ¶
func (m *GetACLResponse) GetAcl() *ACL
func (*GetACLResponse) Marshal ¶
func (m *GetACLResponse) Marshal() (dAtA []byte, err error)
func (*GetACLResponse) ProtoMessage ¶
func (*GetACLResponse) ProtoMessage()
func (*GetACLResponse) Reset ¶
func (m *GetACLResponse) Reset()
func (*GetACLResponse) Size ¶
func (m *GetACLResponse) Size() (n int)
func (*GetACLResponse) String ¶
func (m *GetACLResponse) String() string
func (*GetACLResponse) Unmarshal ¶
func (m *GetACLResponse) Unmarshal(dAtA []byte) error
type GetCapabilityRequest ¶
type GetCapabilityRequest struct { }
func (*GetCapabilityRequest) Descriptor ¶
func (*GetCapabilityRequest) Descriptor() ([]byte, []int)
func (*GetCapabilityRequest) Marshal ¶
func (m *GetCapabilityRequest) Marshal() (dAtA []byte, err error)
func (*GetCapabilityRequest) MarshalTo ¶
func (m *GetCapabilityRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetCapabilityRequest) ProtoMessage ¶
func (*GetCapabilityRequest) ProtoMessage()
func (*GetCapabilityRequest) Reset ¶
func (m *GetCapabilityRequest) Reset()
func (*GetCapabilityRequest) Size ¶
func (m *GetCapabilityRequest) Size() (n int)
func (*GetCapabilityRequest) String ¶
func (m *GetCapabilityRequest) String() string
func (*GetCapabilityRequest) Unmarshal ¶
func (m *GetCapabilityRequest) Unmarshal(dAtA []byte) error
type GetCapabilityResponse ¶
type GetCapabilityResponse struct {
Capability string `protobuf:"bytes,1,opt,name=capability,proto3" json:"capability,omitempty"`
}
func (*GetCapabilityResponse) Descriptor ¶
func (*GetCapabilityResponse) Descriptor() ([]byte, []int)
func (*GetCapabilityResponse) GetCapability ¶
func (m *GetCapabilityResponse) GetCapability() string
func (*GetCapabilityResponse) Marshal ¶
func (m *GetCapabilityResponse) Marshal() (dAtA []byte, err error)
func (*GetCapabilityResponse) MarshalTo ¶
func (m *GetCapabilityResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetCapabilityResponse) ProtoMessage ¶
func (*GetCapabilityResponse) ProtoMessage()
func (*GetCapabilityResponse) Reset ¶
func (m *GetCapabilityResponse) Reset()
func (*GetCapabilityResponse) Size ¶
func (m *GetCapabilityResponse) Size() (n int)
func (*GetCapabilityResponse) String ¶
func (m *GetCapabilityResponse) String() string
func (*GetCapabilityResponse) Unmarshal ¶
func (m *GetCapabilityResponse) Unmarshal(dAtA []byte) error
type GetScopeRequest ¶
type GetScopeRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Repo *pfs.Repo `protobuf:"bytes,2,opt,name=repo" json:"repo,omitempty"` }
func (*GetScopeRequest) Descriptor ¶
func (*GetScopeRequest) Descriptor() ([]byte, []int)
func (*GetScopeRequest) GetRepo ¶
func (m *GetScopeRequest) GetRepo() *pfs.Repo
func (*GetScopeRequest) GetUsername ¶
func (m *GetScopeRequest) GetUsername() string
func (*GetScopeRequest) Marshal ¶
func (m *GetScopeRequest) Marshal() (dAtA []byte, err error)
func (*GetScopeRequest) ProtoMessage ¶
func (*GetScopeRequest) ProtoMessage()
func (*GetScopeRequest) Reset ¶
func (m *GetScopeRequest) Reset()
func (*GetScopeRequest) Size ¶
func (m *GetScopeRequest) Size() (n int)
func (*GetScopeRequest) String ¶
func (m *GetScopeRequest) String() string
func (*GetScopeRequest) Unmarshal ¶
func (m *GetScopeRequest) Unmarshal(dAtA []byte) error
type GetScopeResponse ¶
type GetScopeResponse struct {
Scope Scope `protobuf:"varint,1,opt,name=scope,proto3,enum=auth.Scope" json:"scope,omitempty"`
}
func (*GetScopeResponse) Descriptor ¶
func (*GetScopeResponse) Descriptor() ([]byte, []int)
func (*GetScopeResponse) GetScope ¶
func (m *GetScopeResponse) GetScope() Scope
func (*GetScopeResponse) Marshal ¶
func (m *GetScopeResponse) Marshal() (dAtA []byte, err error)
func (*GetScopeResponse) ProtoMessage ¶
func (*GetScopeResponse) ProtoMessage()
func (*GetScopeResponse) Reset ¶
func (m *GetScopeResponse) Reset()
func (*GetScopeResponse) Size ¶
func (m *GetScopeResponse) Size() (n int)
func (*GetScopeResponse) String ¶
func (m *GetScopeResponse) String() string
func (*GetScopeResponse) Unmarshal ¶
func (m *GetScopeResponse) Unmarshal(dAtA []byte) error
type NotActivatedError ¶
type NotActivatedError struct{}
NotActivatedError is returned by an Auth API if the Auth service has not been activated.
func (NotActivatedError) Error ¶
func (e NotActivatedError) Error() string
type RevokeAuthTokenRequest ¶
type RevokeAuthTokenRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}
func (*RevokeAuthTokenRequest) Descriptor ¶
func (*RevokeAuthTokenRequest) Descriptor() ([]byte, []int)
func (*RevokeAuthTokenRequest) GetToken ¶
func (m *RevokeAuthTokenRequest) GetToken() string
func (*RevokeAuthTokenRequest) Marshal ¶
func (m *RevokeAuthTokenRequest) Marshal() (dAtA []byte, err error)
func (*RevokeAuthTokenRequest) MarshalTo ¶
func (m *RevokeAuthTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*RevokeAuthTokenRequest) ProtoMessage ¶
func (*RevokeAuthTokenRequest) ProtoMessage()
func (*RevokeAuthTokenRequest) Reset ¶
func (m *RevokeAuthTokenRequest) Reset()
func (*RevokeAuthTokenRequest) Size ¶
func (m *RevokeAuthTokenRequest) Size() (n int)
func (*RevokeAuthTokenRequest) String ¶
func (m *RevokeAuthTokenRequest) String() string
func (*RevokeAuthTokenRequest) Unmarshal ¶
func (m *RevokeAuthTokenRequest) Unmarshal(dAtA []byte) error
type RevokeAuthTokenResponse ¶
type RevokeAuthTokenResponse struct { }
func (*RevokeAuthTokenResponse) Descriptor ¶
func (*RevokeAuthTokenResponse) Descriptor() ([]byte, []int)
func (*RevokeAuthTokenResponse) Marshal ¶
func (m *RevokeAuthTokenResponse) Marshal() (dAtA []byte, err error)
func (*RevokeAuthTokenResponse) MarshalTo ¶
func (m *RevokeAuthTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*RevokeAuthTokenResponse) ProtoMessage ¶
func (*RevokeAuthTokenResponse) ProtoMessage()
func (*RevokeAuthTokenResponse) Reset ¶
func (m *RevokeAuthTokenResponse) Reset()
func (*RevokeAuthTokenResponse) Size ¶
func (m *RevokeAuthTokenResponse) Size() (n int)
func (*RevokeAuthTokenResponse) String ¶
func (m *RevokeAuthTokenResponse) String() string
func (*RevokeAuthTokenResponse) Unmarshal ¶
func (m *RevokeAuthTokenResponse) Unmarshal(dAtA []byte) error
type Scope ¶
type Scope int32
func ParseScope ¶
ParseScope parses the string 's' to a scope (for example, parsing a command- line argument.
func (Scope) EnumDescriptor ¶
type SetScopeRequest ¶
type SetScopeRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Repo *pfs.Repo `protobuf:"bytes,2,opt,name=repo" json:"repo,omitempty"` Scope Scope `protobuf:"varint,3,opt,name=scope,proto3,enum=auth.Scope" json:"scope,omitempty"` }
func (*SetScopeRequest) Descriptor ¶
func (*SetScopeRequest) Descriptor() ([]byte, []int)
func (*SetScopeRequest) GetRepo ¶
func (m *SetScopeRequest) GetRepo() *pfs.Repo
func (*SetScopeRequest) GetScope ¶
func (m *SetScopeRequest) GetScope() Scope
func (*SetScopeRequest) GetUsername ¶
func (m *SetScopeRequest) GetUsername() string
func (*SetScopeRequest) Marshal ¶
func (m *SetScopeRequest) Marshal() (dAtA []byte, err error)
func (*SetScopeRequest) ProtoMessage ¶
func (*SetScopeRequest) ProtoMessage()
func (*SetScopeRequest) Reset ¶
func (m *SetScopeRequest) Reset()
func (*SetScopeRequest) Size ¶
func (m *SetScopeRequest) Size() (n int)
func (*SetScopeRequest) String ¶
func (m *SetScopeRequest) String() string
func (*SetScopeRequest) Unmarshal ¶
func (m *SetScopeRequest) Unmarshal(dAtA []byte) error
type SetScopeResponse ¶
type SetScopeResponse struct { }
func (*SetScopeResponse) Descriptor ¶
func (*SetScopeResponse) Descriptor() ([]byte, []int)
func (*SetScopeResponse) Marshal ¶
func (m *SetScopeResponse) Marshal() (dAtA []byte, err error)
func (*SetScopeResponse) ProtoMessage ¶
func (*SetScopeResponse) ProtoMessage()
func (*SetScopeResponse) Reset ¶
func (m *SetScopeResponse) Reset()
func (*SetScopeResponse) Size ¶
func (m *SetScopeResponse) Size() (n int)
func (*SetScopeResponse) String ¶
func (m *SetScopeResponse) String() string
func (*SetScopeResponse) Unmarshal ¶
func (m *SetScopeResponse) Unmarshal(dAtA []byte) error
type User ¶
type User struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Admin bool `protobuf:"varint,2,opt,name=admin,proto3" json:"admin,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
type WhoAmIRequest ¶
type WhoAmIRequest struct { }
func (*WhoAmIRequest) Descriptor ¶
func (*WhoAmIRequest) Descriptor() ([]byte, []int)
func (*WhoAmIRequest) Marshal ¶
func (m *WhoAmIRequest) Marshal() (dAtA []byte, err error)
func (*WhoAmIRequest) ProtoMessage ¶
func (*WhoAmIRequest) ProtoMessage()
func (*WhoAmIRequest) Reset ¶
func (m *WhoAmIRequest) Reset()
func (*WhoAmIRequest) Size ¶
func (m *WhoAmIRequest) Size() (n int)
func (*WhoAmIRequest) String ¶
func (m *WhoAmIRequest) String() string
func (*WhoAmIRequest) Unmarshal ¶
func (m *WhoAmIRequest) Unmarshal(dAtA []byte) error
type WhoAmIResponse ¶
type WhoAmIResponse struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
}
func (*WhoAmIResponse) Descriptor ¶
func (*WhoAmIResponse) Descriptor() ([]byte, []int)
func (*WhoAmIResponse) GetUsername ¶
func (m *WhoAmIResponse) GetUsername() string
func (*WhoAmIResponse) Marshal ¶
func (m *WhoAmIResponse) Marshal() (dAtA []byte, err error)
func (*WhoAmIResponse) ProtoMessage ¶
func (*WhoAmIResponse) ProtoMessage()
func (*WhoAmIResponse) Reset ¶
func (m *WhoAmIResponse) Reset()
func (*WhoAmIResponse) Size ¶
func (m *WhoAmIResponse) Size() (n int)
func (*WhoAmIResponse) String ¶
func (m *WhoAmIResponse) String() string
func (*WhoAmIResponse) Unmarshal ¶
func (m *WhoAmIResponse) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.