userv1

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActivityType_name = map[int32]string{
		0: "ACTIVITY_TYPE_UNSPECIFIED",
		1: "ACTIVITY_TYPE_GET",
	}
	ActivityType_value = map[string]int32{
		"ACTIVITY_TYPE_UNSPECIFIED": 0,
		"ACTIVITY_TYPE_GET":         1,
	}
)

Enum value maps for ActivityType.

View Source
var (
	EntityType_name = map[int32]string{
		0: "ENTITY_TYPE_UNSPECIFIED",
		1: "ENTITY_TYPE_PROJECT",
	}
	EntityType_value = map[string]int32{
		"ENTITY_TYPE_UNSPECIFIED": 0,
		"ENTITY_TYPE_PROJECT":     1,
	}
)

Enum value maps for EntityType.

View Source
var File_determined_user_v1_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ActivityType

type ActivityType int32

ActivityType represents a user activity

const (
	// Default activity type.
	ActivityType_ACTIVITY_TYPE_UNSPECIFIED ActivityType = 0
	// Represents a get request.
	ActivityType_ACTIVITY_TYPE_GET ActivityType = 1
)

func (ActivityType) Descriptor

func (ActivityType) Enum

func (x ActivityType) Enum() *ActivityType

func (ActivityType) EnumDescriptor deprecated

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

Deprecated: Use ActivityType.Descriptor instead.

func (ActivityType) Number

func (ActivityType) String

func (x ActivityType) String() string

func (ActivityType) Type

type AgentUserGroup

type AgentUserGroup struct {

	// The user id on the agent.
	AgentUid *int32 `protobuf:"varint,1,opt,name=agent_uid,json=agentUid,proto3,oneof" json:"agent_uid,omitempty"`
	// The group id on the agent.
	AgentGid *int32 `protobuf:"varint,2,opt,name=agent_gid,json=agentGid,proto3,oneof" json:"agent_gid,omitempty"`
	// User name.
	AgentUser *string `protobuf:"bytes,3,opt,name=agent_user,json=agentUser,proto3,oneof" json:"agent_user,omitempty"`
	// Group name.
	AgentGroup *string `protobuf:"bytes,4,opt,name=agent_group,json=agentGroup,proto3,oneof" json:"agent_group,omitempty"`
	// contains filtered or unexported fields
}

AgentUserGroup represents a username and primary group for a user on an agent host machine.

func (*AgentUserGroup) Descriptor deprecated

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

Deprecated: Use AgentUserGroup.ProtoReflect.Descriptor instead.

func (*AgentUserGroup) GetAgentGid

func (x *AgentUserGroup) GetAgentGid() int32

func (*AgentUserGroup) GetAgentGroup

func (x *AgentUserGroup) GetAgentGroup() string

func (*AgentUserGroup) GetAgentUid

func (x *AgentUserGroup) GetAgentUid() int32

func (*AgentUserGroup) GetAgentUser

func (x *AgentUserGroup) GetAgentUser() string

func (*AgentUserGroup) ProtoMessage

func (*AgentUserGroup) ProtoMessage()

func (*AgentUserGroup) ProtoReflect

func (x *AgentUserGroup) ProtoReflect() protoreflect.Message

func (*AgentUserGroup) Reset

func (x *AgentUserGroup) Reset()

func (*AgentUserGroup) String

func (x *AgentUserGroup) String() string

type EntityType

type EntityType int32

EntityType represents an entity

const (
	// Default entity type.
	EntityType_ENTITY_TYPE_UNSPECIFIED EntityType = 0
	// Represents a project.
	EntityType_ENTITY_TYPE_PROJECT EntityType = 1
)

func (EntityType) Descriptor

func (EntityType) Descriptor() protoreflect.EnumDescriptor

func (EntityType) Enum

func (x EntityType) Enum() *EntityType

func (EntityType) EnumDescriptor deprecated

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

Deprecated: Use EntityType.Descriptor instead.

func (EntityType) Number

func (x EntityType) Number() protoreflect.EnumNumber

func (EntityType) String

func (x EntityType) String() string

func (EntityType) Type

type PatchUser

type PatchUser struct {

	// String denoting the username of the user.
	Username *string `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"`
	// String denoting the password of the user.
	Password *string `protobuf:"bytes,2,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// Bool denoting whether the account is an admin account.
	Admin *wrappers.BoolValue `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// Bool denoting whether the account is active.
	Active *wrappers.BoolValue `protobuf:"bytes,4,opt,name=active,proto3" json:"active,omitempty"`
	// Name to display in the web UI.
	DisplayName *string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"`
	// The user and group on the agent host machine.
	AgentUserGroup *AgentUserGroup `protobuf:"bytes,6,opt,name=agent_user_group,json=agentUserGroup,proto3" json:"agent_user_group,omitempty"`
	// Indicate whether the provided password is pre-salted & hashed or not.
	IsHashed bool `protobuf:"varint,7,opt,name=is_hashed,json=isHashed,proto3" json:"is_hashed,omitempty"`
	// Bool denoting whether the user should be able to login with or change a
	// password.
	Remote *bool `protobuf:"varint,8,opt,name=remote,proto3,oneof" json:"remote,omitempty"`
	// contains filtered or unexported fields
}

Request to edit fields for a user.

func (*PatchUser) Descriptor deprecated

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

Deprecated: Use PatchUser.ProtoReflect.Descriptor instead.

func (*PatchUser) GetActive

func (x *PatchUser) GetActive() *wrappers.BoolValue

func (*PatchUser) GetAdmin

func (x *PatchUser) GetAdmin() *wrappers.BoolValue

func (*PatchUser) GetAgentUserGroup

func (x *PatchUser) GetAgentUserGroup() *AgentUserGroup

func (*PatchUser) GetDisplayName

func (x *PatchUser) GetDisplayName() string

func (*PatchUser) GetIsHashed

func (x *PatchUser) GetIsHashed() bool

func (*PatchUser) GetPassword

func (x *PatchUser) GetPassword() string

func (*PatchUser) GetRemote

func (x *PatchUser) GetRemote() bool

func (*PatchUser) GetUsername

func (x *PatchUser) GetUsername() string

func (*PatchUser) ProtoMessage

func (*PatchUser) ProtoMessage()

func (*PatchUser) ProtoReflect

func (x *PatchUser) ProtoReflect() protoreflect.Message

func (*PatchUser) Reset

func (x *PatchUser) Reset()

func (*PatchUser) String

func (x *PatchUser) String() string

type User

type User struct {

	// The user ID.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The user login name of the user.
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// Bool denoting whether the account is an admin account.
	Admin bool `protobuf:"varint,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// Bool denoting whether the account is active.
	Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"`
	// The user and group on the agent host machine.
	AgentUserGroup *AgentUserGroup `protobuf:"bytes,5,opt,name=agent_user_group,json=agentUserGroup,proto3" json:"agent_user_group,omitempty"`
	// Name to display in the web UI.
	DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The version of the user object for caching purposes.
	ModifiedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"`
	// Bool denoting whether the user should be able to login with or change a
	// password.
	Remote bool `protobuf:"varint,8,opt,name=remote,proto3" json:"remote,omitempty"`
	// when the user last authenticated
	LastAuthAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=last_auth_at,json=lastAuthAt,proto3,oneof" json:"last_auth_at,omitempty"`
	// contains filtered or unexported fields
}

User is an account in the determined cluster.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActive

func (x *User) GetActive() bool

func (*User) GetAdmin

func (x *User) GetAdmin() bool

func (*User) GetAgentUserGroup

func (x *User) GetAgentUserGroup() *AgentUserGroup

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetLastAuthAt

func (x *User) GetLastAuthAt() *timestamp.Timestamp

func (*User) GetModifiedAt

func (x *User) GetModifiedAt() *timestamp.Timestamp

func (*User) GetRemote

func (x *User) GetRemote() bool

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserWebSetting

type UserWebSetting struct {

	// The key of setting.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The storage path of setting.
	StoragePath string `protobuf:"bytes,2,opt,name=storage_path,json=storagePath,proto3" json:"storage_path,omitempty"`
	// The value of setting.
	Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

UserWebSetting represents user web setting.

func (*UserWebSetting) Descriptor deprecated

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

Deprecated: Use UserWebSetting.ProtoReflect.Descriptor instead.

func (*UserWebSetting) GetKey

func (x *UserWebSetting) GetKey() string

func (*UserWebSetting) GetStoragePath

func (x *UserWebSetting) GetStoragePath() string

func (*UserWebSetting) GetValue

func (x *UserWebSetting) GetValue() string

func (*UserWebSetting) ProtoMessage

func (*UserWebSetting) ProtoMessage()

func (*UserWebSetting) ProtoReflect

func (x *UserWebSetting) ProtoReflect() protoreflect.Message

func (*UserWebSetting) Reset

func (x *UserWebSetting) Reset()

func (*UserWebSetting) String

func (x *UserWebSetting) String() string

Jump to

Keyboard shortcuts

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