auth

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AccountActionGroup_name = map[int32]string{
	0: "Unspecified",
	1: "Admin",
	2: "Developer",
	3: "Read",
}
View Source
var AccountActionGroup_value = map[string]int32{
	"Unspecified": 0,
	"Admin":       1,
	"Developer":   2,
	"Read":        3,
}
View Source
var NamespaceActionGroup_name = map[int32]string{
	0: "Unspecified",
	1: "Admin",
	2: "Write",
	3: "Read",
}
View Source
var NamespaceActionGroup_value = map[string]int32{
	"Unspecified": 0,
	"Admin":       1,
	"Write":       2,
	"Read":        3,
}
View Source
var RoleType_name = map[int32]string{
	0: "Unspecified",
	1: "Predefined",
}
View Source
var RoleType_value = map[string]int32{
	"Unspecified": 0,
	"Predefined":  1,
}
View Source
var UserState_name = map[int32]string{
	0: "Unspecified",
	1: "Creating",
	2: "CreateFailed",
	3: "Active",
	4: "Updating",
	5: "UpdateFailed",
	6: "Deleting",
	7: "DeleteFailed",
	8: "Deleted",
}
View Source
var UserState_value = map[string]int32{
	"Unspecified":  0,
	"Creating":     1,
	"CreateFailed": 2,
	"Active":       3,
	"Updating":     4,
	"UpdateFailed": 5,
	"Deleting":     6,
	"DeleteFailed": 7,
	"Deleted":      8,
}

Functions

This section is empty.

Types

type AccountActionGroup

type AccountActionGroup int32
const (
	ACCOUNT_ACTION_GROUP_UNSPECIFIED AccountActionGroup = 0
	// global admin
	ACCOUNT_ACTION_GROUP_ADMIN AccountActionGroup = 1
	// write access to all namespaces
	ACCOUNT_ACTION_GROUP_DEVELOPER AccountActionGroup = 2
	// read-only access to all namespaces
	ACCOUNT_ACTION_GROUP_READ AccountActionGroup = 3
)

func (AccountActionGroup) EnumDescriptor

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

func (AccountActionGroup) String

func (x AccountActionGroup) String() string

type AccountRoleSpec

type AccountRoleSpec struct {
	// the action group to enable for the account
	ActionGroup AccountActionGroup `` /* 131-byte string literal not displayed */
}

func (*AccountRoleSpec) Descriptor

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

func (*AccountRoleSpec) Equal

func (this *AccountRoleSpec) Equal(that interface{}) bool

func (*AccountRoleSpec) GetActionGroup

func (m *AccountRoleSpec) GetActionGroup() AccountActionGroup

func (*AccountRoleSpec) GoString

func (this *AccountRoleSpec) GoString() string

func (*AccountRoleSpec) Marshal

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

func (*AccountRoleSpec) MarshalTo

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

func (*AccountRoleSpec) MarshalToSizedBuffer

func (m *AccountRoleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccountRoleSpec) ProtoMessage

func (*AccountRoleSpec) ProtoMessage()

func (*AccountRoleSpec) Reset

func (m *AccountRoleSpec) Reset()

func (*AccountRoleSpec) Size

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

func (*AccountRoleSpec) String

func (this *AccountRoleSpec) String() string

func (*AccountRoleSpec) Unmarshal

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

func (*AccountRoleSpec) XXX_DiscardUnknown

func (m *AccountRoleSpec) XXX_DiscardUnknown()

func (*AccountRoleSpec) XXX_Marshal

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

func (*AccountRoleSpec) XXX_Merge

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

func (*AccountRoleSpec) XXX_Size

func (m *AccountRoleSpec) XXX_Size() int

func (*AccountRoleSpec) XXX_Unmarshal

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

type Invitation

type Invitation struct {
	// the uri of the invitation sent to the user
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// the date and time when the user was created
	CreatedTime *types.Timestamp `protobuf:"bytes,2,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	// the date and time when the invitation expires or has expired
	ExpiryTime *types.Timestamp `protobuf:"bytes,3,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"`
}

func (*Invitation) Descriptor

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

func (*Invitation) Equal

func (this *Invitation) Equal(that interface{}) bool

func (*Invitation) GetCreatedTime

func (m *Invitation) GetCreatedTime() *types.Timestamp

func (*Invitation) GetExpiryTime

func (m *Invitation) GetExpiryTime() *types.Timestamp

func (*Invitation) GetUri

func (m *Invitation) GetUri() string

func (*Invitation) GoString

func (this *Invitation) GoString() string

func (*Invitation) Marshal

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

func (*Invitation) MarshalTo

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

func (*Invitation) MarshalToSizedBuffer

func (m *Invitation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Invitation) ProtoMessage

func (*Invitation) ProtoMessage()

func (*Invitation) Reset

func (m *Invitation) Reset()

func (*Invitation) Size

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

func (*Invitation) String

func (this *Invitation) String() string

func (*Invitation) Unmarshal

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

func (*Invitation) XXX_DiscardUnknown

func (m *Invitation) XXX_DiscardUnknown()

func (*Invitation) XXX_Marshal

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

func (*Invitation) XXX_Merge

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

func (*Invitation) XXX_Size

func (m *Invitation) XXX_Size() int

func (*Invitation) XXX_Unmarshal

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

type NamespaceActionGroup

type NamespaceActionGroup int32
const (
	NAMESPACE_ACTION_GROUP_UNSPECIFIED NamespaceActionGroup = 0
	// admin access to the namespace
	NAMESPACE_ACTION_GROUP_ADMIN NamespaceActionGroup = 1
	// write access to the namespace
	NAMESPACE_ACTION_GROUP_WRITE NamespaceActionGroup = 2
	// read-only access to the namesapce
	NAMESPACE_ACTION_GROUP_READ NamespaceActionGroup = 3
)

func (NamespaceActionGroup) EnumDescriptor

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

func (NamespaceActionGroup) String

func (x NamespaceActionGroup) String() string

type NamespaceRoleSpec

type NamespaceRoleSpec struct {
	// the namespace the role is defined for
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// the action group to enable for the namepspace
	ActionGroup NamespaceActionGroup `` /* 133-byte string literal not displayed */
}

func (*NamespaceRoleSpec) Descriptor

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

func (*NamespaceRoleSpec) Equal

func (this *NamespaceRoleSpec) Equal(that interface{}) bool

func (*NamespaceRoleSpec) GetActionGroup

func (m *NamespaceRoleSpec) GetActionGroup() NamespaceActionGroup

func (*NamespaceRoleSpec) GetNamespace

func (m *NamespaceRoleSpec) GetNamespace() string

func (*NamespaceRoleSpec) GoString

func (this *NamespaceRoleSpec) GoString() string

func (*NamespaceRoleSpec) Marshal

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

func (*NamespaceRoleSpec) MarshalTo

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

func (*NamespaceRoleSpec) MarshalToSizedBuffer

func (m *NamespaceRoleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamespaceRoleSpec) ProtoMessage

func (*NamespaceRoleSpec) ProtoMessage()

func (*NamespaceRoleSpec) Reset

func (m *NamespaceRoleSpec) Reset()

func (*NamespaceRoleSpec) Size

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

func (*NamespaceRoleSpec) String

func (this *NamespaceRoleSpec) String() string

func (*NamespaceRoleSpec) Unmarshal

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

func (*NamespaceRoleSpec) XXX_DiscardUnknown

func (m *NamespaceRoleSpec) XXX_DiscardUnknown()

func (*NamespaceRoleSpec) XXX_Marshal

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

func (*NamespaceRoleSpec) XXX_Merge

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

func (*NamespaceRoleSpec) XXX_Size

func (m *NamespaceRoleSpec) XXX_Size() int

func (*NamespaceRoleSpec) XXX_Unmarshal

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

type Role

type Role struct {
	// the id of the role
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the role type
	Type RoleType `protobuf:"varint,2,opt,name=type,proto3,enum=api.auth.v1.RoleType" json:"type,omitempty"`
	// the specification of the role
	Spec *RoleSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
}

func (*Role) Descriptor

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

func (*Role) Equal

func (this *Role) Equal(that interface{}) bool

func (*Role) GetId

func (m *Role) GetId() string

func (*Role) GetSpec

func (m *Role) GetSpec() *RoleSpec

func (*Role) GetType

func (m *Role) GetType() RoleType

func (*Role) GoString

func (this *Role) GoString() string

func (*Role) Marshal

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

func (*Role) MarshalTo

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

func (*Role) MarshalToSizedBuffer

func (m *Role) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) Reset

func (m *Role) Reset()

func (*Role) Size

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

func (*Role) String

func (this *Role) String() string

func (*Role) Unmarshal

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

func (*Role) XXX_DiscardUnknown

func (m *Role) XXX_DiscardUnknown()

func (*Role) XXX_Marshal

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

func (*Role) XXX_Merge

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

func (*Role) XXX_Size

func (m *Role) XXX_Size() int

func (*Role) XXX_Unmarshal

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

type RoleSpec

type RoleSpec struct {
	// the global account role
	AccountRole *AccountRoleSpec `protobuf:"bytes,1,opt,name=account_role,json=accountRole,proto3" json:"account_role,omitempty"`
	// the list of namespace roles
	NamespaceRoles []*NamespaceRoleSpec `protobuf:"bytes,2,rep,name=namespace_roles,json=namespaceRoles,proto3" json:"namespace_roles,omitempty"`
}

func (*RoleSpec) Descriptor

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

func (*RoleSpec) Equal

func (this *RoleSpec) Equal(that interface{}) bool

func (*RoleSpec) GetAccountRole

func (m *RoleSpec) GetAccountRole() *AccountRoleSpec

func (*RoleSpec) GetNamespaceRoles

func (m *RoleSpec) GetNamespaceRoles() []*NamespaceRoleSpec

func (*RoleSpec) GoString

func (this *RoleSpec) GoString() string

func (*RoleSpec) Marshal

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

func (*RoleSpec) MarshalTo

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

func (*RoleSpec) MarshalToSizedBuffer

func (m *RoleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RoleSpec) ProtoMessage

func (*RoleSpec) ProtoMessage()

func (*RoleSpec) Reset

func (m *RoleSpec) Reset()

func (*RoleSpec) Size

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

func (*RoleSpec) String

func (this *RoleSpec) String() string

func (*RoleSpec) Unmarshal

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

func (*RoleSpec) XXX_DiscardUnknown

func (m *RoleSpec) XXX_DiscardUnknown()

func (*RoleSpec) XXX_Marshal

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

func (*RoleSpec) XXX_Merge

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

func (*RoleSpec) XXX_Size

func (m *RoleSpec) XXX_Size() int

func (*RoleSpec) XXX_Unmarshal

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

type RoleType

type RoleType int32
const (
	ROLE_TYPE_UNSPECIFIED RoleType = 0
	// a predefined role
	ROLE_TYPE_PREDEFINED RoleType = 1
)

func (RoleType) EnumDescriptor

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

func (RoleType) String

func (x RoleType) String() string

type User

type User struct {
	// the id of the user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the current version of the user specification
	// the next update request will have to include this version
	ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"`
	// the user specification
	Spec *UserSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
	// the current state of the user
	State UserState `protobuf:"varint,4,opt,name=state,proto3,enum=api.auth.v1.UserState" json:"state,omitempty"`
	// the id of the request that is creating/updating/deleting the user, if any
	RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// the details of the open invitation sent to the user, if any
	Invitation *Invitation `protobuf:"bytes,6,opt,name=invitation,proto3" json:"invitation,omitempty"`
	// the date and time when the user was created
	CreatedTime *types.Timestamp `protobuf:"bytes,7,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	// the date and time when the user was last modified
	LastModifiedTime *types.Timestamp `protobuf:"bytes,8,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"`
}

func (*User) Descriptor

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

func (*User) Equal

func (this *User) Equal(that interface{}) bool

func (*User) GetCreatedTime

func (m *User) GetCreatedTime() *types.Timestamp

func (*User) GetId

func (m *User) GetId() string

func (*User) GetInvitation

func (m *User) GetInvitation() *Invitation

func (*User) GetLastModifiedTime

func (m *User) GetLastModifiedTime() *types.Timestamp

func (*User) GetRequestId

func (m *User) GetRequestId() string

func (*User) GetResourceVersion

func (m *User) GetResourceVersion() string

func (*User) GetSpec

func (m *User) GetSpec() *UserSpec

func (*User) GetState

func (m *User) GetState() UserState

func (*User) GoString

func (this *User) GoString() string

func (*User) Marshal

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

func (*User) MarshalTo

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

func (*User) MarshalToSizedBuffer

func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) Size

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

func (*User) String

func (this *User) String() string

func (*User) Unmarshal

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

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

type UserNamespacePermissions

type UserNamespacePermissions struct {
	// the user to set namespace permissions for
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// the namespace action group to set for the user
	ActionGroup NamespaceActionGroup `` /* 133-byte string literal not displayed */
}

should be used along side namespace_id to determine permissions set for a user

func (*UserNamespacePermissions) Descriptor

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

func (*UserNamespacePermissions) Equal

func (this *UserNamespacePermissions) Equal(that interface{}) bool

func (*UserNamespacePermissions) GetActionGroup

func (m *UserNamespacePermissions) GetActionGroup() NamespaceActionGroup

func (*UserNamespacePermissions) GetUserId

func (m *UserNamespacePermissions) GetUserId() string

func (*UserNamespacePermissions) GoString

func (this *UserNamespacePermissions) GoString() string

func (*UserNamespacePermissions) Marshal

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

func (*UserNamespacePermissions) MarshalTo

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

func (*UserNamespacePermissions) MarshalToSizedBuffer

func (m *UserNamespacePermissions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserNamespacePermissions) ProtoMessage

func (*UserNamespacePermissions) ProtoMessage()

func (*UserNamespacePermissions) Reset

func (m *UserNamespacePermissions) Reset()

func (*UserNamespacePermissions) Size

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

func (*UserNamespacePermissions) String

func (this *UserNamespacePermissions) String() string

func (*UserNamespacePermissions) Unmarshal

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

func (*UserNamespacePermissions) XXX_DiscardUnknown

func (m *UserNamespacePermissions) XXX_DiscardUnknown()

func (*UserNamespacePermissions) XXX_Marshal

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

func (*UserNamespacePermissions) XXX_Merge

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

func (*UserNamespacePermissions) XXX_Size

func (m *UserNamespacePermissions) XXX_Size() int

func (*UserNamespacePermissions) XXX_Unmarshal

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

type UserSpec

type UserSpec struct {
	// the email address associated to the user
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// the roles assigned to the user
	Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
}

func (*UserSpec) Descriptor

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

func (*UserSpec) Equal

func (this *UserSpec) Equal(that interface{}) bool

func (*UserSpec) GetEmail

func (m *UserSpec) GetEmail() string

func (*UserSpec) GetRoles

func (m *UserSpec) GetRoles() []string

func (*UserSpec) GoString

func (this *UserSpec) GoString() string

func (*UserSpec) Marshal

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

func (*UserSpec) MarshalTo

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

func (*UserSpec) MarshalToSizedBuffer

func (m *UserSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserSpec) ProtoMessage

func (*UserSpec) ProtoMessage()

func (*UserSpec) Reset

func (m *UserSpec) Reset()

func (*UserSpec) Size

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

func (*UserSpec) String

func (this *UserSpec) String() string

func (*UserSpec) Unmarshal

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

func (*UserSpec) XXX_DiscardUnknown

func (m *UserSpec) XXX_DiscardUnknown()

func (*UserSpec) XXX_Marshal

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

func (*UserSpec) XXX_Merge

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

func (*UserSpec) XXX_Size

func (m *UserSpec) XXX_Size() int

func (*UserSpec) XXX_Unmarshal

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

type UserState

type UserState int32
const (
	USER_STATE_UNSPECIFIED UserState = 0
	// user is being created by the system
	USER_STATE_CREATING UserState = 1
	// user create operation failed
	USER_STATE_CREATE_FAILED UserState = 2
	// the user exists in the system (includes user with an outstanding invite)
	USER_STATE_ACTIVE UserState = 3
	// user is being udpate
	USER_STATE_UPDATING UserState = 4
	// the last user update failed
	USER_STATE_UPDATE_FAILED UserState = 5
	// the user is being deleted
	USER_STATE_DELETING UserState = 6
	// the user delete opertion failed
	USER_STATE_DELETE_FAILED UserState = 7
	// the user is successfully deleted
	USER_STATE_DELETED UserState = 8
)

func (UserState) EnumDescriptor

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

func (UserState) String

func (x UserState) String() string

Jump to

Keyboard shortcuts

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