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 Environments ¶
type Environments []Environment
func (Environments) Contains ¶
func (envs Environments) Contains(e Environment) bool
Click to show internal directories.
Click to hide internal directories.