auth

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContextTokenKey is the key of the auth token in an
	// authenticated context
	ContextTokenKey = "authn-token"

	// GitHubPrefix indicates that this Subject is a GitHub user (because users
	// can authenticate via GitHub, and Pachyderm doesn't have a users table,
	// every GitHub user is also a logical Pachyderm user (but most won't be on
	// any ACLs)
	GitHubPrefix = "github:"

	// RobotPrefix indicates that this Subject is a Pachyderm robot user. Any
	// string (with this prefix) is a logical Pachyderm robot user.
	RobotPrefix = "robot:"

	// PipelinePrefix indicates that this Subject is a PPS pipeline. Any string
	// (with this prefix) is a logical PPS pipeline (even though the pipeline may
	// not exist).
	PipelinePrefix = "pipeline:"
)

Variables

View Source
var (
	// ErrNotActivated is returned by an Auth API if the Auth service
	// has not been activated.
	//
	// Note: This error message string is matched in the UI. If edited,
	// it also needs to be updated in the UI code
	ErrNotActivated = status.Error(codes.Unimplemented, "the auth service is not activated")

	// ErrPartiallyActivated is returned by the auth API to indicated that it's
	// in an intermediate state (in this state, users can retry Activate() or
	// revert with Deactivate(), but not much else)
	ErrPartiallyActivated = status.Error(codes.Unavailable, "the auth service is only partially activated")

	// ErrNotSignedIn indicates that the caller isn't signed in
	//
	// Note: This error message string is matched in the UI. If edited,
	// it also needs to be updated in the UI code
	ErrNotSignedIn = status.Error(codes.Unauthenticated, "no authentication token (try logging in)")

	// ErrNoMetadata is returned by the Auth API if the caller sent a request
	// containing no auth token.
	ErrNoMetadata = status.Error(codes.Internal, "no authentication metadata (try logging in)")

	// ErrBadToken is returned by the Auth API if the caller's token is corrupted
	// or has expired.
	ErrBadToken = status.Error(codes.Unauthenticated, "provided auth token is corrupted or has expired (try logging in again)")
)
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,
}
View Source
var TokenInfo_TokenSource_name = map[int32]string{
	0: "INVALID",
	1: "AUTHENTICATE",
	2: "GET_TOKEN",
}
View Source
var TokenInfo_TokenSource_value = map[string]int32{
	"INVALID":      0,
	"AUTHENTICATE": 1,
	"GET_TOKEN":    2,
}

Functions

func IsErrBadToken added in v1.7.0

func IsErrBadToken(err error) bool

IsErrBadToken returns true if 'err' is a ErrBadToken

func IsErrInvalidPrincipal added in v1.7.0

func IsErrInvalidPrincipal(err error) bool

IsErrInvalidPrincipal returns true if 'err' is an ErrInvalidPrincipal

func IsErrNoMetadata added in v1.7.2

func IsErrNoMetadata(err error) bool

IsErrNoMetadata returns true if 'err' is an ErrNoMetadata (uses string comparison to work across RPC boundaries)

func IsErrNotActivated added in v1.7.0

func IsErrNotActivated(err error) bool

IsErrNotActivated checks if an error is a ErrNotActivated

func IsErrNotAuthorized added in v1.7.0

func IsErrNotAuthorized(err error) bool

IsErrNotAuthorized checks if an error is a ErrNotAuthorized

func IsErrNotSignedIn added in v1.7.0

func IsErrNotSignedIn(err error) bool

IsErrNotSignedIn returns true if 'err' is a ErrNotSignedIn

func IsErrPartiallyActivated added in v1.7.1

func IsErrPartiallyActivated(err error) bool

IsErrPartiallyActivated checks if an error is a ErrPartiallyActivated

func IsErrTooShortTTL added in v1.7.0

func IsErrTooShortTTL(err error) bool

IsErrTooShortTTL returns true if 'err' is a ErrTooShortTTL

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

Types

type ACL

type ACL struct {
	// principal -> scope. All principals are the default principal of a Pachyderm
	// subject (i.e. all keys in this map are strings prefixed with either
	// "github:" or "robot:", followed by the name of a GitHub user, all of whom
	// are Pachyderm subjects, or a Pachyderm robot user)
	Entries              map[string]Scope `` /* 172-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*ACL) Descriptor

func (*ACL) Descriptor() ([]byte, []int)

func (*ACL) GetEntries

func (m *ACL) GetEntries() map[string]Scope

func (*ACL) Marshal

func (m *ACL) Marshal() (dAtA []byte, err error)

func (*ACL) MarshalTo

func (m *ACL) MarshalTo(dAtA []byte) (int, error)

func (*ACL) ProtoMessage

func (*ACL) ProtoMessage()

func (*ACL) Reset

func (m *ACL) Reset()

func (*ACL) Size

func (m *ACL) Size() (n int)

func (*ACL) String

func (m *ACL) String() string

func (*ACL) Unmarshal

func (m *ACL) Unmarshal(dAtA []byte) error

func (*ACL) XXX_DiscardUnknown added in v1.7.12

func (m *ACL) XXX_DiscardUnknown()

func (*ACL) XXX_Marshal added in v1.7.12

func (m *ACL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ACL) XXX_Merge added in v1.7.12

func (m *ACL) XXX_Merge(src proto.Message)

func (*ACL) XXX_Size added in v1.7.12

func (m *ACL) XXX_Size() int

func (*ACL) XXX_Unmarshal added in v1.7.12

func (m *ACL) XXX_Unmarshal(b []byte) error

type ACLEntry

type ACLEntry struct {
	// username is the principal posessing this level of access to this ACL's
	// repo (despite the name, this principal may be for a human github user or a
	// pachyderm robot)
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// scope is the level of access that the owner of 'principal' has to this
	// ACL's repo (actually a role in typical security terminology)
	Scope                Scope    `protobuf:"varint,2,opt,name=scope,proto3,enum=auth.Scope" json:"scope,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ACLEntry) Descriptor

func (*ACLEntry) Descriptor() ([]byte, []int)

func (*ACLEntry) GetScope

func (m *ACLEntry) GetScope() Scope

func (*ACLEntry) GetUsername

func (m *ACLEntry) GetUsername() string

func (*ACLEntry) Marshal

func (m *ACLEntry) Marshal() (dAtA []byte, err error)

func (*ACLEntry) MarshalTo

func (m *ACLEntry) MarshalTo(dAtA []byte) (int, error)

func (*ACLEntry) ProtoMessage

func (*ACLEntry) ProtoMessage()

func (*ACLEntry) Reset

func (m *ACLEntry) Reset()

func (*ACLEntry) Size

func (m *ACLEntry) Size() (n int)

func (*ACLEntry) String

func (m *ACLEntry) String() string

func (*ACLEntry) Unmarshal

func (m *ACLEntry) Unmarshal(dAtA []byte) error

func (*ACLEntry) XXX_DiscardUnknown added in v1.7.12

func (m *ACLEntry) XXX_DiscardUnknown()

func (*ACLEntry) XXX_Marshal added in v1.7.12

func (m *ACLEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ACLEntry) XXX_Merge added in v1.7.12

func (m *ACLEntry) XXX_Merge(src proto.Message)

func (*ACLEntry) XXX_Size added in v1.7.12

func (m *ACLEntry) XXX_Size() int

func (*ACLEntry) XXX_Unmarshal added in v1.7.12

func (m *ACLEntry) XXX_Unmarshal(b []byte) error

type APIClient

type APIClient interface {
	// Activate/Deactivate the auth API. 'Activate' sets an initial set of admins
	// for the Pachyderm cluster, and 'Deactivate' removes all ACLs, tokens, and
	// admins from the Pachyderm cluster, making all data publicly accessable
	Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error)
	Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error)
	GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error)
	SetConfiguration(ctx context.Context, in *SetConfigurationRequest, opts ...grpc.CallOption) (*SetConfigurationResponse, error)
	// GetAdmins returns the current list of cluster admins
	GetAdmins(ctx context.Context, in *GetAdminsRequest, opts ...grpc.CallOption) (*GetAdminsResponse, error)
	// ModifyAdmins adds or removes admins from the cluster
	ModifyAdmins(ctx context.Context, in *ModifyAdminsRequest, opts ...grpc.CallOption) (*ModifyAdminsResponse, 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)
	GetScope(ctx context.Context, in *GetScopeRequest, opts ...grpc.CallOption) (*GetScopeResponse, error)
	SetScope(ctx context.Context, in *SetScopeRequest, opts ...grpc.CallOption) (*SetScopeResponse, error)
	GetACL(ctx context.Context, in *GetACLRequest, opts ...grpc.CallOption) (*GetACLResponse, error)
	SetACL(ctx context.Context, in *SetACLRequest, opts ...grpc.CallOption) (*SetACLResponse, error)
	GetAuthToken(ctx context.Context, in *GetAuthTokenRequest, opts ...grpc.CallOption) (*GetAuthTokenResponse, error)
	ExtendAuthToken(ctx context.Context, in *ExtendAuthTokenRequest, opts ...grpc.CallOption) (*ExtendAuthTokenResponse, error)
	RevokeAuthToken(ctx context.Context, in *RevokeAuthTokenRequest, opts ...grpc.CallOption) (*RevokeAuthTokenResponse, error)
	SetGroupsForUser(ctx context.Context, in *SetGroupsForUserRequest, opts ...grpc.CallOption) (*SetGroupsForUserResponse, error)
	ModifyMembers(ctx context.Context, in *ModifyMembersRequest, opts ...grpc.CallOption) (*ModifyMembersResponse, error)
	GetGroups(ctx context.Context, in *GetGroupsRequest, opts ...grpc.CallOption) (*GetGroupsResponse, error)
	GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error)
	GetOneTimePassword(ctx context.Context, in *GetOneTimePasswordRequest, opts ...grpc.CallOption) (*GetOneTimePasswordResponse, error)
}

APIClient is the client API for API service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAPIClient

func NewAPIClient(cc *grpc.ClientConn) APIClient

type APIServer

type APIServer interface {
	// Activate/Deactivate the auth API. 'Activate' sets an initial set of admins
	// for the Pachyderm cluster, and 'Deactivate' removes all ACLs, tokens, and
	// admins from the Pachyderm cluster, making all data publicly accessable
	Activate(context.Context, *ActivateRequest) (*ActivateResponse, error)
	Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error)
	GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error)
	SetConfiguration(context.Context, *SetConfigurationRequest) (*SetConfigurationResponse, error)
	// GetAdmins returns the current list of cluster admins
	GetAdmins(context.Context, *GetAdminsRequest) (*GetAdminsResponse, error)
	// ModifyAdmins adds or removes admins from the cluster
	ModifyAdmins(context.Context, *ModifyAdminsRequest) (*ModifyAdminsResponse, error)
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
	WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error)
	GetScope(context.Context, *GetScopeRequest) (*GetScopeResponse, error)
	SetScope(context.Context, *SetScopeRequest) (*SetScopeResponse, error)
	GetACL(context.Context, *GetACLRequest) (*GetACLResponse, error)
	SetACL(context.Context, *SetACLRequest) (*SetACLResponse, error)
	GetAuthToken(context.Context, *GetAuthTokenRequest) (*GetAuthTokenResponse, error)
	ExtendAuthToken(context.Context, *ExtendAuthTokenRequest) (*ExtendAuthTokenResponse, error)
	RevokeAuthToken(context.Context, *RevokeAuthTokenRequest) (*RevokeAuthTokenResponse, error)
	SetGroupsForUser(context.Context, *SetGroupsForUserRequest) (*SetGroupsForUserResponse, error)
	ModifyMembers(context.Context, *ModifyMembersRequest) (*ModifyMembersResponse, error)
	GetGroups(context.Context, *GetGroupsRequest) (*GetGroupsResponse, error)
	GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error)
	GetOneTimePassword(context.Context, *GetOneTimePasswordRequest) (*GetOneTimePasswordResponse, error)
}

APIServer is the server API for API service.

type ActivateRequest

type ActivateRequest struct {
	// If set, Pachyderm will authenticate the caller as this user.
	// - If set to a github user (i.e. it has a 'github:' prefix or no prefix)
	//   then Pachyderm will confirm that it matches the user associated with
	//   'github_token'
	// - If set to a robot user (i.e. it has a 'robot:' prefix), then Pachyderm
	//   will generate a new token for the robot user; this token will be the only
	//   way to administer this cluster until more admins are added.
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// This is the token returned by GitHub and used to authenticate the caller.
	// When Pachyderm is deployed locally, setting this value to a given string
	// will automatically authenticate the caller as a GitHub user whose username
	// is that string (unless this "looks like" a GitHub access code, in which
	// case Pachyderm does retrieve the corresponding GitHub username)
	GitHubToken          string   `protobuf:"bytes,1,opt,name=github_token,json=githubToken,proto3" json:"github_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ActivateRequest mirrors AuthenticateRequest. The caller is authenticated via GitHub OAuth, and then promoted to the cluster's first Admin. Afterwards, the caller can promote other users to Admin and remove themselves

func (*ActivateRequest) Descriptor

func (*ActivateRequest) Descriptor() ([]byte, []int)

func (*ActivateRequest) GetGitHubToken added in v1.7.0

func (m *ActivateRequest) GetGitHubToken() string

func (*ActivateRequest) GetSubject added in v1.7.1

func (m *ActivateRequest) GetSubject() string

func (*ActivateRequest) Marshal

func (m *ActivateRequest) Marshal() (dAtA []byte, err error)

func (*ActivateRequest) MarshalTo

func (m *ActivateRequest) MarshalTo(dAtA []byte) (int, 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

func (*ActivateRequest) XXX_DiscardUnknown added in v1.7.12

func (m *ActivateRequest) XXX_DiscardUnknown()

func (*ActivateRequest) XXX_Marshal added in v1.7.12

func (m *ActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ActivateRequest) XXX_Merge added in v1.7.12

func (m *ActivateRequest) XXX_Merge(src proto.Message)

func (*ActivateRequest) XXX_Size added in v1.7.12

func (m *ActivateRequest) XXX_Size() int

func (*ActivateRequest) XXX_Unmarshal added in v1.7.12

func (m *ActivateRequest) XXX_Unmarshal(b []byte) error

type ActivateResponse

type ActivateResponse struct {
	// pach_token authenticates the caller with Pachyderm (if you want to perform
	// Pachyderm operations after auth has been activated as themselves, you must
	// present this token along with your regular request)
	PachToken            string   `protobuf:"bytes,1,opt,name=pach_token,json=pachToken,proto3" json:"pach_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ActivateResponse) Descriptor

func (*ActivateResponse) Descriptor() ([]byte, []int)

func (*ActivateResponse) GetPachToken added in v1.6.0

func (m *ActivateResponse) GetPachToken() string

func (*ActivateResponse) Marshal

func (m *ActivateResponse) Marshal() (dAtA []byte, err error)

func (*ActivateResponse) MarshalTo

func (m *ActivateResponse) MarshalTo(dAtA []byte) (int, 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

func (*ActivateResponse) XXX_DiscardUnknown added in v1.7.12

func (m *ActivateResponse) XXX_DiscardUnknown()

func (*ActivateResponse) XXX_Marshal added in v1.7.12

func (m *ActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ActivateResponse) XXX_Merge added in v1.7.12

func (m *ActivateResponse) XXX_Merge(src proto.Message)

func (*ActivateResponse) XXX_Size added in v1.7.12

func (m *ActivateResponse) XXX_Size() int

func (*ActivateResponse) XXX_Unmarshal added in v1.7.12

func (m *ActivateResponse) XXX_Unmarshal(b []byte) error

type AuthConfig added in v1.7.7

type AuthConfig struct {
	// live_config_version identifies the version of a given pachyderm cluster's
	// current auth configuration; if a user tries to write an auth configuration
	// where live_config_version doesn't match the version of the cluster's
	// current config, the write will fail. This allows for safe
	// read+modify+write config changes.
	LiveConfigVersion int64 `protobuf:"varint,1,opt,name=live_config_version,json=liveConfigVersion,proto3" json:"live_config_version,omitempty"`
	// id_providers describes external ID providers that can authenticate
	// Pachyderm users (e.g. GitHub, Okta, etc)
	IDProviders          []*IDProvider                  `protobuf:"bytes,2,rep,name=id_providers,json=idProviders,proto3" json:"id_providers,omitempty"`
	SAMLServiceOptions   *AuthConfig_SAMLServiceOptions `protobuf:"bytes,3,opt,name=saml_svc_options,json=samlSvcOptions,proto3" json:"saml_svc_options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

Configure Pachyderm's auth system (particularly authentication backends

func (*AuthConfig) Descriptor added in v1.7.7

func (*AuthConfig) Descriptor() ([]byte, []int)

func (*AuthConfig) GetIDProviders added in v1.7.7

func (m *AuthConfig) GetIDProviders() []*IDProvider

func (*AuthConfig) GetLiveConfigVersion added in v1.7.7

func (m *AuthConfig) GetLiveConfigVersion() int64

func (*AuthConfig) GetSAMLServiceOptions added in v1.7.7

func (m *AuthConfig) GetSAMLServiceOptions() *AuthConfig_SAMLServiceOptions

func (*AuthConfig) Marshal added in v1.7.7

func (m *AuthConfig) Marshal() (dAtA []byte, err error)

func (*AuthConfig) MarshalTo added in v1.7.7

func (m *AuthConfig) MarshalTo(dAtA []byte) (int, error)

func (*AuthConfig) ProtoMessage added in v1.7.7

func (*AuthConfig) ProtoMessage()

func (*AuthConfig) Reset added in v1.7.7

func (m *AuthConfig) Reset()

func (*AuthConfig) Size added in v1.7.7

func (m *AuthConfig) Size() (n int)

func (*AuthConfig) String added in v1.7.7

func (m *AuthConfig) String() string

func (*AuthConfig) Unmarshal added in v1.7.7

func (m *AuthConfig) Unmarshal(dAtA []byte) error

func (*AuthConfig) XXX_DiscardUnknown added in v1.7.12

func (m *AuthConfig) XXX_DiscardUnknown()

func (*AuthConfig) XXX_Marshal added in v1.7.12

func (m *AuthConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthConfig) XXX_Merge added in v1.7.12

func (m *AuthConfig) XXX_Merge(src proto.Message)

func (*AuthConfig) XXX_Size added in v1.7.12

func (m *AuthConfig) XXX_Size() int

func (*AuthConfig) XXX_Unmarshal added in v1.7.12

func (m *AuthConfig) XXX_Unmarshal(b []byte) error

type AuthConfig_SAMLServiceOptions added in v1.7.7

type AuthConfig_SAMLServiceOptions struct {
	// acs is the URL of Pachd's Assertion Consumer Service (i.e. where SAML ID
	// providers can send SAMLResponses to Pachd). If Pachyderm is running in a
	// private cluster, the cluster admin would be responsible for setting up a
	// domain name/proxy to resolve to pachd:654/acs
	ACSURL string `protobuf:"bytes,1,opt,name=acs_url,json=acsUrl,proto3" json:"acs_url,omitempty"`
	// metadata_url is the public URL of Pachd's SAML metadata service (some
	// SAML ID providers will query this for information about Pachyderm's SAML
	// implementation and use it to idenfity Pachyderm as a service provider).
	// If Pachyderm is running in a private cluster, the cluster admin would be
	// responsible for creating this URL (which must resolve to
	// pachd:654/saml/metadata)
	MetadataURL string `protobuf:"bytes,2,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"`
	// dash_url is the public address of this cluster's Pachyderm
	// dashboard, if one exists; this option determines where users will be
	// redirected after successfully authenticating
	DashURL string `protobuf:"bytes,3,opt,name=dash_url,json=dashUrl,proto3" json:"dash_url,omitempty"`
	// session_duration determines the duration of SAML-IdP-authenticated user
	// sessions (specified as a Golang time duration, e.g. "24h" or "600m"). If
	// unset, user sessions last 24 hours (a short default, as SAML assertions
	// may contain group memberships that need to be refreshed)
	SessionDuration string `protobuf:"bytes,4,opt,name=session_duration,json=sessionDuration,proto3" json:"session_duration,omitempty"`
	// debug_logging determines whether pachd emits verbose logs (including
	// SAML credentials) as it receives them, which may be helpful for
	// debugging. This will probably not be present in any official releases.
	DebugLogging         bool     `protobuf:"varint,5,opt,name=debug_logging,json=debugLogging,proto3" json:"debug_logging,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

saml_svc_options configures the SAML services (Assertion Consumer Service and Metadata Service) that Pachd can export.

func (*AuthConfig_SAMLServiceOptions) Descriptor added in v1.7.7

func (*AuthConfig_SAMLServiceOptions) Descriptor() ([]byte, []int)

func (*AuthConfig_SAMLServiceOptions) GetACSURL added in v1.7.7

func (m *AuthConfig_SAMLServiceOptions) GetACSURL() string

func (*AuthConfig_SAMLServiceOptions) GetDashURL added in v1.7.11

func (m *AuthConfig_SAMLServiceOptions) GetDashURL() string

func (*AuthConfig_SAMLServiceOptions) GetDebugLogging added in v1.7.11

func (m *AuthConfig_SAMLServiceOptions) GetDebugLogging() bool

func (*AuthConfig_SAMLServiceOptions) GetMetadataURL added in v1.7.7

func (m *AuthConfig_SAMLServiceOptions) GetMetadataURL() string

func (*AuthConfig_SAMLServiceOptions) GetSessionDuration added in v1.7.11

func (m *AuthConfig_SAMLServiceOptions) GetSessionDuration() string

func (*AuthConfig_SAMLServiceOptions) Marshal added in v1.7.7

func (m *AuthConfig_SAMLServiceOptions) Marshal() (dAtA []byte, err error)

func (*AuthConfig_SAMLServiceOptions) MarshalTo added in v1.7.7

func (m *AuthConfig_SAMLServiceOptions) MarshalTo(dAtA []byte) (int, error)

func (*AuthConfig_SAMLServiceOptions) ProtoMessage added in v1.7.7

func (*AuthConfig_SAMLServiceOptions) ProtoMessage()

func (*AuthConfig_SAMLServiceOptions) Reset added in v1.7.7

func (m *AuthConfig_SAMLServiceOptions) Reset()

func (*AuthConfig_SAMLServiceOptions) Size added in v1.7.7

func (m *AuthConfig_SAMLServiceOptions) Size() (n int)

func (*AuthConfig_SAMLServiceOptions) String added in v1.7.7

func (*AuthConfig_SAMLServiceOptions) Unmarshal added in v1.7.7

func (m *AuthConfig_SAMLServiceOptions) Unmarshal(dAtA []byte) error

func (*AuthConfig_SAMLServiceOptions) XXX_DiscardUnknown added in v1.7.12

func (m *AuthConfig_SAMLServiceOptions) XXX_DiscardUnknown()

func (*AuthConfig_SAMLServiceOptions) XXX_Marshal added in v1.7.12

func (m *AuthConfig_SAMLServiceOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthConfig_SAMLServiceOptions) XXX_Merge added in v1.7.12

func (m *AuthConfig_SAMLServiceOptions) XXX_Merge(src proto.Message)

func (*AuthConfig_SAMLServiceOptions) XXX_Size added in v1.7.12

func (m *AuthConfig_SAMLServiceOptions) XXX_Size() int

func (*AuthConfig_SAMLServiceOptions) XXX_Unmarshal added in v1.7.12

func (m *AuthConfig_SAMLServiceOptions) XXX_Unmarshal(b []byte) error

type AuthenticateRequest

type AuthenticateRequest struct {
	// This is the token returned by GitHub and used to authenticate the caller.
	// When Pachyderm is deployed locally, setting this value to a given string
	// will automatically authenticate the caller as a GitHub user whose username
	// is that string (unless this "looks like" a GitHub access code, in which
	// case Pachyderm does retrieve the corresponding GitHub username)
	GitHubToken string `protobuf:"bytes,1,opt,name=github_token,json=githubToken,proto3" json:"github_token,omitempty"`
	// This is a short-lived, one-time-use password generated by Pachyderm, for
	// the purpose of propagating authentication to new clients (e.g. from the
	// dash to pachd)
	OneTimePassword      string   `protobuf:"bytes,2,opt,name=one_time_password,json=oneTimePassword,proto3" json:"one_time_password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthenticateRequest) Descriptor

func (*AuthenticateRequest) Descriptor() ([]byte, []int)

func (*AuthenticateRequest) GetGitHubToken added in v1.7.0

func (m *AuthenticateRequest) GetGitHubToken() string

func (*AuthenticateRequest) GetOneTimePassword added in v1.7.11

func (m *AuthenticateRequest) GetOneTimePassword() 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

func (*AuthenticateRequest) XXX_DiscardUnknown added in v1.7.12

func (m *AuthenticateRequest) XXX_DiscardUnknown()

func (*AuthenticateRequest) XXX_Marshal added in v1.7.12

func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateRequest) XXX_Merge added in v1.7.12

func (m *AuthenticateRequest) XXX_Merge(src proto.Message)

func (*AuthenticateRequest) XXX_Size added in v1.7.12

func (m *AuthenticateRequest) XXX_Size() int

func (*AuthenticateRequest) XXX_Unmarshal added in v1.7.12

func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error

type AuthenticateResponse

type AuthenticateResponse struct {
	// pach_token authenticates the caller with Pachyderm (if you want to perform
	// Pachyderm operations after auth has been activated as themselves, you must
	// present this token along with your regular request)
	PachToken            string   `protobuf:"bytes,1,opt,name=pach_token,json=pachToken,proto3" json:"pach_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*AuthenticateResponse) XXX_DiscardUnknown added in v1.7.12

func (m *AuthenticateResponse) XXX_DiscardUnknown()

func (*AuthenticateResponse) XXX_Marshal added in v1.7.12

func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticateResponse) XXX_Merge added in v1.7.12

func (m *AuthenticateResponse) XXX_Merge(src proto.Message)

func (*AuthenticateResponse) XXX_Size added in v1.7.12

func (m *AuthenticateResponse) XXX_Size() int

func (*AuthenticateResponse) XXX_Unmarshal added in v1.7.12

func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error

type AuthorizeRequest

type AuthorizeRequest struct {
	// repo is the object that the caller wants to access
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// scope is the access level that the caller needs to perform an action
	Scope                Scope    `protobuf:"varint,2,opt,name=scope,proto3,enum=auth.Scope" json:"scope,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthorizeRequest) Descriptor

func (*AuthorizeRequest) Descriptor() ([]byte, []int)

func (*AuthorizeRequest) GetRepo

func (m *AuthorizeRequest) GetRepo() string

func (*AuthorizeRequest) GetScope

func (m *AuthorizeRequest) GetScope() Scope

func (*AuthorizeRequest) Marshal

func (m *AuthorizeRequest) Marshal() (dAtA []byte, err error)

func (*AuthorizeRequest) MarshalTo

func (m *AuthorizeRequest) MarshalTo(dAtA []byte) (int, 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

func (*AuthorizeRequest) XXX_DiscardUnknown added in v1.7.12

func (m *AuthorizeRequest) XXX_DiscardUnknown()

func (*AuthorizeRequest) XXX_Marshal added in v1.7.12

func (m *AuthorizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeRequest) XXX_Merge added in v1.7.12

func (m *AuthorizeRequest) XXX_Merge(src proto.Message)

func (*AuthorizeRequest) XXX_Size added in v1.7.12

func (m *AuthorizeRequest) XXX_Size() int

func (*AuthorizeRequest) XXX_Unmarshal added in v1.7.12

func (m *AuthorizeRequest) XXX_Unmarshal(b []byte) error

type AuthorizeResponse

type AuthorizeResponse struct {
	// authorized is true if the caller has at least
	// 'AuthorizeRequest.scope'-level access to 'AuthorizeRequest.repo', and false
	// otherwise
	Authorized           bool     `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*AuthorizeResponse) XXX_DiscardUnknown added in v1.7.12

func (m *AuthorizeResponse) XXX_DiscardUnknown()

func (*AuthorizeResponse) XXX_Marshal added in v1.7.12

func (m *AuthorizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeResponse) XXX_Merge added in v1.7.12

func (m *AuthorizeResponse) XXX_Merge(src proto.Message)

func (*AuthorizeResponse) XXX_Size added in v1.7.12

func (m *AuthorizeResponse) XXX_Size() int

func (*AuthorizeResponse) XXX_Unmarshal added in v1.7.12

func (m *AuthorizeResponse) XXX_Unmarshal(b []byte) error

type DeactivateRequest added in v1.6.0

type DeactivateRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeactivateRequest) Descriptor added in v1.6.0

func (*DeactivateRequest) Descriptor() ([]byte, []int)

func (*DeactivateRequest) Marshal added in v1.6.0

func (m *DeactivateRequest) Marshal() (dAtA []byte, err error)

func (*DeactivateRequest) MarshalTo added in v1.6.0

func (m *DeactivateRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeactivateRequest) ProtoMessage added in v1.6.0

func (*DeactivateRequest) ProtoMessage()

func (*DeactivateRequest) Reset added in v1.6.0

func (m *DeactivateRequest) Reset()

func (*DeactivateRequest) Size added in v1.6.0

func (m *DeactivateRequest) Size() (n int)

func (*DeactivateRequest) String added in v1.6.0

func (m *DeactivateRequest) String() string

func (*DeactivateRequest) Unmarshal added in v1.6.0

func (m *DeactivateRequest) Unmarshal(dAtA []byte) error

func (*DeactivateRequest) XXX_DiscardUnknown added in v1.7.12

func (m *DeactivateRequest) XXX_DiscardUnknown()

func (*DeactivateRequest) XXX_Marshal added in v1.7.12

func (m *DeactivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeactivateRequest) XXX_Merge added in v1.7.12

func (m *DeactivateRequest) XXX_Merge(src proto.Message)

func (*DeactivateRequest) XXX_Size added in v1.7.12

func (m *DeactivateRequest) XXX_Size() int

func (*DeactivateRequest) XXX_Unmarshal added in v1.7.12

func (m *DeactivateRequest) XXX_Unmarshal(b []byte) error

type DeactivateResponse added in v1.6.0

type DeactivateResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeactivateResponse) Descriptor added in v1.6.0

func (*DeactivateResponse) Descriptor() ([]byte, []int)

func (*DeactivateResponse) Marshal added in v1.6.0

func (m *DeactivateResponse) Marshal() (dAtA []byte, err error)

func (*DeactivateResponse) MarshalTo added in v1.6.0

func (m *DeactivateResponse) MarshalTo(dAtA []byte) (int, error)

func (*DeactivateResponse) ProtoMessage added in v1.6.0

func (*DeactivateResponse) ProtoMessage()

func (*DeactivateResponse) Reset added in v1.6.0

func (m *DeactivateResponse) Reset()

func (*DeactivateResponse) Size added in v1.6.0

func (m *DeactivateResponse) Size() (n int)

func (*DeactivateResponse) String added in v1.6.0

func (m *DeactivateResponse) String() string

func (*DeactivateResponse) Unmarshal added in v1.6.0

func (m *DeactivateResponse) Unmarshal(dAtA []byte) error

func (*DeactivateResponse) XXX_DiscardUnknown added in v1.7.12

func (m *DeactivateResponse) XXX_DiscardUnknown()

func (*DeactivateResponse) XXX_Marshal added in v1.7.12

func (m *DeactivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeactivateResponse) XXX_Merge added in v1.7.12

func (m *DeactivateResponse) XXX_Merge(src proto.Message)

func (*DeactivateResponse) XXX_Size added in v1.7.12

func (m *DeactivateResponse) XXX_Size() int

func (*DeactivateResponse) XXX_Unmarshal added in v1.7.12

func (m *DeactivateResponse) XXX_Unmarshal(b []byte) error

type ErrInvalidPrincipal added in v1.7.0

type ErrInvalidPrincipal struct {
	Principal string
}

ErrInvalidPrincipal indicates that a an argument to e.g. GetScope, SetScope, or SetACL is invalid

func (*ErrInvalidPrincipal) Error added in v1.7.0

func (e *ErrInvalidPrincipal) Error() string

type ErrNotAuthorized added in v1.7.0

type ErrNotAuthorized struct {
	Subject string // subject trying to perform blocked operation -- always set

	Repo     string // Repo that the user is attempting to access
	Required Scope  // Caller needs 'Required'-level access to 'Repo'

	// Group 2:
	// AdminOp indicates an operation that the caller couldn't perform because
	// they're not an admin
	AdminOp string
}

ErrNotAuthorized is returned if the user is not authorized to perform a certain operation. Either

  1. the operation is a user operation, in which case 'Repo' and/or 'Required' should be set (indicating that the user needs 'Required'-level access to 'Repo').
  2. the operation is an admin-only operation (e.g. DeleteAll), in which case AdminOp should be set

func (*ErrNotAuthorized) Error added in v1.7.0

func (e *ErrNotAuthorized) Error() string

type ErrTooShortTTL added in v1.7.0

type ErrTooShortTTL struct {
	RequestTTL, ExistingTTL int64
}

ErrTooShortTTL is returned by the ExtendAuthToken if request.Token already has a TTL longer than request.TTL.

func (ErrTooShortTTL) Error added in v1.7.0

func (e ErrTooShortTTL) Error() string

type ExtendAuthTokenRequest added in v1.7.0

type ExtendAuthTokenRequest struct {
	// token indicates the Pachyderm token whose TTL is being extended
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// ttl indicates the new TTL of 'token' (if it's longer than the existing TTL)
	TTL                  int64    `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExtendAuthTokenRequest) Descriptor added in v1.7.0

func (*ExtendAuthTokenRequest) Descriptor() ([]byte, []int)

func (*ExtendAuthTokenRequest) GetTTL added in v1.7.0

func (m *ExtendAuthTokenRequest) GetTTL() int64

func (*ExtendAuthTokenRequest) GetToken added in v1.7.0

func (m *ExtendAuthTokenRequest) GetToken() string

func (*ExtendAuthTokenRequest) Marshal added in v1.7.0

func (m *ExtendAuthTokenRequest) Marshal() (dAtA []byte, err error)

func (*ExtendAuthTokenRequest) MarshalTo added in v1.7.0

func (m *ExtendAuthTokenRequest) MarshalTo(dAtA []byte) (int, error)

func (*ExtendAuthTokenRequest) ProtoMessage added in v1.7.0

func (*ExtendAuthTokenRequest) ProtoMessage()

func (*ExtendAuthTokenRequest) Reset added in v1.7.0

func (m *ExtendAuthTokenRequest) Reset()

func (*ExtendAuthTokenRequest) Size added in v1.7.0

func (m *ExtendAuthTokenRequest) Size() (n int)

func (*ExtendAuthTokenRequest) String added in v1.7.0

func (m *ExtendAuthTokenRequest) String() string

func (*ExtendAuthTokenRequest) Unmarshal added in v1.7.0

func (m *ExtendAuthTokenRequest) Unmarshal(dAtA []byte) error

func (*ExtendAuthTokenRequest) XXX_DiscardUnknown added in v1.7.12

func (m *ExtendAuthTokenRequest) XXX_DiscardUnknown()

func (*ExtendAuthTokenRequest) XXX_Marshal added in v1.7.12

func (m *ExtendAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtendAuthTokenRequest) XXX_Merge added in v1.7.12

func (m *ExtendAuthTokenRequest) XXX_Merge(src proto.Message)

func (*ExtendAuthTokenRequest) XXX_Size added in v1.7.12

func (m *ExtendAuthTokenRequest) XXX_Size() int

func (*ExtendAuthTokenRequest) XXX_Unmarshal added in v1.7.12

func (m *ExtendAuthTokenRequest) XXX_Unmarshal(b []byte) error

type ExtendAuthTokenResponse added in v1.7.0

type ExtendAuthTokenResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExtendAuthTokenResponse) Descriptor added in v1.7.0

func (*ExtendAuthTokenResponse) Descriptor() ([]byte, []int)

func (*ExtendAuthTokenResponse) Marshal added in v1.7.0

func (m *ExtendAuthTokenResponse) Marshal() (dAtA []byte, err error)

func (*ExtendAuthTokenResponse) MarshalTo added in v1.7.0

func (m *ExtendAuthTokenResponse) MarshalTo(dAtA []byte) (int, error)

func (*ExtendAuthTokenResponse) ProtoMessage added in v1.7.0

func (*ExtendAuthTokenResponse) ProtoMessage()

func (*ExtendAuthTokenResponse) Reset added in v1.7.0

func (m *ExtendAuthTokenResponse) Reset()

func (*ExtendAuthTokenResponse) Size added in v1.7.0

func (m *ExtendAuthTokenResponse) Size() (n int)

func (*ExtendAuthTokenResponse) String added in v1.7.0

func (m *ExtendAuthTokenResponse) String() string

func (*ExtendAuthTokenResponse) Unmarshal added in v1.7.0

func (m *ExtendAuthTokenResponse) Unmarshal(dAtA []byte) error

func (*ExtendAuthTokenResponse) XXX_DiscardUnknown added in v1.7.12

func (m *ExtendAuthTokenResponse) XXX_DiscardUnknown()

func (*ExtendAuthTokenResponse) XXX_Marshal added in v1.7.12

func (m *ExtendAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtendAuthTokenResponse) XXX_Merge added in v1.7.12

func (m *ExtendAuthTokenResponse) XXX_Merge(src proto.Message)

func (*ExtendAuthTokenResponse) XXX_Size added in v1.7.12

func (m *ExtendAuthTokenResponse) XXX_Size() int

func (*ExtendAuthTokenResponse) XXX_Unmarshal added in v1.7.12

func (m *ExtendAuthTokenResponse) XXX_Unmarshal(b []byte) error

type GetACLRequest

type GetACLRequest struct {
	Repo                 string   `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetACLRequest) Descriptor

func (*GetACLRequest) Descriptor() ([]byte, []int)

func (*GetACLRequest) GetRepo

func (m *GetACLRequest) GetRepo() string

func (*GetACLRequest) Marshal

func (m *GetACLRequest) Marshal() (dAtA []byte, err error)

func (*GetACLRequest) MarshalTo

func (m *GetACLRequest) MarshalTo(dAtA []byte) (int, 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

func (*GetACLRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetACLRequest) XXX_DiscardUnknown()

func (*GetACLRequest) XXX_Marshal added in v1.7.12

func (m *GetACLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetACLRequest) XXX_Merge added in v1.7.12

func (m *GetACLRequest) XXX_Merge(src proto.Message)

func (*GetACLRequest) XXX_Size added in v1.7.12

func (m *GetACLRequest) XXX_Size() int

func (*GetACLRequest) XXX_Unmarshal added in v1.7.12

func (m *GetACLRequest) XXX_Unmarshal(b []byte) error

type GetACLResponse

type GetACLResponse struct {
	// entries contains all [user principal] -> [role] mappings. This is separate
	// from robot_entries to avoid migration pain the Pachyderm dashboard
	Entries []*ACLEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// robot_entries contains all [robot principal] -> [role] mappings. This is
	// separate from entries to be unambiguous (all keys are robot principals, but
	// have no prefixes) while avoiding migration pain in the Pachyderm dashboard.
	RobotEntries         []*ACLEntry `protobuf:"bytes,2,rep,name=robot_entries,json=robotEntries,proto3" json:"robot_entries,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

GetACLReponse contains the list of entries on a Pachyderm ACL.

To avoid migration pain with the Pachyderm dash the list of user principal entries and robot principal entries are separate. This way, no prefix or other disambiguating device is needed in 'entries' to separate user principals from robot principals (which would confuse the dash). Instead, the dash can simply ignore robot principals.

func (*GetACLResponse) Descriptor

func (*GetACLResponse) Descriptor() ([]byte, []int)

func (*GetACLResponse) GetEntries added in v1.6.0

func (m *GetACLResponse) GetEntries() []*ACLEntry

func (*GetACLResponse) GetRobotEntries added in v1.7.0

func (m *GetACLResponse) GetRobotEntries() []*ACLEntry

func (*GetACLResponse) Marshal

func (m *GetACLResponse) Marshal() (dAtA []byte, err error)

func (*GetACLResponse) MarshalTo

func (m *GetACLResponse) MarshalTo(dAtA []byte) (int, 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

func (*GetACLResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetACLResponse) XXX_DiscardUnknown()

func (*GetACLResponse) XXX_Marshal added in v1.7.12

func (m *GetACLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetACLResponse) XXX_Merge added in v1.7.12

func (m *GetACLResponse) XXX_Merge(src proto.Message)

func (*GetACLResponse) XXX_Size added in v1.7.12

func (m *GetACLResponse) XXX_Size() int

func (*GetACLResponse) XXX_Unmarshal added in v1.7.12

func (m *GetACLResponse) XXX_Unmarshal(b []byte) error

type GetAdminsRequest added in v1.6.0

type GetAdminsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get the current list of cluster admins

func (*GetAdminsRequest) Descriptor added in v1.6.0

func (*GetAdminsRequest) Descriptor() ([]byte, []int)

func (*GetAdminsRequest) Marshal added in v1.6.0

func (m *GetAdminsRequest) Marshal() (dAtA []byte, err error)

func (*GetAdminsRequest) MarshalTo added in v1.6.0

func (m *GetAdminsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetAdminsRequest) ProtoMessage added in v1.6.0

func (*GetAdminsRequest) ProtoMessage()

func (*GetAdminsRequest) Reset added in v1.6.0

func (m *GetAdminsRequest) Reset()

func (*GetAdminsRequest) Size added in v1.6.0

func (m *GetAdminsRequest) Size() (n int)

func (*GetAdminsRequest) String added in v1.6.0

func (m *GetAdminsRequest) String() string

func (*GetAdminsRequest) Unmarshal added in v1.6.0

func (m *GetAdminsRequest) Unmarshal(dAtA []byte) error

func (*GetAdminsRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetAdminsRequest) XXX_DiscardUnknown()

func (*GetAdminsRequest) XXX_Marshal added in v1.7.12

func (m *GetAdminsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAdminsRequest) XXX_Merge added in v1.7.12

func (m *GetAdminsRequest) XXX_Merge(src proto.Message)

func (*GetAdminsRequest) XXX_Size added in v1.7.12

func (m *GetAdminsRequest) XXX_Size() int

func (*GetAdminsRequest) XXX_Unmarshal added in v1.7.12

func (m *GetAdminsRequest) XXX_Unmarshal(b []byte) error

type GetAdminsResponse added in v1.6.0

type GetAdminsResponse struct {
	// admins contains the list of cluster admins
	Admins               []string `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAdminsResponse) Descriptor added in v1.6.0

func (*GetAdminsResponse) Descriptor() ([]byte, []int)

func (*GetAdminsResponse) GetAdmins added in v1.6.0

func (m *GetAdminsResponse) GetAdmins() []string

func (*GetAdminsResponse) Marshal added in v1.6.0

func (m *GetAdminsResponse) Marshal() (dAtA []byte, err error)

func (*GetAdminsResponse) MarshalTo added in v1.6.0

func (m *GetAdminsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetAdminsResponse) ProtoMessage added in v1.6.0

func (*GetAdminsResponse) ProtoMessage()

func (*GetAdminsResponse) Reset added in v1.6.0

func (m *GetAdminsResponse) Reset()

func (*GetAdminsResponse) Size added in v1.6.0

func (m *GetAdminsResponse) Size() (n int)

func (*GetAdminsResponse) String added in v1.6.0

func (m *GetAdminsResponse) String() string

func (*GetAdminsResponse) Unmarshal added in v1.6.0

func (m *GetAdminsResponse) Unmarshal(dAtA []byte) error

func (*GetAdminsResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetAdminsResponse) XXX_DiscardUnknown()

func (*GetAdminsResponse) XXX_Marshal added in v1.7.12

func (m *GetAdminsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAdminsResponse) XXX_Merge added in v1.7.12

func (m *GetAdminsResponse) XXX_Merge(src proto.Message)

func (*GetAdminsResponse) XXX_Size added in v1.7.12

func (m *GetAdminsResponse) XXX_Size() int

func (*GetAdminsResponse) XXX_Unmarshal added in v1.7.12

func (m *GetAdminsResponse) XXX_Unmarshal(b []byte) error

type GetAuthTokenRequest added in v1.7.0

type GetAuthTokenRequest struct {
	// The returned token will allow the caller to access resources as this
	// subject
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// ttl indicates the approximate remaining lifetime of this token, in seconds
	TTL                  int64    `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAuthTokenRequest) Descriptor added in v1.7.0

func (*GetAuthTokenRequest) Descriptor() ([]byte, []int)

func (*GetAuthTokenRequest) GetSubject added in v1.7.0

func (m *GetAuthTokenRequest) GetSubject() string

func (*GetAuthTokenRequest) GetTTL added in v1.7.0

func (m *GetAuthTokenRequest) GetTTL() int64

func (*GetAuthTokenRequest) Marshal added in v1.7.0

func (m *GetAuthTokenRequest) Marshal() (dAtA []byte, err error)

func (*GetAuthTokenRequest) MarshalTo added in v1.7.0

func (m *GetAuthTokenRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetAuthTokenRequest) ProtoMessage added in v1.7.0

func (*GetAuthTokenRequest) ProtoMessage()

func (*GetAuthTokenRequest) Reset added in v1.7.0

func (m *GetAuthTokenRequest) Reset()

func (*GetAuthTokenRequest) Size added in v1.7.0

func (m *GetAuthTokenRequest) Size() (n int)

func (*GetAuthTokenRequest) String added in v1.7.0

func (m *GetAuthTokenRequest) String() string

func (*GetAuthTokenRequest) Unmarshal added in v1.7.0

func (m *GetAuthTokenRequest) Unmarshal(dAtA []byte) error

func (*GetAuthTokenRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetAuthTokenRequest) XXX_DiscardUnknown()

func (*GetAuthTokenRequest) XXX_Marshal added in v1.7.12

func (m *GetAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAuthTokenRequest) XXX_Merge added in v1.7.12

func (m *GetAuthTokenRequest) XXX_Merge(src proto.Message)

func (*GetAuthTokenRequest) XXX_Size added in v1.7.12

func (m *GetAuthTokenRequest) XXX_Size() int

func (*GetAuthTokenRequest) XXX_Unmarshal added in v1.7.12

func (m *GetAuthTokenRequest) XXX_Unmarshal(b []byte) error

type GetAuthTokenResponse added in v1.7.0

type GetAuthTokenResponse struct {
	// A canonicalized version of the subject in the request
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// A new auth token for the user in 'GetAuthTokenRequest.Subject' token
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAuthTokenResponse) Descriptor added in v1.7.0

func (*GetAuthTokenResponse) Descriptor() ([]byte, []int)

func (*GetAuthTokenResponse) GetSubject added in v1.7.1

func (m *GetAuthTokenResponse) GetSubject() string

func (*GetAuthTokenResponse) GetToken added in v1.7.0

func (m *GetAuthTokenResponse) GetToken() string

func (*GetAuthTokenResponse) Marshal added in v1.7.0

func (m *GetAuthTokenResponse) Marshal() (dAtA []byte, err error)

func (*GetAuthTokenResponse) MarshalTo added in v1.7.0

func (m *GetAuthTokenResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetAuthTokenResponse) ProtoMessage added in v1.7.0

func (*GetAuthTokenResponse) ProtoMessage()

func (*GetAuthTokenResponse) Reset added in v1.7.0

func (m *GetAuthTokenResponse) Reset()

func (*GetAuthTokenResponse) Size added in v1.7.0

func (m *GetAuthTokenResponse) Size() (n int)

func (*GetAuthTokenResponse) String added in v1.7.0

func (m *GetAuthTokenResponse) String() string

func (*GetAuthTokenResponse) Unmarshal added in v1.7.0

func (m *GetAuthTokenResponse) Unmarshal(dAtA []byte) error

func (*GetAuthTokenResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetAuthTokenResponse) XXX_DiscardUnknown()

func (*GetAuthTokenResponse) XXX_Marshal added in v1.7.12

func (m *GetAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAuthTokenResponse) XXX_Merge added in v1.7.12

func (m *GetAuthTokenResponse) XXX_Merge(src proto.Message)

func (*GetAuthTokenResponse) XXX_Size added in v1.7.12

func (m *GetAuthTokenResponse) XXX_Size() int

func (*GetAuthTokenResponse) XXX_Unmarshal added in v1.7.12

func (m *GetAuthTokenResponse) XXX_Unmarshal(b []byte) error

type GetConfigurationRequest added in v1.7.7

type GetConfigurationRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetConfigurationRequest) Descriptor added in v1.7.7

func (*GetConfigurationRequest) Descriptor() ([]byte, []int)

func (*GetConfigurationRequest) Marshal added in v1.7.7

func (m *GetConfigurationRequest) Marshal() (dAtA []byte, err error)

func (*GetConfigurationRequest) MarshalTo added in v1.7.7

func (m *GetConfigurationRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetConfigurationRequest) ProtoMessage added in v1.7.7

func (*GetConfigurationRequest) ProtoMessage()

func (*GetConfigurationRequest) Reset added in v1.7.7

func (m *GetConfigurationRequest) Reset()

func (*GetConfigurationRequest) Size added in v1.7.7

func (m *GetConfigurationRequest) Size() (n int)

func (*GetConfigurationRequest) String added in v1.7.7

func (m *GetConfigurationRequest) String() string

func (*GetConfigurationRequest) Unmarshal added in v1.7.7

func (m *GetConfigurationRequest) Unmarshal(dAtA []byte) error

func (*GetConfigurationRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetConfigurationRequest) XXX_DiscardUnknown()

func (*GetConfigurationRequest) XXX_Marshal added in v1.7.12

func (m *GetConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetConfigurationRequest) XXX_Merge added in v1.7.12

func (m *GetConfigurationRequest) XXX_Merge(src proto.Message)

func (*GetConfigurationRequest) XXX_Size added in v1.7.12

func (m *GetConfigurationRequest) XXX_Size() int

func (*GetConfigurationRequest) XXX_Unmarshal added in v1.7.12

func (m *GetConfigurationRequest) XXX_Unmarshal(b []byte) error

type GetConfigurationResponse added in v1.7.7

type GetConfigurationResponse struct {
	Configuration        *AuthConfig `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetConfigurationResponse) Descriptor added in v1.7.7

func (*GetConfigurationResponse) Descriptor() ([]byte, []int)

func (*GetConfigurationResponse) GetConfiguration added in v1.7.7

func (m *GetConfigurationResponse) GetConfiguration() *AuthConfig

func (*GetConfigurationResponse) Marshal added in v1.7.7

func (m *GetConfigurationResponse) Marshal() (dAtA []byte, err error)

func (*GetConfigurationResponse) MarshalTo added in v1.7.7

func (m *GetConfigurationResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetConfigurationResponse) ProtoMessage added in v1.7.7

func (*GetConfigurationResponse) ProtoMessage()

func (*GetConfigurationResponse) Reset added in v1.7.7

func (m *GetConfigurationResponse) Reset()

func (*GetConfigurationResponse) Size added in v1.7.7

func (m *GetConfigurationResponse) Size() (n int)

func (*GetConfigurationResponse) String added in v1.7.7

func (m *GetConfigurationResponse) String() string

func (*GetConfigurationResponse) Unmarshal added in v1.7.7

func (m *GetConfigurationResponse) Unmarshal(dAtA []byte) error

func (*GetConfigurationResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetConfigurationResponse) XXX_DiscardUnknown()

func (*GetConfigurationResponse) XXX_Marshal added in v1.7.12

func (m *GetConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetConfigurationResponse) XXX_Merge added in v1.7.12

func (m *GetConfigurationResponse) XXX_Merge(src proto.Message)

func (*GetConfigurationResponse) XXX_Size added in v1.7.12

func (m *GetConfigurationResponse) XXX_Size() int

func (*GetConfigurationResponse) XXX_Unmarshal added in v1.7.12

func (m *GetConfigurationResponse) XXX_Unmarshal(b []byte) error

type GetGroupsRequest added in v1.7.2

type GetGroupsRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetGroupsRequest) Descriptor added in v1.7.2

func (*GetGroupsRequest) Descriptor() ([]byte, []int)

func (*GetGroupsRequest) GetUsername added in v1.7.2

func (m *GetGroupsRequest) GetUsername() string

func (*GetGroupsRequest) Marshal added in v1.7.2

func (m *GetGroupsRequest) Marshal() (dAtA []byte, err error)

func (*GetGroupsRequest) MarshalTo added in v1.7.2

func (m *GetGroupsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetGroupsRequest) ProtoMessage added in v1.7.2

func (*GetGroupsRequest) ProtoMessage()

func (*GetGroupsRequest) Reset added in v1.7.2

func (m *GetGroupsRequest) Reset()

func (*GetGroupsRequest) Size added in v1.7.2

func (m *GetGroupsRequest) Size() (n int)

func (*GetGroupsRequest) String added in v1.7.2

func (m *GetGroupsRequest) String() string

func (*GetGroupsRequest) Unmarshal added in v1.7.2

func (m *GetGroupsRequest) Unmarshal(dAtA []byte) error

func (*GetGroupsRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetGroupsRequest) XXX_DiscardUnknown()

func (*GetGroupsRequest) XXX_Marshal added in v1.7.12

func (m *GetGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetGroupsRequest) XXX_Merge added in v1.7.12

func (m *GetGroupsRequest) XXX_Merge(src proto.Message)

func (*GetGroupsRequest) XXX_Size added in v1.7.12

func (m *GetGroupsRequest) XXX_Size() int

func (*GetGroupsRequest) XXX_Unmarshal added in v1.7.12

func (m *GetGroupsRequest) XXX_Unmarshal(b []byte) error

type GetGroupsResponse added in v1.7.2

type GetGroupsResponse struct {
	Groups               []string `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetGroupsResponse) Descriptor added in v1.7.2

func (*GetGroupsResponse) Descriptor() ([]byte, []int)

func (*GetGroupsResponse) GetGroups added in v1.7.2

func (m *GetGroupsResponse) GetGroups() []string

func (*GetGroupsResponse) Marshal added in v1.7.2

func (m *GetGroupsResponse) Marshal() (dAtA []byte, err error)

func (*GetGroupsResponse) MarshalTo added in v1.7.2

func (m *GetGroupsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetGroupsResponse) ProtoMessage added in v1.7.2

func (*GetGroupsResponse) ProtoMessage()

func (*GetGroupsResponse) Reset added in v1.7.2

func (m *GetGroupsResponse) Reset()

func (*GetGroupsResponse) Size added in v1.7.2

func (m *GetGroupsResponse) Size() (n int)

func (*GetGroupsResponse) String added in v1.7.2

func (m *GetGroupsResponse) String() string

func (*GetGroupsResponse) Unmarshal added in v1.7.2

func (m *GetGroupsResponse) Unmarshal(dAtA []byte) error

func (*GetGroupsResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetGroupsResponse) XXX_DiscardUnknown()

func (*GetGroupsResponse) XXX_Marshal added in v1.7.12

func (m *GetGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetGroupsResponse) XXX_Merge added in v1.7.12

func (m *GetGroupsResponse) XXX_Merge(src proto.Message)

func (*GetGroupsResponse) XXX_Size added in v1.7.12

func (m *GetGroupsResponse) XXX_Size() int

func (*GetGroupsResponse) XXX_Unmarshal added in v1.7.12

func (m *GetGroupsResponse) XXX_Unmarshal(b []byte) error

type GetOneTimePasswordRequest added in v1.7.11

type GetOneTimePasswordRequest struct {
	// If the caller is an admin, GetOneTimePassword() can return a code for
	// any user (useful for testing).
	// If the caller is not an admin, GetOneTimePassword() will return an
	// authentication code for the caller if username is unset or set to the
	// caller's username (and will return an error otherwise)
	Subject              string   `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetOneTimePassword allows users to generate short-lived (~30s) tokens that can be passed to Authenticate() (via AuthenticateRequest.one_time_password) and exchanged for a longer-lived pachyderm token. This is more secure than GetAuthToken, which produces long-lived authorization tokens.

func (*GetOneTimePasswordRequest) Descriptor added in v1.7.11

func (*GetOneTimePasswordRequest) Descriptor() ([]byte, []int)

func (*GetOneTimePasswordRequest) GetSubject added in v1.7.11

func (m *GetOneTimePasswordRequest) GetSubject() string

func (*GetOneTimePasswordRequest) Marshal added in v1.7.11

func (m *GetOneTimePasswordRequest) Marshal() (dAtA []byte, err error)

func (*GetOneTimePasswordRequest) MarshalTo added in v1.7.11

func (m *GetOneTimePasswordRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetOneTimePasswordRequest) ProtoMessage added in v1.7.11

func (*GetOneTimePasswordRequest) ProtoMessage()

func (*GetOneTimePasswordRequest) Reset added in v1.7.11

func (m *GetOneTimePasswordRequest) Reset()

func (*GetOneTimePasswordRequest) Size added in v1.7.11

func (m *GetOneTimePasswordRequest) Size() (n int)

func (*GetOneTimePasswordRequest) String added in v1.7.11

func (m *GetOneTimePasswordRequest) String() string

func (*GetOneTimePasswordRequest) Unmarshal added in v1.7.11

func (m *GetOneTimePasswordRequest) Unmarshal(dAtA []byte) error

func (*GetOneTimePasswordRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetOneTimePasswordRequest) XXX_DiscardUnknown()

func (*GetOneTimePasswordRequest) XXX_Marshal added in v1.7.12

func (m *GetOneTimePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetOneTimePasswordRequest) XXX_Merge added in v1.7.12

func (m *GetOneTimePasswordRequest) XXX_Merge(src proto.Message)

func (*GetOneTimePasswordRequest) XXX_Size added in v1.7.12

func (m *GetOneTimePasswordRequest) XXX_Size() int

func (*GetOneTimePasswordRequest) XXX_Unmarshal added in v1.7.12

func (m *GetOneTimePasswordRequest) XXX_Unmarshal(b []byte) error

type GetOneTimePasswordResponse added in v1.7.11

type GetOneTimePasswordResponse struct {
	Code                 string   `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetOneTimePasswordResponse) Descriptor added in v1.7.11

func (*GetOneTimePasswordResponse) Descriptor() ([]byte, []int)

func (*GetOneTimePasswordResponse) GetCode added in v1.7.11

func (m *GetOneTimePasswordResponse) GetCode() string

func (*GetOneTimePasswordResponse) Marshal added in v1.7.11

func (m *GetOneTimePasswordResponse) Marshal() (dAtA []byte, err error)

func (*GetOneTimePasswordResponse) MarshalTo added in v1.7.11

func (m *GetOneTimePasswordResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetOneTimePasswordResponse) ProtoMessage added in v1.7.11

func (*GetOneTimePasswordResponse) ProtoMessage()

func (*GetOneTimePasswordResponse) Reset added in v1.7.11

func (m *GetOneTimePasswordResponse) Reset()

func (*GetOneTimePasswordResponse) Size added in v1.7.11

func (m *GetOneTimePasswordResponse) Size() (n int)

func (*GetOneTimePasswordResponse) String added in v1.7.11

func (m *GetOneTimePasswordResponse) String() string

func (*GetOneTimePasswordResponse) Unmarshal added in v1.7.11

func (m *GetOneTimePasswordResponse) Unmarshal(dAtA []byte) error

func (*GetOneTimePasswordResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetOneTimePasswordResponse) XXX_DiscardUnknown()

func (*GetOneTimePasswordResponse) XXX_Marshal added in v1.7.12

func (m *GetOneTimePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetOneTimePasswordResponse) XXX_Merge added in v1.7.12

func (m *GetOneTimePasswordResponse) XXX_Merge(src proto.Message)

func (*GetOneTimePasswordResponse) XXX_Size added in v1.7.12

func (m *GetOneTimePasswordResponse) XXX_Size() int

func (*GetOneTimePasswordResponse) XXX_Unmarshal added in v1.7.12

func (m *GetOneTimePasswordResponse) XXX_Unmarshal(b []byte) error

type GetScopeRequest

type GetScopeRequest struct {
	// username is the principal (some of which belong to robots rather than
	// users, but the name is preserved for now to provide compatibility with the
	// pachyderm dash) whose access level is queried. To query the access level
	// of a robot user, the caller must prefix username with "robot:". If
	// 'username' has no prefix (i.e. no ":"), then it's assumed to be a github
	// user's principal.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// repos are the objects to which 'username's access level is being queried
	Repos                []string `protobuf:"bytes,2,rep,name=repos,proto3" json:"repos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetScopeRequest) Descriptor

func (*GetScopeRequest) Descriptor() ([]byte, []int)

func (*GetScopeRequest) GetRepos added in v1.5.3

func (m *GetScopeRequest) GetRepos() []string

func (*GetScopeRequest) GetUsername

func (m *GetScopeRequest) GetUsername() string

func (*GetScopeRequest) Marshal

func (m *GetScopeRequest) Marshal() (dAtA []byte, err error)

func (*GetScopeRequest) MarshalTo

func (m *GetScopeRequest) MarshalTo(dAtA []byte) (int, 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

func (*GetScopeRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetScopeRequest) XXX_DiscardUnknown()

func (*GetScopeRequest) XXX_Marshal added in v1.7.12

func (m *GetScopeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetScopeRequest) XXX_Merge added in v1.7.12

func (m *GetScopeRequest) XXX_Merge(src proto.Message)

func (*GetScopeRequest) XXX_Size added in v1.7.12

func (m *GetScopeRequest) XXX_Size() int

func (*GetScopeRequest) XXX_Unmarshal added in v1.7.12

func (m *GetScopeRequest) XXX_Unmarshal(b []byte) error

type GetScopeResponse

type GetScopeResponse struct {
	// scopes (actually a "role"--see "Scope") are the access level that
	// 'GetScopeRequest.username' has to each repo in 'GetScopeRequest.repos', in
	// the same order that repos appeared in 'repos'.
	Scopes               []Scope  `protobuf:"varint,1,rep,packed,name=scopes,proto3,enum=auth.Scope" json:"scopes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetScopeResponse) Descriptor

func (*GetScopeResponse) Descriptor() ([]byte, []int)

func (*GetScopeResponse) GetScopes added in v1.5.3

func (m *GetScopeResponse) GetScopes() []Scope

func (*GetScopeResponse) Marshal

func (m *GetScopeResponse) Marshal() (dAtA []byte, err error)

func (*GetScopeResponse) MarshalTo

func (m *GetScopeResponse) MarshalTo(dAtA []byte) (int, 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

func (*GetScopeResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetScopeResponse) XXX_DiscardUnknown()

func (*GetScopeResponse) XXX_Marshal added in v1.7.12

func (m *GetScopeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetScopeResponse) XXX_Merge added in v1.7.12

func (m *GetScopeResponse) XXX_Merge(src proto.Message)

func (*GetScopeResponse) XXX_Size added in v1.7.12

func (m *GetScopeResponse) XXX_Size() int

func (*GetScopeResponse) XXX_Unmarshal added in v1.7.12

func (m *GetScopeResponse) XXX_Unmarshal(b []byte) error

type GetUsersRequest added in v1.7.2

type GetUsersRequest struct {
	Group                string   `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUsersRequest) Descriptor added in v1.7.2

func (*GetUsersRequest) Descriptor() ([]byte, []int)

func (*GetUsersRequest) GetGroup added in v1.7.2

func (m *GetUsersRequest) GetGroup() string

func (*GetUsersRequest) Marshal added in v1.7.2

func (m *GetUsersRequest) Marshal() (dAtA []byte, err error)

func (*GetUsersRequest) MarshalTo added in v1.7.2

func (m *GetUsersRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetUsersRequest) ProtoMessage added in v1.7.2

func (*GetUsersRequest) ProtoMessage()

func (*GetUsersRequest) Reset added in v1.7.2

func (m *GetUsersRequest) Reset()

func (*GetUsersRequest) Size added in v1.7.2

func (m *GetUsersRequest) Size() (n int)

func (*GetUsersRequest) String added in v1.7.2

func (m *GetUsersRequest) String() string

func (*GetUsersRequest) Unmarshal added in v1.7.2

func (m *GetUsersRequest) Unmarshal(dAtA []byte) error

func (*GetUsersRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetUsersRequest) XXX_DiscardUnknown()

func (*GetUsersRequest) XXX_Marshal added in v1.7.12

func (m *GetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUsersRequest) XXX_Merge added in v1.7.12

func (m *GetUsersRequest) XXX_Merge(src proto.Message)

func (*GetUsersRequest) XXX_Size added in v1.7.12

func (m *GetUsersRequest) XXX_Size() int

func (*GetUsersRequest) XXX_Unmarshal added in v1.7.12

func (m *GetUsersRequest) XXX_Unmarshal(b []byte) error

type GetUsersResponse added in v1.7.2

type GetUsersResponse struct {
	Usernames            []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUsersResponse) Descriptor added in v1.7.2

func (*GetUsersResponse) Descriptor() ([]byte, []int)

func (*GetUsersResponse) GetUsernames added in v1.7.2

func (m *GetUsersResponse) GetUsernames() []string

func (*GetUsersResponse) Marshal added in v1.7.2

func (m *GetUsersResponse) Marshal() (dAtA []byte, err error)

func (*GetUsersResponse) MarshalTo added in v1.7.2

func (m *GetUsersResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetUsersResponse) ProtoMessage added in v1.7.2

func (*GetUsersResponse) ProtoMessage()

func (*GetUsersResponse) Reset added in v1.7.2

func (m *GetUsersResponse) Reset()

func (*GetUsersResponse) Size added in v1.7.2

func (m *GetUsersResponse) Size() (n int)

func (*GetUsersResponse) String added in v1.7.2

func (m *GetUsersResponse) String() string

func (*GetUsersResponse) Unmarshal added in v1.7.2

func (m *GetUsersResponse) Unmarshal(dAtA []byte) error

func (*GetUsersResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetUsersResponse) XXX_DiscardUnknown()

func (*GetUsersResponse) XXX_Marshal added in v1.7.12

func (m *GetUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUsersResponse) XXX_Merge added in v1.7.12

func (m *GetUsersResponse) XXX_Merge(src proto.Message)

func (*GetUsersResponse) XXX_Size added in v1.7.12

func (m *GetUsersResponse) XXX_Size() int

func (*GetUsersResponse) XXX_Unmarshal added in v1.7.12

func (m *GetUsersResponse) XXX_Unmarshal(b []byte) error

type Groups added in v1.7.2

type Groups struct {
	Groups               map[string]bool `` /* 154-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Groups) Descriptor added in v1.7.2

func (*Groups) Descriptor() ([]byte, []int)

func (*Groups) GetGroups added in v1.7.2

func (m *Groups) GetGroups() map[string]bool

func (*Groups) Marshal added in v1.7.2

func (m *Groups) Marshal() (dAtA []byte, err error)

func (*Groups) MarshalTo added in v1.7.2

func (m *Groups) MarshalTo(dAtA []byte) (int, error)

func (*Groups) ProtoMessage added in v1.7.2

func (*Groups) ProtoMessage()

func (*Groups) Reset added in v1.7.2

func (m *Groups) Reset()

func (*Groups) Size added in v1.7.2

func (m *Groups) Size() (n int)

func (*Groups) String added in v1.7.2

func (m *Groups) String() string

func (*Groups) Unmarshal added in v1.7.2

func (m *Groups) Unmarshal(dAtA []byte) error

func (*Groups) XXX_DiscardUnknown added in v1.7.12

func (m *Groups) XXX_DiscardUnknown()

func (*Groups) XXX_Marshal added in v1.7.12

func (m *Groups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Groups) XXX_Merge added in v1.7.12

func (m *Groups) XXX_Merge(src proto.Message)

func (*Groups) XXX_Size added in v1.7.12

func (m *Groups) XXX_Size() int

func (*Groups) XXX_Unmarshal added in v1.7.12

func (m *Groups) XXX_Unmarshal(b []byte) error

type IDProvider added in v1.7.7

type IDProvider struct {
	// Name identifies this authentication backend in Pachyderm.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Description is a human-readable description of this authentication
	// backend. It's ignored by Pachyderm, but exists for the benefit of users
	// configuring Pachyderm's auth system.
	Description          string                  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	SAML                 *IDProvider_SAMLOptions `protobuf:"bytes,3,opt,name=saml,proto3" json:"saml,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

IDProvider configures a single ID provider that can authenticate Pachyderm users

func (*IDProvider) Descriptor added in v1.7.7

func (*IDProvider) Descriptor() ([]byte, []int)

func (*IDProvider) GetDescription added in v1.7.7

func (m *IDProvider) GetDescription() string

func (*IDProvider) GetName added in v1.7.7

func (m *IDProvider) GetName() string

func (*IDProvider) GetSAML added in v1.7.7

func (m *IDProvider) GetSAML() *IDProvider_SAMLOptions

func (*IDProvider) Marshal added in v1.7.7

func (m *IDProvider) Marshal() (dAtA []byte, err error)

func (*IDProvider) MarshalTo added in v1.7.7

func (m *IDProvider) MarshalTo(dAtA []byte) (int, error)

func (*IDProvider) ProtoMessage added in v1.7.7

func (*IDProvider) ProtoMessage()

func (*IDProvider) Reset added in v1.7.7

func (m *IDProvider) Reset()

func (*IDProvider) Size added in v1.7.7

func (m *IDProvider) Size() (n int)

func (*IDProvider) String added in v1.7.7

func (m *IDProvider) String() string

func (*IDProvider) Unmarshal added in v1.7.7

func (m *IDProvider) Unmarshal(dAtA []byte) error

func (*IDProvider) XXX_DiscardUnknown added in v1.7.12

func (m *IDProvider) XXX_DiscardUnknown()

func (*IDProvider) XXX_Marshal added in v1.7.12

func (m *IDProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IDProvider) XXX_Merge added in v1.7.12

func (m *IDProvider) XXX_Merge(src proto.Message)

func (*IDProvider) XXX_Size added in v1.7.12

func (m *IDProvider) XXX_Size() int

func (*IDProvider) XXX_Unmarshal added in v1.7.12

func (m *IDProvider) XXX_Unmarshal(b []byte) error

type IDProvider_SAMLOptions added in v1.7.7

type IDProvider_SAMLOptions struct {
	// metadata_url is the URL of the SAML ID provider's metadata service
	// (which Pachd can query to get more info about the SAML ID provider)
	MetadataURL string `protobuf:"bytes,1,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"`
	// metadata_xml is a direct reproduction of the ID provider's metadata.
	// Users can set this field in the argument to SetConfig if the ID provider
	// can't be reached from pachd (e.g. because it's on a separate network to
	// which Pachyderm users also have access) or for testing.  Exactly one of
	// metadata_url and metadata_xml should be set in calls to SetConfig, but
	// internally, if metadata_url is set, the result of scraping the metadata
	// URL will be placed here in the result from GetConfig().
	MetadataXML []byte `protobuf:"bytes,2,opt,name=metadata_xml,json=metadataXml,proto3" json:"metadata_xml,omitempty"`
	// If this ID provider supports sending group memberships via attribute,
	// then users can set group_attribute to the SAML attribute that indicates
	// group mmbership, and Pachyderm will update users' group memberships when
	// they authenticate.
	GroupAttribute       string   `protobuf:"bytes,3,opt,name=group_attribute,json=groupAttribute,proto3" json:"group_attribute,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SAMLOptions describes a SAML-based identity provider

func (*IDProvider_SAMLOptions) Descriptor added in v1.7.7

func (*IDProvider_SAMLOptions) Descriptor() ([]byte, []int)

func (*IDProvider_SAMLOptions) GetGroupAttribute added in v1.7.11

func (m *IDProvider_SAMLOptions) GetGroupAttribute() string

func (*IDProvider_SAMLOptions) GetMetadataURL added in v1.7.7

func (m *IDProvider_SAMLOptions) GetMetadataURL() string

func (*IDProvider_SAMLOptions) GetMetadataXML added in v1.7.11

func (m *IDProvider_SAMLOptions) GetMetadataXML() []byte

func (*IDProvider_SAMLOptions) Marshal added in v1.7.7

func (m *IDProvider_SAMLOptions) Marshal() (dAtA []byte, err error)

func (*IDProvider_SAMLOptions) MarshalTo added in v1.7.7

func (m *IDProvider_SAMLOptions) MarshalTo(dAtA []byte) (int, error)

func (*IDProvider_SAMLOptions) ProtoMessage added in v1.7.7

func (*IDProvider_SAMLOptions) ProtoMessage()

func (*IDProvider_SAMLOptions) Reset added in v1.7.7

func (m *IDProvider_SAMLOptions) Reset()

func (*IDProvider_SAMLOptions) Size added in v1.7.7

func (m *IDProvider_SAMLOptions) Size() (n int)

func (*IDProvider_SAMLOptions) String added in v1.7.7

func (m *IDProvider_SAMLOptions) String() string

func (*IDProvider_SAMLOptions) Unmarshal added in v1.7.7

func (m *IDProvider_SAMLOptions) Unmarshal(dAtA []byte) error

func (*IDProvider_SAMLOptions) XXX_DiscardUnknown added in v1.7.12

func (m *IDProvider_SAMLOptions) XXX_DiscardUnknown()

func (*IDProvider_SAMLOptions) XXX_Marshal added in v1.7.12

func (m *IDProvider_SAMLOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IDProvider_SAMLOptions) XXX_Merge added in v1.7.12

func (m *IDProvider_SAMLOptions) XXX_Merge(src proto.Message)

func (*IDProvider_SAMLOptions) XXX_Size added in v1.7.12

func (m *IDProvider_SAMLOptions) XXX_Size() int

func (*IDProvider_SAMLOptions) XXX_Unmarshal added in v1.7.12

func (m *IDProvider_SAMLOptions) XXX_Unmarshal(b []byte) error

type ModifyAdminsRequest added in v1.6.0

type ModifyAdminsRequest struct {
	Add                  []string `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"`
	Remove               []string `protobuf:"bytes,2,rep,name=remove,proto3" json:"remove,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Add or remove cluster admins

func (*ModifyAdminsRequest) Descriptor added in v1.6.0

func (*ModifyAdminsRequest) Descriptor() ([]byte, []int)

func (*ModifyAdminsRequest) GetAdd added in v1.6.0

func (m *ModifyAdminsRequest) GetAdd() []string

func (*ModifyAdminsRequest) GetRemove added in v1.6.0

func (m *ModifyAdminsRequest) GetRemove() []string

func (*ModifyAdminsRequest) Marshal added in v1.6.0

func (m *ModifyAdminsRequest) Marshal() (dAtA []byte, err error)

func (*ModifyAdminsRequest) MarshalTo added in v1.6.0

func (m *ModifyAdminsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ModifyAdminsRequest) ProtoMessage added in v1.6.0

func (*ModifyAdminsRequest) ProtoMessage()

func (*ModifyAdminsRequest) Reset added in v1.6.0

func (m *ModifyAdminsRequest) Reset()

func (*ModifyAdminsRequest) Size added in v1.6.0

func (m *ModifyAdminsRequest) Size() (n int)

func (*ModifyAdminsRequest) String added in v1.6.0

func (m *ModifyAdminsRequest) String() string

func (*ModifyAdminsRequest) Unmarshal added in v1.6.0

func (m *ModifyAdminsRequest) Unmarshal(dAtA []byte) error

func (*ModifyAdminsRequest) XXX_DiscardUnknown added in v1.7.12

func (m *ModifyAdminsRequest) XXX_DiscardUnknown()

func (*ModifyAdminsRequest) XXX_Marshal added in v1.7.12

func (m *ModifyAdminsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModifyAdminsRequest) XXX_Merge added in v1.7.12

func (m *ModifyAdminsRequest) XXX_Merge(src proto.Message)

func (*ModifyAdminsRequest) XXX_Size added in v1.7.12

func (m *ModifyAdminsRequest) XXX_Size() int

func (*ModifyAdminsRequest) XXX_Unmarshal added in v1.7.12

func (m *ModifyAdminsRequest) XXX_Unmarshal(b []byte) error

type ModifyAdminsResponse added in v1.6.0

type ModifyAdminsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ModifyAdminsResponse) Descriptor added in v1.6.0

func (*ModifyAdminsResponse) Descriptor() ([]byte, []int)

func (*ModifyAdminsResponse) Marshal added in v1.6.0

func (m *ModifyAdminsResponse) Marshal() (dAtA []byte, err error)

func (*ModifyAdminsResponse) MarshalTo added in v1.6.0

func (m *ModifyAdminsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ModifyAdminsResponse) ProtoMessage added in v1.6.0

func (*ModifyAdminsResponse) ProtoMessage()

func (*ModifyAdminsResponse) Reset added in v1.6.0

func (m *ModifyAdminsResponse) Reset()

func (*ModifyAdminsResponse) Size added in v1.6.0

func (m *ModifyAdminsResponse) Size() (n int)

func (*ModifyAdminsResponse) String added in v1.6.0

func (m *ModifyAdminsResponse) String() string

func (*ModifyAdminsResponse) Unmarshal added in v1.6.0

func (m *ModifyAdminsResponse) Unmarshal(dAtA []byte) error

func (*ModifyAdminsResponse) XXX_DiscardUnknown added in v1.7.12

func (m *ModifyAdminsResponse) XXX_DiscardUnknown()

func (*ModifyAdminsResponse) XXX_Marshal added in v1.7.12

func (m *ModifyAdminsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModifyAdminsResponse) XXX_Merge added in v1.7.12

func (m *ModifyAdminsResponse) XXX_Merge(src proto.Message)

func (*ModifyAdminsResponse) XXX_Size added in v1.7.12

func (m *ModifyAdminsResponse) XXX_Size() int

func (*ModifyAdminsResponse) XXX_Unmarshal added in v1.7.12

func (m *ModifyAdminsResponse) XXX_Unmarshal(b []byte) error

type ModifyMembersRequest added in v1.7.2

type ModifyMembersRequest struct {
	Group                string   `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Add                  []string `protobuf:"bytes,2,rep,name=add,proto3" json:"add,omitempty"`
	Remove               []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ModifyMembersRequest) Descriptor added in v1.7.2

func (*ModifyMembersRequest) Descriptor() ([]byte, []int)

func (*ModifyMembersRequest) GetAdd added in v1.7.2

func (m *ModifyMembersRequest) GetAdd() []string

func (*ModifyMembersRequest) GetGroup added in v1.7.2

func (m *ModifyMembersRequest) GetGroup() string

func (*ModifyMembersRequest) GetRemove added in v1.7.2

func (m *ModifyMembersRequest) GetRemove() []string

func (*ModifyMembersRequest) Marshal added in v1.7.2

func (m *ModifyMembersRequest) Marshal() (dAtA []byte, err error)

func (*ModifyMembersRequest) MarshalTo added in v1.7.2

func (m *ModifyMembersRequest) MarshalTo(dAtA []byte) (int, error)

func (*ModifyMembersRequest) ProtoMessage added in v1.7.2

func (*ModifyMembersRequest) ProtoMessage()

func (*ModifyMembersRequest) Reset added in v1.7.2

func (m *ModifyMembersRequest) Reset()

func (*ModifyMembersRequest) Size added in v1.7.2

func (m *ModifyMembersRequest) Size() (n int)

func (*ModifyMembersRequest) String added in v1.7.2

func (m *ModifyMembersRequest) String() string

func (*ModifyMembersRequest) Unmarshal added in v1.7.2

func (m *ModifyMembersRequest) Unmarshal(dAtA []byte) error

func (*ModifyMembersRequest) XXX_DiscardUnknown added in v1.7.12

func (m *ModifyMembersRequest) XXX_DiscardUnknown()

func (*ModifyMembersRequest) XXX_Marshal added in v1.7.12

func (m *ModifyMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModifyMembersRequest) XXX_Merge added in v1.7.12

func (m *ModifyMembersRequest) XXX_Merge(src proto.Message)

func (*ModifyMembersRequest) XXX_Size added in v1.7.12

func (m *ModifyMembersRequest) XXX_Size() int

func (*ModifyMembersRequest) XXX_Unmarshal added in v1.7.12

func (m *ModifyMembersRequest) XXX_Unmarshal(b []byte) error

type ModifyMembersResponse added in v1.7.2

type ModifyMembersResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ModifyMembersResponse) Descriptor added in v1.7.2

func (*ModifyMembersResponse) Descriptor() ([]byte, []int)

func (*ModifyMembersResponse) Marshal added in v1.7.2

func (m *ModifyMembersResponse) Marshal() (dAtA []byte, err error)

func (*ModifyMembersResponse) MarshalTo added in v1.7.2

func (m *ModifyMembersResponse) MarshalTo(dAtA []byte) (int, error)

func (*ModifyMembersResponse) ProtoMessage added in v1.7.2

func (*ModifyMembersResponse) ProtoMessage()

func (*ModifyMembersResponse) Reset added in v1.7.2

func (m *ModifyMembersResponse) Reset()

func (*ModifyMembersResponse) Size added in v1.7.2

func (m *ModifyMembersResponse) Size() (n int)

func (*ModifyMembersResponse) String added in v1.7.2

func (m *ModifyMembersResponse) String() string

func (*ModifyMembersResponse) Unmarshal added in v1.7.2

func (m *ModifyMembersResponse) Unmarshal(dAtA []byte) error

func (*ModifyMembersResponse) XXX_DiscardUnknown added in v1.7.12

func (m *ModifyMembersResponse) XXX_DiscardUnknown()

func (*ModifyMembersResponse) XXX_Marshal added in v1.7.12

func (m *ModifyMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModifyMembersResponse) XXX_Merge added in v1.7.12

func (m *ModifyMembersResponse) XXX_Merge(src proto.Message)

func (*ModifyMembersResponse) XXX_Size added in v1.7.12

func (m *ModifyMembersResponse) XXX_Size() int

func (*ModifyMembersResponse) XXX_Unmarshal added in v1.7.12

func (m *ModifyMembersResponse) XXX_Unmarshal(b []byte) error

type OTPInfo added in v1.7.11

type OTPInfo struct {
	// Subject (i.e. Pachyderm account) that a given OTP authenticates. This may
	// be copied into the 'subject' field of a TokenInfo, and therefore has the
	// same format, with the same prefixes.
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// session_expiration indicates when the subject's session expires, a.k.a.
	// when the Token to which this OTP converts expires (likely later than this
	// OTP expires, but never earlier).
	SessionExpiration    *types.Timestamp `protobuf:"bytes,2,opt,name=session_expiration,json=sessionExpiration,proto3" json:"session_expiration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

OTPInfo is the analogue of 'TokenInfo' for Authentication Codes (short-lived, one-time-use codes that are passed to the frontend and then exchanged for longer-lived tokens)

func (*OTPInfo) Descriptor added in v1.7.11

func (*OTPInfo) Descriptor() ([]byte, []int)

func (*OTPInfo) GetSessionExpiration added in v1.7.11

func (m *OTPInfo) GetSessionExpiration() *types.Timestamp

func (*OTPInfo) GetSubject added in v1.7.11

func (m *OTPInfo) GetSubject() string

func (*OTPInfo) Marshal added in v1.7.11

func (m *OTPInfo) Marshal() (dAtA []byte, err error)

func (*OTPInfo) MarshalTo added in v1.7.11

func (m *OTPInfo) MarshalTo(dAtA []byte) (int, error)

func (*OTPInfo) ProtoMessage added in v1.7.11

func (*OTPInfo) ProtoMessage()

func (*OTPInfo) Reset added in v1.7.11

func (m *OTPInfo) Reset()

func (*OTPInfo) Size added in v1.7.11

func (m *OTPInfo) Size() (n int)

func (*OTPInfo) String added in v1.7.11

func (m *OTPInfo) String() string

func (*OTPInfo) Unmarshal added in v1.7.11

func (m *OTPInfo) Unmarshal(dAtA []byte) error

func (*OTPInfo) XXX_DiscardUnknown added in v1.7.12

func (m *OTPInfo) XXX_DiscardUnknown()

func (*OTPInfo) XXX_Marshal added in v1.7.12

func (m *OTPInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OTPInfo) XXX_Merge added in v1.7.12

func (m *OTPInfo) XXX_Merge(src proto.Message)

func (*OTPInfo) XXX_Size added in v1.7.12

func (m *OTPInfo) XXX_Size() int

func (*OTPInfo) XXX_Unmarshal added in v1.7.12

func (m *OTPInfo) XXX_Unmarshal(b []byte) error

type RevokeAuthTokenRequest

type RevokeAuthTokenRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*RevokeAuthTokenRequest) XXX_DiscardUnknown added in v1.7.12

func (m *RevokeAuthTokenRequest) XXX_DiscardUnknown()

func (*RevokeAuthTokenRequest) XXX_Marshal added in v1.7.12

func (m *RevokeAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RevokeAuthTokenRequest) XXX_Merge added in v1.7.12

func (m *RevokeAuthTokenRequest) XXX_Merge(src proto.Message)

func (*RevokeAuthTokenRequest) XXX_Size added in v1.7.12

func (m *RevokeAuthTokenRequest) XXX_Size() int

func (*RevokeAuthTokenRequest) XXX_Unmarshal added in v1.7.12

func (m *RevokeAuthTokenRequest) XXX_Unmarshal(b []byte) error

type RevokeAuthTokenResponse

type RevokeAuthTokenResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*RevokeAuthTokenResponse) XXX_DiscardUnknown added in v1.7.12

func (m *RevokeAuthTokenResponse) XXX_DiscardUnknown()

func (*RevokeAuthTokenResponse) XXX_Marshal added in v1.7.12

func (m *RevokeAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RevokeAuthTokenResponse) XXX_Merge added in v1.7.12

func (m *RevokeAuthTokenResponse) XXX_Merge(src proto.Message)

func (*RevokeAuthTokenResponse) XXX_Size added in v1.7.12

func (m *RevokeAuthTokenResponse) XXX_Size() int

func (*RevokeAuthTokenResponse) XXX_Unmarshal added in v1.7.12

func (m *RevokeAuthTokenResponse) XXX_Unmarshal(b []byte) error

type Scope

type Scope int32

Scope (actually a "role" in canonical security nomenclature) represents a rough level of access that a principal has to a repo

const (
	// To remove a user's scope from a repo, set their scope to NONE
	Scope_NONE   Scope = 0
	Scope_READER Scope = 1
	Scope_WRITER Scope = 2
	Scope_OWNER  Scope = 3
)

func ParseScope

func ParseScope(s string) (Scope, error)

ParseScope parses the string 's' to a scope (for example, parsing a command- line argument.

func (Scope) EnumDescriptor

func (Scope) EnumDescriptor() ([]byte, []int)

func (Scope) String

func (x Scope) String() string

type SetACLRequest added in v1.5.3

type SetACLRequest struct {
	Repo                 string      `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Entries              []*ACLEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*SetACLRequest) Descriptor added in v1.5.3

func (*SetACLRequest) Descriptor() ([]byte, []int)

func (*SetACLRequest) GetEntries added in v1.6.0

func (m *SetACLRequest) GetEntries() []*ACLEntry

func (*SetACLRequest) GetRepo added in v1.5.3

func (m *SetACLRequest) GetRepo() string

func (*SetACLRequest) Marshal added in v1.5.3

func (m *SetACLRequest) Marshal() (dAtA []byte, err error)

func (*SetACLRequest) MarshalTo added in v1.5.3

func (m *SetACLRequest) MarshalTo(dAtA []byte) (int, error)

func (*SetACLRequest) ProtoMessage added in v1.5.3

func (*SetACLRequest) ProtoMessage()

func (*SetACLRequest) Reset added in v1.5.3

func (m *SetACLRequest) Reset()

func (*SetACLRequest) Size added in v1.5.3

func (m *SetACLRequest) Size() (n int)

func (*SetACLRequest) String added in v1.5.3

func (m *SetACLRequest) String() string

func (*SetACLRequest) Unmarshal added in v1.5.3

func (m *SetACLRequest) Unmarshal(dAtA []byte) error

func (*SetACLRequest) XXX_DiscardUnknown added in v1.7.12

func (m *SetACLRequest) XXX_DiscardUnknown()

func (*SetACLRequest) XXX_Marshal added in v1.7.12

func (m *SetACLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetACLRequest) XXX_Merge added in v1.7.12

func (m *SetACLRequest) XXX_Merge(src proto.Message)

func (*SetACLRequest) XXX_Size added in v1.7.12

func (m *SetACLRequest) XXX_Size() int

func (*SetACLRequest) XXX_Unmarshal added in v1.7.12

func (m *SetACLRequest) XXX_Unmarshal(b []byte) error

type SetACLResponse added in v1.5.3

type SetACLResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetACLResponse) Descriptor added in v1.5.3

func (*SetACLResponse) Descriptor() ([]byte, []int)

func (*SetACLResponse) Marshal added in v1.5.3

func (m *SetACLResponse) Marshal() (dAtA []byte, err error)

func (*SetACLResponse) MarshalTo added in v1.5.3

func (m *SetACLResponse) MarshalTo(dAtA []byte) (int, error)

func (*SetACLResponse) ProtoMessage added in v1.5.3

func (*SetACLResponse) ProtoMessage()

func (*SetACLResponse) Reset added in v1.5.3

func (m *SetACLResponse) Reset()

func (*SetACLResponse) Size added in v1.5.3

func (m *SetACLResponse) Size() (n int)

func (*SetACLResponse) String added in v1.5.3

func (m *SetACLResponse) String() string

func (*SetACLResponse) Unmarshal added in v1.5.3

func (m *SetACLResponse) Unmarshal(dAtA []byte) error

func (*SetACLResponse) XXX_DiscardUnknown added in v1.7.12

func (m *SetACLResponse) XXX_DiscardUnknown()

func (*SetACLResponse) XXX_Marshal added in v1.7.12

func (m *SetACLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetACLResponse) XXX_Merge added in v1.7.12

func (m *SetACLResponse) XXX_Merge(src proto.Message)

func (*SetACLResponse) XXX_Size added in v1.7.12

func (m *SetACLResponse) XXX_Size() int

func (*SetACLResponse) XXX_Unmarshal added in v1.7.12

func (m *SetACLResponse) XXX_Unmarshal(b []byte) error

type SetConfigurationRequest added in v1.7.7

type SetConfigurationRequest struct {
	Configuration        *AuthConfig `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*SetConfigurationRequest) Descriptor added in v1.7.7

func (*SetConfigurationRequest) Descriptor() ([]byte, []int)

func (*SetConfigurationRequest) GetConfiguration added in v1.7.7

func (m *SetConfigurationRequest) GetConfiguration() *AuthConfig

func (*SetConfigurationRequest) Marshal added in v1.7.7

func (m *SetConfigurationRequest) Marshal() (dAtA []byte, err error)

func (*SetConfigurationRequest) MarshalTo added in v1.7.7

func (m *SetConfigurationRequest) MarshalTo(dAtA []byte) (int, error)

func (*SetConfigurationRequest) ProtoMessage added in v1.7.7

func (*SetConfigurationRequest) ProtoMessage()

func (*SetConfigurationRequest) Reset added in v1.7.7

func (m *SetConfigurationRequest) Reset()

func (*SetConfigurationRequest) Size added in v1.7.7

func (m *SetConfigurationRequest) Size() (n int)

func (*SetConfigurationRequest) String added in v1.7.7

func (m *SetConfigurationRequest) String() string

func (*SetConfigurationRequest) Unmarshal added in v1.7.7

func (m *SetConfigurationRequest) Unmarshal(dAtA []byte) error

func (*SetConfigurationRequest) XXX_DiscardUnknown added in v1.7.12

func (m *SetConfigurationRequest) XXX_DiscardUnknown()

func (*SetConfigurationRequest) XXX_Marshal added in v1.7.12

func (m *SetConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetConfigurationRequest) XXX_Merge added in v1.7.12

func (m *SetConfigurationRequest) XXX_Merge(src proto.Message)

func (*SetConfigurationRequest) XXX_Size added in v1.7.12

func (m *SetConfigurationRequest) XXX_Size() int

func (*SetConfigurationRequest) XXX_Unmarshal added in v1.7.12

func (m *SetConfigurationRequest) XXX_Unmarshal(b []byte) error

type SetConfigurationResponse added in v1.7.7

type SetConfigurationResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetConfigurationResponse) Descriptor added in v1.7.7

func (*SetConfigurationResponse) Descriptor() ([]byte, []int)

func (*SetConfigurationResponse) Marshal added in v1.7.7

func (m *SetConfigurationResponse) Marshal() (dAtA []byte, err error)

func (*SetConfigurationResponse) MarshalTo added in v1.7.7

func (m *SetConfigurationResponse) MarshalTo(dAtA []byte) (int, error)

func (*SetConfigurationResponse) ProtoMessage added in v1.7.7

func (*SetConfigurationResponse) ProtoMessage()

func (*SetConfigurationResponse) Reset added in v1.7.7

func (m *SetConfigurationResponse) Reset()

func (*SetConfigurationResponse) Size added in v1.7.7

func (m *SetConfigurationResponse) Size() (n int)

func (*SetConfigurationResponse) String added in v1.7.7

func (m *SetConfigurationResponse) String() string

func (*SetConfigurationResponse) Unmarshal added in v1.7.7

func (m *SetConfigurationResponse) Unmarshal(dAtA []byte) error

func (*SetConfigurationResponse) XXX_DiscardUnknown added in v1.7.12

func (m *SetConfigurationResponse) XXX_DiscardUnknown()

func (*SetConfigurationResponse) XXX_Marshal added in v1.7.12

func (m *SetConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetConfigurationResponse) XXX_Merge added in v1.7.12

func (m *SetConfigurationResponse) XXX_Merge(src proto.Message)

func (*SetConfigurationResponse) XXX_Size added in v1.7.12

func (m *SetConfigurationResponse) XXX_Size() int

func (*SetConfigurationResponse) XXX_Unmarshal added in v1.7.12

func (m *SetConfigurationResponse) XXX_Unmarshal(b []byte) error

type SetGroupsForUserRequest added in v1.7.2

type SetGroupsForUserRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Groups               []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetGroupsForUserRequest) Descriptor added in v1.7.2

func (*SetGroupsForUserRequest) Descriptor() ([]byte, []int)

func (*SetGroupsForUserRequest) GetGroups added in v1.7.2

func (m *SetGroupsForUserRequest) GetGroups() []string

func (*SetGroupsForUserRequest) GetUsername added in v1.7.2

func (m *SetGroupsForUserRequest) GetUsername() string

func (*SetGroupsForUserRequest) Marshal added in v1.7.2

func (m *SetGroupsForUserRequest) Marshal() (dAtA []byte, err error)

func (*SetGroupsForUserRequest) MarshalTo added in v1.7.2

func (m *SetGroupsForUserRequest) MarshalTo(dAtA []byte) (int, error)

func (*SetGroupsForUserRequest) ProtoMessage added in v1.7.2

func (*SetGroupsForUserRequest) ProtoMessage()

func (*SetGroupsForUserRequest) Reset added in v1.7.2

func (m *SetGroupsForUserRequest) Reset()

func (*SetGroupsForUserRequest) Size added in v1.7.2

func (m *SetGroupsForUserRequest) Size() (n int)

func (*SetGroupsForUserRequest) String added in v1.7.2

func (m *SetGroupsForUserRequest) String() string

func (*SetGroupsForUserRequest) Unmarshal added in v1.7.2

func (m *SetGroupsForUserRequest) Unmarshal(dAtA []byte) error

func (*SetGroupsForUserRequest) XXX_DiscardUnknown added in v1.7.12

func (m *SetGroupsForUserRequest) XXX_DiscardUnknown()

func (*SetGroupsForUserRequest) XXX_Marshal added in v1.7.12

func (m *SetGroupsForUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetGroupsForUserRequest) XXX_Merge added in v1.7.12

func (m *SetGroupsForUserRequest) XXX_Merge(src proto.Message)

func (*SetGroupsForUserRequest) XXX_Size added in v1.7.12

func (m *SetGroupsForUserRequest) XXX_Size() int

func (*SetGroupsForUserRequest) XXX_Unmarshal added in v1.7.12

func (m *SetGroupsForUserRequest) XXX_Unmarshal(b []byte) error

type SetGroupsForUserResponse added in v1.7.2

type SetGroupsForUserResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetGroupsForUserResponse) Descriptor added in v1.7.2

func (*SetGroupsForUserResponse) Descriptor() ([]byte, []int)

func (*SetGroupsForUserResponse) Marshal added in v1.7.2

func (m *SetGroupsForUserResponse) Marshal() (dAtA []byte, err error)

func (*SetGroupsForUserResponse) MarshalTo added in v1.7.2

func (m *SetGroupsForUserResponse) MarshalTo(dAtA []byte) (int, error)

func (*SetGroupsForUserResponse) ProtoMessage added in v1.7.2

func (*SetGroupsForUserResponse) ProtoMessage()

func (*SetGroupsForUserResponse) Reset added in v1.7.2

func (m *SetGroupsForUserResponse) Reset()

func (*SetGroupsForUserResponse) Size added in v1.7.2

func (m *SetGroupsForUserResponse) Size() (n int)

func (*SetGroupsForUserResponse) String added in v1.7.2

func (m *SetGroupsForUserResponse) String() string

func (*SetGroupsForUserResponse) Unmarshal added in v1.7.2

func (m *SetGroupsForUserResponse) Unmarshal(dAtA []byte) error

func (*SetGroupsForUserResponse) XXX_DiscardUnknown added in v1.7.12

func (m *SetGroupsForUserResponse) XXX_DiscardUnknown()

func (*SetGroupsForUserResponse) XXX_Marshal added in v1.7.12

func (m *SetGroupsForUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetGroupsForUserResponse) XXX_Merge added in v1.7.12

func (m *SetGroupsForUserResponse) XXX_Merge(src proto.Message)

func (*SetGroupsForUserResponse) XXX_Size added in v1.7.12

func (m *SetGroupsForUserResponse) XXX_Size() int

func (*SetGroupsForUserResponse) XXX_Unmarshal added in v1.7.12

func (m *SetGroupsForUserResponse) XXX_Unmarshal(b []byte) error

type SetScopeRequest

type SetScopeRequest struct {
	// username is the principal (some of which belong to robots rather than
	// users, but the name is preserved for now to provide compatibility with the
	// pachyderm dash) whose access is being granted/revoked. As with
	// GetScopeRequest, to set the access level of a robot user, the caller must
	// prefix username with "robot:". If 'username' has no prefix (i.e. no ":"),
	// then it's assumed to be a github user's principal.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// repo is the object to which access is being granted/revoked
	Repo string `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	// scope (actually a "role"--see "Scope") is the access level that the owner
	// of 'principal' will now have
	Scope                Scope    `protobuf:"varint,3,opt,name=scope,proto3,enum=auth.Scope" json:"scope,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetScopeRequest) Descriptor

func (*SetScopeRequest) Descriptor() ([]byte, []int)

func (*SetScopeRequest) GetRepo

func (m *SetScopeRequest) GetRepo() string

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) MarshalTo

func (m *SetScopeRequest) MarshalTo(dAtA []byte) (int, 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

func (*SetScopeRequest) XXX_DiscardUnknown added in v1.7.12

func (m *SetScopeRequest) XXX_DiscardUnknown()

func (*SetScopeRequest) XXX_Marshal added in v1.7.12

func (m *SetScopeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetScopeRequest) XXX_Merge added in v1.7.12

func (m *SetScopeRequest) XXX_Merge(src proto.Message)

func (*SetScopeRequest) XXX_Size added in v1.7.12

func (m *SetScopeRequest) XXX_Size() int

func (*SetScopeRequest) XXX_Unmarshal added in v1.7.12

func (m *SetScopeRequest) XXX_Unmarshal(b []byte) error

type SetScopeResponse

type SetScopeResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetScopeResponse) Descriptor

func (*SetScopeResponse) Descriptor() ([]byte, []int)

func (*SetScopeResponse) Marshal

func (m *SetScopeResponse) Marshal() (dAtA []byte, err error)

func (*SetScopeResponse) MarshalTo

func (m *SetScopeResponse) MarshalTo(dAtA []byte) (int, 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

func (*SetScopeResponse) XXX_DiscardUnknown added in v1.7.12

func (m *SetScopeResponse) XXX_DiscardUnknown()

func (*SetScopeResponse) XXX_Marshal added in v1.7.12

func (m *SetScopeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetScopeResponse) XXX_Merge added in v1.7.12

func (m *SetScopeResponse) XXX_Merge(src proto.Message)

func (*SetScopeResponse) XXX_Size added in v1.7.12

func (m *SetScopeResponse) XXX_Size() int

func (*SetScopeResponse) XXX_Unmarshal added in v1.7.12

func (m *SetScopeResponse) XXX_Unmarshal(b []byte) error

type TokenInfo added in v1.7.0

type TokenInfo struct {
	// Subject (i.e. Pachyderm account) that a given token authorizes. Prefixed
	// with "github:" or "robot:" to distinguish the two classes of
	// Subject in Pachyderm
	Subject              string                `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Source               TokenInfo_TokenSource `protobuf:"varint,2,opt,name=source,proto3,enum=auth.TokenInfo_TokenSource" json:"source,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

TokenInfo is the 'value' of an auth token 'key' in the 'tokens' collection

func (*TokenInfo) Descriptor added in v1.7.0

func (*TokenInfo) Descriptor() ([]byte, []int)

func (*TokenInfo) GetSource added in v1.7.0

func (m *TokenInfo) GetSource() TokenInfo_TokenSource

func (*TokenInfo) GetSubject added in v1.7.0

func (m *TokenInfo) GetSubject() string

func (*TokenInfo) Marshal added in v1.7.0

func (m *TokenInfo) Marshal() (dAtA []byte, err error)

func (*TokenInfo) MarshalTo added in v1.7.0

func (m *TokenInfo) MarshalTo(dAtA []byte) (int, error)

func (*TokenInfo) ProtoMessage added in v1.7.0

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) Reset added in v1.7.0

func (m *TokenInfo) Reset()

func (*TokenInfo) Size added in v1.7.0

func (m *TokenInfo) Size() (n int)

func (*TokenInfo) String added in v1.7.0

func (m *TokenInfo) String() string

func (*TokenInfo) Unmarshal added in v1.7.0

func (m *TokenInfo) Unmarshal(dAtA []byte) error

func (*TokenInfo) XXX_DiscardUnknown added in v1.7.12

func (m *TokenInfo) XXX_DiscardUnknown()

func (*TokenInfo) XXX_Marshal added in v1.7.12

func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenInfo) XXX_Merge added in v1.7.12

func (m *TokenInfo) XXX_Merge(src proto.Message)

func (*TokenInfo) XXX_Size added in v1.7.12

func (m *TokenInfo) XXX_Size() int

func (*TokenInfo) XXX_Unmarshal added in v1.7.12

func (m *TokenInfo) XXX_Unmarshal(b []byte) error

type TokenInfo_TokenSource added in v1.7.0

type TokenInfo_TokenSource int32
const (
	TokenInfo_INVALID      TokenInfo_TokenSource = 0
	TokenInfo_AUTHENTICATE TokenInfo_TokenSource = 1
	TokenInfo_GET_TOKEN    TokenInfo_TokenSource = 2
)

func (TokenInfo_TokenSource) EnumDescriptor added in v1.7.0

func (TokenInfo_TokenSource) EnumDescriptor() ([]byte, []int)

func (TokenInfo_TokenSource) String added in v1.7.0

func (x TokenInfo_TokenSource) String() string

type UnimplementedAPIServer added in v1.8.7

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedAPIServer) Activate added in v1.8.7

func (*UnimplementedAPIServer) Authenticate added in v1.8.7

func (*UnimplementedAPIServer) Authorize added in v1.8.7

func (*UnimplementedAPIServer) Deactivate added in v1.8.7

func (*UnimplementedAPIServer) ExtendAuthToken added in v1.8.7

func (*UnimplementedAPIServer) GetACL added in v1.8.7

func (*UnimplementedAPIServer) GetAdmins added in v1.8.7

func (*UnimplementedAPIServer) GetAuthToken added in v1.8.7

func (*UnimplementedAPIServer) GetConfiguration added in v1.8.7

func (*UnimplementedAPIServer) GetGroups added in v1.8.7

func (*UnimplementedAPIServer) GetOneTimePassword added in v1.8.7

func (*UnimplementedAPIServer) GetScope added in v1.8.7

func (*UnimplementedAPIServer) GetUsers added in v1.8.7

func (*UnimplementedAPIServer) ModifyAdmins added in v1.8.7

func (*UnimplementedAPIServer) ModifyMembers added in v1.8.7

func (*UnimplementedAPIServer) RevokeAuthToken added in v1.8.7

func (*UnimplementedAPIServer) SetACL added in v1.8.7

func (*UnimplementedAPIServer) SetConfiguration added in v1.8.7

func (*UnimplementedAPIServer) SetGroupsForUser added in v1.8.7

func (*UnimplementedAPIServer) SetScope added in v1.8.7

func (*UnimplementedAPIServer) WhoAmI added in v1.8.7

type Users added in v1.7.2

type Users struct {
	Usernames            map[string]bool `` /* 160-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Users) Descriptor added in v1.7.2

func (*Users) Descriptor() ([]byte, []int)

func (*Users) GetUsernames added in v1.7.2

func (m *Users) GetUsernames() map[string]bool

func (*Users) Marshal added in v1.7.2

func (m *Users) Marshal() (dAtA []byte, err error)

func (*Users) MarshalTo added in v1.7.2

func (m *Users) MarshalTo(dAtA []byte) (int, error)

func (*Users) ProtoMessage added in v1.7.2

func (*Users) ProtoMessage()

func (*Users) Reset added in v1.7.2

func (m *Users) Reset()

func (*Users) Size added in v1.7.2

func (m *Users) Size() (n int)

func (*Users) String added in v1.7.2

func (m *Users) String() string

func (*Users) Unmarshal added in v1.7.2

func (m *Users) Unmarshal(dAtA []byte) error

func (*Users) XXX_DiscardUnknown added in v1.7.12

func (m *Users) XXX_DiscardUnknown()

func (*Users) XXX_Marshal added in v1.7.12

func (m *Users) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Users) XXX_Merge added in v1.7.12

func (m *Users) XXX_Merge(src proto.Message)

func (*Users) XXX_Size added in v1.7.12

func (m *Users) XXX_Size() int

func (*Users) XXX_Unmarshal added in v1.7.12

func (m *Users) XXX_Unmarshal(b []byte) error

type WhoAmIRequest

type WhoAmIRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WhoAmIRequest) Descriptor

func (*WhoAmIRequest) Descriptor() ([]byte, []int)

func (*WhoAmIRequest) Marshal

func (m *WhoAmIRequest) Marshal() (dAtA []byte, err error)

func (*WhoAmIRequest) MarshalTo

func (m *WhoAmIRequest) MarshalTo(dAtA []byte) (int, 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

func (*WhoAmIRequest) XXX_DiscardUnknown added in v1.7.12

func (m *WhoAmIRequest) XXX_DiscardUnknown()

func (*WhoAmIRequest) XXX_Marshal added in v1.7.12

func (m *WhoAmIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WhoAmIRequest) XXX_Merge added in v1.7.12

func (m *WhoAmIRequest) XXX_Merge(src proto.Message)

func (*WhoAmIRequest) XXX_Size added in v1.7.12

func (m *WhoAmIRequest) XXX_Size() int

func (*WhoAmIRequest) XXX_Unmarshal added in v1.7.12

func (m *WhoAmIRequest) XXX_Unmarshal(b []byte) error

type WhoAmIResponse

type WhoAmIResponse struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	IsAdmin              bool     `protobuf:"varint,2,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	TTL                  int64    `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WhoAmIResponse) Descriptor

func (*WhoAmIResponse) Descriptor() ([]byte, []int)

func (*WhoAmIResponse) GetIsAdmin added in v1.6.0

func (m *WhoAmIResponse) GetIsAdmin() bool

func (*WhoAmIResponse) GetTTL added in v1.7.5

func (m *WhoAmIResponse) GetTTL() int64

func (*WhoAmIResponse) GetUsername

func (m *WhoAmIResponse) GetUsername() string

func (*WhoAmIResponse) Marshal

func (m *WhoAmIResponse) Marshal() (dAtA []byte, err error)

func (*WhoAmIResponse) MarshalTo

func (m *WhoAmIResponse) MarshalTo(dAtA []byte) (int, 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

func (*WhoAmIResponse) XXX_DiscardUnknown added in v1.7.12

func (m *WhoAmIResponse) XXX_DiscardUnknown()

func (*WhoAmIResponse) XXX_Marshal added in v1.7.12

func (m *WhoAmIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WhoAmIResponse) XXX_Merge added in v1.7.12

func (m *WhoAmIResponse) XXX_Merge(src proto.Message)

func (*WhoAmIResponse) XXX_Size added in v1.7.12

func (m *WhoAmIResponse) XXX_Size() int

func (*WhoAmIResponse) XXX_Unmarshal added in v1.7.12

func (m *WhoAmIResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL