enum

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Code generated by enum generator; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	ActorTypeUser   = ActorType{/* contains filtered or unexported fields */}
	ActorTypeToken  = ActorType{/* contains filtered or unexported fields */}
	ActorTypePublic = ActorType{/* contains filtered or unexported fields */}
)

Public constants for actorType values

View Source
var (
	AuditActionRead   = AuditAction{/* contains filtered or unexported fields */}
	AuditActionCreate = AuditAction{/* contains filtered or unexported fields */}
	AuditActionUpdate = AuditAction{/* contains filtered or unexported fields */}
	AuditActionDelete = AuditAction{/* contains filtered or unexported fields */}
)

Public constants for auditAction values

View Source
var (
	AuditResultSuccess  = AuditResult{/* contains filtered or unexported fields */}
	AuditResultDenied   = AuditResult{/* contains filtered or unexported fields */}
	AuditResultNotFound = AuditResult{/* contains filtered or unexported fields */}
)

Public constants for auditResult values

View Source
var (
	DbTypeSQLite   = DbType{/* contains filtered or unexported fields */}
	DbTypePostgres = DbType{/* contains filtered or unexported fields */}
)

Public constants for dbType values

View Source
var (
	PermissionNone      = Permission{/* contains filtered or unexported fields */}
	PermissionRead      = Permission{/* contains filtered or unexported fields */}
	PermissionWrite     = Permission{/* contains filtered or unexported fields */}
	PermissionReadWrite = Permission{/* contains filtered or unexported fields */}
)

Public constants for permission values

View Source
var (
	SecretsFilterAll         = SecretsFilter{/* contains filtered or unexported fields */}
	SecretsFilterSecretsOnly = SecretsFilter{/* contains filtered or unexported fields */}
	SecretsFilterKeysOnly    = SecretsFilter{/* contains filtered or unexported fields */}
)

Public constants for secretsFilter values

View Source
var (
	SortModeUpdated = SortMode{/* contains filtered or unexported fields */}
	SortModeKey     = SortMode{/* contains filtered or unexported fields */}
	SortModeSize    = SortMode{/* contains filtered or unexported fields */}
	SortModeCreated = SortMode{/* contains filtered or unexported fields */}
)

Public constants for sortMode values

View Source
var (
	ThemeSystem = Theme{/* contains filtered or unexported fields */}
	ThemeLight  = Theme{/* contains filtered or unexported fields */}
	ThemeDark   = Theme{/* contains filtered or unexported fields */}
)

Public constants for theme values

View Source
var (
	ViewModeGrid  = ViewMode{/* contains filtered or unexported fields */}
	ViewModeCards = ViewMode{/* contains filtered or unexported fields */}
)

Public constants for viewMode values

View Source
var ActorTypeNames = []string{
	"user",
	"token",
	"public",
}

ActorTypeNames contains all possible enum names

ActorTypeValues contains all possible enum values

View Source
var AuditActionNames = []string{
	"read",
	"create",
	"update",
	"delete",
}

AuditActionNames contains all possible enum names

AuditActionValues contains all possible enum values

View Source
var AuditResultNames = []string{
	"success",
	"denied",
	"notfound",
}

AuditResultNames contains all possible enum names

AuditResultValues contains all possible enum values

View Source
var DbTypeNames = []string{
	"sqlite",
	"postgres",
}

DbTypeNames contains all possible enum names

View Source
var DbTypeValues = []DbType{
	DbTypeSQLite,
	DbTypePostgres,
}

DbTypeValues contains all possible enum values

View Source
var PermissionNames = []string{
	"none",
	"read",
	"write",
	"readwrite",
}

PermissionNames contains all possible enum names

PermissionValues contains all possible enum values

View Source
var SecretsFilterNames = []string{
	"all",
	"secretsonly",
	"keysonly",
}

SecretsFilterNames contains all possible enum names

SecretsFilterValues contains all possible enum values

View Source
var SortModeNames = []string{
	"updated",
	"key",
	"size",
	"created",
}

SortModeNames contains all possible enum names

SortModeValues contains all possible enum values

View Source
var ThemeNames = []string{
	"system",
	"light",
	"dark",
}

ThemeNames contains all possible enum names

View Source
var ThemeValues = []Theme{
	ThemeSystem,
	ThemeLight,
	ThemeDark,
}

ThemeValues contains all possible enum values

View Source
var ViewModeNames = []string{
	"grid",
	"cards",
}

ViewModeNames contains all possible enum names

View Source
var ViewModeValues = []ViewMode{
	ViewModeGrid,
	ViewModeCards,
}

ViewModeValues contains all possible enum values

Functions

func ActorTypeIter added in v0.18.0

func ActorTypeIter() func(yield func(ActorType) bool)

ActorTypeIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all ActorType values in declaration order. Example:

for v := range ActorTypeIter() {
    // use v
}

func AuditActionIter added in v0.18.0

func AuditActionIter() func(yield func(AuditAction) bool)

AuditActionIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all AuditAction values in declaration order. Example:

for v := range AuditActionIter() {
    // use v
}

func AuditResultIter added in v0.18.0

func AuditResultIter() func(yield func(AuditResult) bool)

AuditResultIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all AuditResult values in declaration order. Example:

for v := range AuditResultIter() {
    // use v
}

func DbTypeIter

func DbTypeIter() func(yield func(DbType) bool)

DbTypeIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all DbType values in declaration order. Example:

for v := range DbTypeIter() {
    // use v
}

func PermissionIter

func PermissionIter() func(yield func(Permission) bool)

PermissionIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all Permission values in declaration order. Example:

for v := range PermissionIter() {
    // use v
}

func SecretsFilterIter added in v0.15.0

func SecretsFilterIter() func(yield func(SecretsFilter) bool)

SecretsFilterIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all SecretsFilter values in declaration order. Example:

for v := range SecretsFilterIter() {
    // use v
}

func SortModeIter

func SortModeIter() func(yield func(SortMode) bool)

SortModeIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all SortMode values in declaration order. Example:

for v := range SortModeIter() {
    // use v
}

func ThemeIter

func ThemeIter() func(yield func(Theme) bool)

ThemeIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all Theme values in declaration order. Example:

for v := range ThemeIter() {
    // use v
}

func ViewModeIter

func ViewModeIter() func(yield func(ViewMode) bool)

ViewModeIter returns a function compatible with Go 1.23's range-over-func syntax. It yields all ViewMode values in declaration order. Example:

for v := range ViewModeIter() {
    // use v
}

Types

type ActorType added in v0.18.0

type ActorType struct {
	// contains filtered or unexported fields
}

ActorType is the exported type for the enum

func MustActorType added in v0.18.0

func MustActorType(v string) ActorType

MustActorType is like ParseActorType but panics if string is invalid

func ParseActorType added in v0.18.0

func ParseActorType(v string) (ActorType, error)

ParseActorType converts string to actorType enum value. Parsing is always case-insensitive.

func (ActorType) Index added in v0.18.0

func (e ActorType) Index() int

Index returns the underlying integer value

func (ActorType) MarshalText added in v0.18.0

func (e ActorType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (ActorType) String added in v0.18.0

func (e ActorType) String() string

func (*ActorType) UnmarshalText added in v0.18.0

func (e *ActorType) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type AuditAction added in v0.18.0

type AuditAction struct {
	// contains filtered or unexported fields
}

AuditAction is the exported type for the enum

func MustAuditAction added in v0.18.0

func MustAuditAction(v string) AuditAction

MustAuditAction is like ParseAuditAction but panics if string is invalid

func ParseAuditAction added in v0.18.0

func ParseAuditAction(v string) (AuditAction, error)

ParseAuditAction converts string to auditAction enum value. Parsing is always case-insensitive.

func (AuditAction) Index added in v0.18.0

func (e AuditAction) Index() int

Index returns the underlying integer value

func (AuditAction) MarshalText added in v0.18.0

func (e AuditAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (AuditAction) String added in v0.18.0

func (e AuditAction) String() string

func (*AuditAction) UnmarshalText added in v0.18.0

func (e *AuditAction) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type AuditResult added in v0.18.0

type AuditResult struct {
	// contains filtered or unexported fields
}

AuditResult is the exported type for the enum

func MustAuditResult added in v0.18.0

func MustAuditResult(v string) AuditResult

MustAuditResult is like ParseAuditResult but panics if string is invalid

func ParseAuditResult added in v0.18.0

func ParseAuditResult(v string) (AuditResult, error)

ParseAuditResult converts string to auditResult enum value. Parsing is always case-insensitive.

func (AuditResult) Index added in v0.18.0

func (e AuditResult) Index() int

Index returns the underlying integer value

func (AuditResult) MarshalText added in v0.18.0

func (e AuditResult) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (AuditResult) String added in v0.18.0

func (e AuditResult) String() string

func (*AuditResult) UnmarshalText added in v0.18.0

func (e *AuditResult) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type DbType

type DbType struct {
	// contains filtered or unexported fields
}

DbType is the exported type for the enum

func MustDbType

func MustDbType(v string) DbType

MustDbType is like ParseDbType but panics if string is invalid

func ParseDbType

func ParseDbType(v string) (DbType, error)

ParseDbType converts string to dbType enum value. Parsing is always case-insensitive.

func (DbType) Index

func (e DbType) Index() int

Index returns the underlying integer value

func (DbType) MarshalText

func (e DbType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (DbType) String

func (e DbType) String() string

func (*DbType) UnmarshalText

func (e *DbType) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type Permission

type Permission struct {
	// contains filtered or unexported fields
}

Permission is the exported type for the enum

func MustPermission

func MustPermission(v string) Permission

MustPermission is like ParsePermission but panics if string is invalid

func ParsePermission

func ParsePermission(v string) (Permission, error)

ParsePermission converts string to permission enum value. Parsing is always case-insensitive.

func (Permission) CanRead

func (p Permission) CanRead() bool

CanRead returns true if the permission allows reading.

func (Permission) CanWrite

func (p Permission) CanWrite() bool

CanWrite returns true if the permission allows writing.

func (Permission) Index

func (e Permission) Index() int

Index returns the underlying integer value

func (Permission) MarshalText

func (e Permission) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (Permission) String

func (e Permission) String() string

func (*Permission) UnmarshalText

func (e *Permission) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type SecretsFilter added in v0.15.0

type SecretsFilter struct {
	// contains filtered or unexported fields
}

SecretsFilter is the exported type for the enum

func MustSecretsFilter added in v0.15.0

func MustSecretsFilter(v string) SecretsFilter

MustSecretsFilter is like ParseSecretsFilter but panics if string is invalid

func ParseSecretsFilter added in v0.15.0

func ParseSecretsFilter(v string) (SecretsFilter, error)

ParseSecretsFilter converts string to secretsFilter enum value. Parsing is always case-insensitive.

func (SecretsFilter) Index added in v0.15.0

func (e SecretsFilter) Index() int

Index returns the underlying integer value

func (SecretsFilter) Label added in v0.15.0

func (s SecretsFilter) Label() string

Label returns a user-friendly label for the filter.

func (SecretsFilter) MarshalText added in v0.15.0

func (e SecretsFilter) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (SecretsFilter) Next added in v0.15.0

func (s SecretsFilter) Next() SecretsFilter

Next returns the next secrets filter in the cycle: all -> secrets -> keys -> all.

func (SecretsFilter) String added in v0.15.0

func (e SecretsFilter) String() string

func (*SecretsFilter) UnmarshalText added in v0.15.0

func (e *SecretsFilter) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type SortMode

type SortMode struct {
	// contains filtered or unexported fields
}

SortMode is the exported type for the enum

func MustSortMode

func MustSortMode(v string) SortMode

MustSortMode is like ParseSortMode but panics if string is invalid

func ParseSortMode

func ParseSortMode(v string) (SortMode, error)

ParseSortMode converts string to sortMode enum value. Parsing is always case-insensitive.

func (SortMode) Index

func (e SortMode) Index() int

Index returns the underlying integer value

func (SortMode) MarshalText

func (e SortMode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (SortMode) Next

func (s SortMode) Next() SortMode

Next returns the next sort mode in the cycle: updated -> key -> size -> created -> updated.

func (SortMode) String

func (e SortMode) String() string

func (*SortMode) UnmarshalText

func (e *SortMode) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type Theme

type Theme struct {
	// contains filtered or unexported fields
}

Theme is the exported type for the enum

func MustTheme

func MustTheme(v string) Theme

MustTheme is like ParseTheme but panics if string is invalid

func ParseTheme

func ParseTheme(v string) (Theme, error)

ParseTheme converts string to theme enum value. Parsing is always case-insensitive.

func (Theme) Index

func (e Theme) Index() int

Index returns the underlying integer value

func (Theme) MarshalText

func (e Theme) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (Theme) String

func (e Theme) String() string

func (Theme) Toggle

func (t Theme) Toggle() Theme

Toggle returns the opposite theme (dark↔light). System defaults to dark.

func (*Theme) UnmarshalText

func (e *Theme) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

type ViewMode

type ViewMode struct {
	// contains filtered or unexported fields
}

ViewMode is the exported type for the enum

func MustViewMode

func MustViewMode(v string) ViewMode

MustViewMode is like ParseViewMode but panics if string is invalid

func ParseViewMode

func ParseViewMode(v string) (ViewMode, error)

ParseViewMode converts string to viewMode enum value. Parsing is always case-insensitive.

func (ViewMode) Index

func (e ViewMode) Index() int

Index returns the underlying integer value

func (ViewMode) MarshalText

func (e ViewMode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (ViewMode) String

func (e ViewMode) String() string

func (ViewMode) Toggle

func (v ViewMode) Toggle() ViewMode

Toggle returns the opposite view mode (grid↔cards).

func (*ViewMode) UnmarshalText

func (e *ViewMode) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler

Jump to

Keyboard shortcuts

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