domain

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSearchFilterNotFound = errors.New("account: search filter not found")
)

Functions

This section is empty.

Types

type APIKey

type APIKey struct {
	*proto.APIKey
}

func NewAPIKey

func NewAPIKey(
	name string,
	role proto.APIKey_Role,
	maintainer string,
	description string,
) (*APIKey, error)

func (*APIKey) Disable

func (a *APIKey) Disable() error

func (*APIKey) Enable

func (a *APIKey) Enable() error

func (*APIKey) Rename

func (a *APIKey) Rename(name string) error

func (*APIKey) Update added in v1.1.0

func (a *APIKey) Update(
	name *wrapperspb.StringValue,
	description *wrapperspb.StringValue,
	role proto.APIKey_Role,
	maintainer *wrapperspb.StringValue,
	disabled *wrapperspb.BoolValue,
) (*APIKey, error)

type AccountV2 added in v0.4.0

type AccountV2 struct {
	*proto.AccountV2
}

func NewAccountV2 added in v0.4.0

func NewAccountV2(
	email, name, firstName, lastName, language, avatarImageURL, organizationID string,
	organizationRole proto.AccountV2_Role_Organization,
	environmentRoles []*proto.AccountV2_EnvironmentRole,
) *AccountV2

func (*AccountV2) AddSearchFilter added in v0.4.7

func (a *AccountV2) AddSearchFilter(
	name string,
	query string,
	targetType proto.FilterTargetType,
	environmentID string, defaultFilter bool) (*proto.SearchFilter, error)

func (*AccountV2) ChangeAvatar added in v1.0.0

func (a *AccountV2) ChangeAvatar(image []byte, fileType string) error

func (*AccountV2) ChangeAvatarImageURL added in v0.4.0

func (a *AccountV2) ChangeAvatarImageURL(url string) error

func (*AccountV2) ChangeDefaultSearchFilter added in v0.4.8

func (a *AccountV2) ChangeDefaultSearchFilter(id string, defaultFilter bool) error

func (*AccountV2) ChangeEnvironmentRole added in v0.4.0

func (a *AccountV2) ChangeEnvironmentRole(roles []*proto.AccountV2_EnvironmentRole) error

func (*AccountV2) ChangeFirstName added in v1.0.0

func (a *AccountV2) ChangeFirstName(newFirstName string) error

func (*AccountV2) ChangeLanguage added in v1.0.0

func (a *AccountV2) ChangeLanguage(newLanguage string) error

func (*AccountV2) ChangeLastName added in v1.0.0

func (a *AccountV2) ChangeLastName(newLastName string) error

func (*AccountV2) ChangeLastSeen added in v1.0.0

func (a *AccountV2) ChangeLastSeen(lastSeen int64) error

func (*AccountV2) ChangeName added in v0.4.0

func (a *AccountV2) ChangeName(newName string) error

func (*AccountV2) ChangeOrganizationRole added in v0.4.0

func (a *AccountV2) ChangeOrganizationRole(role proto.AccountV2_Role_Organization) error

func (*AccountV2) ChangeSearchFilterName added in v0.4.8

func (a *AccountV2) ChangeSearchFilterName(id string, name string) error

func (*AccountV2) ChangeSearchFilterQuery added in v0.4.8

func (a *AccountV2) ChangeSearchFilterQuery(id string, query string) error

func (*AccountV2) DeleteSearchFilter added in v0.4.7

func (a *AccountV2) DeleteSearchFilter(id string) error

func (*AccountV2) Disable added in v0.4.0

func (a *AccountV2) Disable() error

func (*AccountV2) Enable added in v0.4.0

func (a *AccountV2) Enable() error

func (*AccountV2) PatchEnvironmentRole added in v0.4.0

func (a *AccountV2) PatchEnvironmentRole(patchRoles []*proto.AccountV2_EnvironmentRole) error

func (*AccountV2) Update added in v1.1.0

func (a *AccountV2) Update(
	name, firstName, lastName, language, avatarImageURL *wrapperspb.StringValue,
	avatar *proto.UpdateAccountV2Request_AccountV2Avatar,
	organizationRole *proto.UpdateAccountV2Request_OrganizationRoleValue,
	environmentRoles []*proto.AccountV2_EnvironmentRole,
	isDisabled *wrapperspb.BoolValue,
) (*AccountV2, error)

type AccountWithOrganization added in v0.4.0

type AccountWithOrganization struct {
	*proto.AccountV2
	*environmentproto.Organization
}

Jump to

Keyboard shortcuts

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