Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllEnvironments = Environments{ Sandbox, Test, Staging, Prod, }
Functions ¶
This section is empty.
Types ¶
type ClientID ¶
type ClientID struct { Identifier uuid.UUID `yaml:"-,omitempty"` Name string `yaml:""` Description string `yaml:",omitempty"` Owner string `yaml:""` Environments Environments `yaml:",flow,omitempty"` NotBefore time.Time `yaml:"notBefore,omitempty"` Expires time.Time `yaml:",omitempty"` Properties map[string]interface{} `yaml:",omitempty"` }
func (*ClientID) EmbedIntoContext ¶
func (*ClientID) ExtractProperty ¶
type Environment ¶
type Environment string
const ( Sandbox Environment = "sandbox" Test Environment = "test" Staging Environment = "staging" Prod Environment = "prod" )
func (Environment) Validate ¶
func (e Environment) Validate() error
type EnvironmentMask ¶ added in v0.6.1
type EnvironmentMask uint8
func (EnvironmentMask) Disjoint ¶ added in v0.6.1
func (mask EnvironmentMask) Disjoint(other EnvironmentMask) bool
type Environments ¶
type Environments []Environment
func (Environments) Contains ¶
func (envs Environments) Contains(e Environment) bool
func (Environments) Mask ¶ added in v0.6.1
func (envs Environments) Mask() EnvironmentMask
Click to show internal directories.
Click to hide internal directories.