value

package
v16.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3StorageListValue added in v16.12.0

func NewS3StorageListValue(p *[]S3Storage, val []S3Storage, separator string) *s3StorageListValue

Types

type AbsolutePath

type AbsolutePath string

func NewAbsolutePath

func NewAbsolutePath(p *string, val string) *AbsolutePath

func (*AbsolutePath) IsEmpty

func (s *AbsolutePath) IsEmpty() bool

func (*AbsolutePath) Set

func (s *AbsolutePath) Set(val string) error

func (*AbsolutePath) String

func (s *AbsolutePath) String() string

func (*AbsolutePath) Validate

func (s *AbsolutePath) Validate() error

type Address

type Address string

func NewAddress

func NewAddress(p *string, val string) *Address

func (*Address) IsEmpty

func (s *Address) IsEmpty() bool

func (*Address) Set

func (s *Address) Set(val string) error

func (*Address) String

func (s *Address) String() string

func (*Address) Validate

func (s *Address) Validate() error

type Auth0Tenant

type Auth0Tenant struct {
	Domain   string   `json:"domain"`
	Audience string   `json:"audience"`
	ClientID string   `json:"clientid"`
	Users    []string `json:"users"`
}

func (*Auth0Tenant) String added in v16.12.0

func (a *Auth0Tenant) String() string

type Bool

type Bool bool

func NewBool

func NewBool(p *bool, val bool) *Bool

func (*Bool) IsEmpty

func (b *Bool) IsEmpty() bool

func (*Bool) Set

func (b *Bool) Set(val string) error

func (*Bool) String

func (b *Bool) String() string

func (*Bool) Validate

func (b *Bool) Validate() error

type CIDRList

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

func NewCIDRList

func NewCIDRList(p *[]string, val []string, separator string) *CIDRList

func (*CIDRList) IsEmpty

func (s *CIDRList) IsEmpty() bool

func (*CIDRList) Set

func (s *CIDRList) Set(val string) error

func (*CIDRList) String

func (s *CIDRList) String() string

func (*CIDRList) Validate

func (s *CIDRList) Validate() error

type CORSOrigins

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

func NewCORSOrigins

func NewCORSOrigins(p *[]string, val []string, separator string) *CORSOrigins

func (*CORSOrigins) IsEmpty

func (s *CORSOrigins) IsEmpty() bool

func (*CORSOrigins) Set

func (s *CORSOrigins) Set(val string) error

func (*CORSOrigins) String

func (s *CORSOrigins) String() string

func (*CORSOrigins) Validate

func (s *CORSOrigins) Validate() error

type Dir

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

func NewDir

func NewDir(p *string, val string, fs fs.Filesystem) *Dir

func (*Dir) IsEmpty

func (u *Dir) IsEmpty() bool

func (*Dir) Set

func (u *Dir) Set(val string) error

func (*Dir) String

func (u *Dir) String() string

func (*Dir) Validate

func (u *Dir) Validate() error

type Email

type Email string

func NewEmail

func NewEmail(p *string, val string) *Email

func (*Email) IsEmpty

func (s *Email) IsEmpty() bool

func (*Email) Set

func (s *Email) Set(val string) error

func (*Email) String

func (s *Email) String() string

func (*Email) Validate

func (s *Email) Validate() error

type Exec

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

func NewExec

func NewExec(p *string, val string, fs fs.Filesystem) *Exec

func (*Exec) IsEmpty

func (u *Exec) IsEmpty() bool

func (*Exec) Set

func (u *Exec) Set(val string) error

func (*Exec) String

func (u *Exec) String() string

func (*Exec) Validate

func (u *Exec) Validate() error

type File

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

func NewFile

func NewFile(p *string, val string, fs fs.Filesystem) *File

func (*File) IsEmpty

func (u *File) IsEmpty() bool

func (*File) Set

func (u *File) Set(val string) error

func (*File) String

func (u *File) String() string

func (*File) Validate

func (u *File) Validate() error

type Int

type Int int

func NewInt

func NewInt(p *int, val int) *Int

func (*Int) IsEmpty

func (i *Int) IsEmpty() bool

func (*Int) Set

func (i *Int) Set(val string) error

func (*Int) String

func (i *Int) String() string

func (*Int) Validate

func (i *Int) Validate() error

type Int64

type Int64 int64

func NewInt64

func NewInt64(p *int64, val int64) *Int64

func (*Int64) IsEmpty

func (u *Int64) IsEmpty() bool

func (*Int64) Set

func (u *Int64) Set(val string) error

func (*Int64) String

func (u *Int64) String() string

func (*Int64) Validate

func (u *Int64) Validate() error

type MustDir

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

func NewMustDir

func NewMustDir(p *string, val string, fs fs.Filesystem) *MustDir

func (*MustDir) IsEmpty

func (u *MustDir) IsEmpty() bool

func (*MustDir) Set

func (u *MustDir) Set(val string) error

func (*MustDir) String

func (u *MustDir) String() string

func (*MustDir) Validate

func (u *MustDir) Validate() error

type Port

type Port int

func NewPort

func NewPort(p *int, val int) *Port

func (*Port) IsEmpty

func (i *Port) IsEmpty() bool

func (*Port) Set

func (i *Port) Set(val string) error

func (*Port) String

func (i *Port) String() string

func (*Port) Validate

func (i *Port) Validate() error

type S3Storage added in v16.12.0

type S3Storage struct {
	Name            string        `json:"name"`
	Mountpoint      string        `json:"mountpoint"`
	Auth            S3StorageAuth `json:"auth"`
	Endpoint        string        `json:"endpoint"`
	AccessKeyID     string        `json:"access_key_id"`
	SecretAccessKey string        `json:"secret_access_key"`
	Bucket          string        `json:"bucket"`
	Region          string        `json:"region"`
	UseSSL          bool          `json:"use_ssl"`
}

func (*S3Storage) String added in v16.12.0

func (t *S3Storage) String() string

type S3StorageAuth added in v16.13.0

type S3StorageAuth struct {
	Enable   bool   `json:"enable"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type String

type String string

func NewString

func NewString(p *string, val string) *String

func (*String) IsEmpty

func (s *String) IsEmpty() bool

func (*String) Set

func (s *String) Set(val string) error

func (*String) String

func (s *String) String() string

func (*String) Validate

func (s *String) Validate() error

type StringList

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

func NewStringList

func NewStringList(p *[]string, val []string, separator string) *StringList

func (*StringList) IsEmpty

func (s *StringList) IsEmpty() bool

func (*StringList) Set

func (s *StringList) Set(val string) error

func (*StringList) String

func (s *StringList) String() string

func (*StringList) Validate

func (s *StringList) Validate() error

type StringMapString

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

func NewStringMapString

func NewStringMapString(p *map[string]string, val map[string]string) *StringMapString

func (*StringMapString) IsEmpty

func (s *StringMapString) IsEmpty() bool

func (*StringMapString) Set

func (s *StringMapString) Set(val string) error

func (*StringMapString) String

func (s *StringMapString) String() string

func (*StringMapString) Validate

func (s *StringMapString) Validate() error

type TenantList

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

func NewTenantList

func NewTenantList(p *[]Auth0Tenant, val []Auth0Tenant, separator string) *TenantList

func (*TenantList) IsEmpty

func (s *TenantList) IsEmpty() bool

func (*TenantList) Set

func (s *TenantList) Set(val string) error

Set allows to set a tenant list in two formats: - a separator separated list of bas64 encoded Auth0Tenant JSON objects - a separator separated list of Auth0Tenant in URL representation: auth0://[clientid]@[domain]?aud=[audience]&user=...&user=...

func (*TenantList) String

func (s *TenantList) String() string

func (*TenantList) Validate

func (s *TenantList) Validate() error

type Time

type Time time.Time

func NewTime

func NewTime(p *time.Time, val time.Time) *Time

func (*Time) IsEmpty

func (u *Time) IsEmpty() bool

func (*Time) Set

func (u *Time) Set(val string) error

func (*Time) String

func (u *Time) String() string

func (*Time) Validate

func (u *Time) Validate() error

type URL

type URL string

func NewURL

func NewURL(p *string, val string) *URL

func (*URL) IsEmpty

func (u *URL) IsEmpty() bool

func (*URL) Set

func (u *URL) Set(val string) error

func (*URL) String

func (u *URL) String() string

func (*URL) Validate

func (u *URL) Validate() error

type Uint64

type Uint64 uint64

func NewUint64

func NewUint64(p *uint64, val uint64) *Uint64

func (*Uint64) IsEmpty

func (u *Uint64) IsEmpty() bool

func (*Uint64) Set

func (u *Uint64) Set(val string) error

func (*Uint64) String

func (u *Uint64) String() string

func (*Uint64) Validate

func (u *Uint64) Validate() error

type Value

type Value interface {
	// String returns a string representation of the value.
	String() string

	// Set a new value for the value. Returns an
	// error if the given string representation can't
	// be transformed to the value. Returns nil
	// if the new value has been set.
	Set(string) error

	// Validate the value. The returned error will
	// indicate what is wrong with the current value.
	// Returns nil if the value is OK.
	Validate() error

	// IsEmpty returns whether the value represents an empty
	// representation for that value.
	IsEmpty() bool
}

Jump to

Keyboard shortcuts

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