Documentation ¶
Index ¶
- Constants
- type Namespace
- type NamespaceName
- type PlainTextSecret
- type PlainTextSecrets
- type Preset
- type Project
- func (p *Project) GetConfig(key string) (string, error)
- func (p *Project) GetConfigs() map[string]string
- func (p *Project) GetPreset(name string) (Preset, error)
- func (p *Project) GetPresets() map[string]Preset
- func (p *Project) Name() ProjectName
- func (p *Project) SetPresets(presets map[string]Preset)
- type ProjectName
- type Secret
- type SecretMap
- type SecretName
- type Tenant
- type WithDetails
Constants ¶
View Source
const ( EntityProject = "project" ProjectStoragePathKey = "STORAGE_PATH" ProjectSchedulerHost = "SCHEDULER_HOST" ProjectSchedulerVersion = "SCHEDULER_VERSION" )
View Source
const ( EntitySecret = "secret" SecretStorageKey = "STORAGE" SecretSchedulerAuth = "SCHEDULER_AUTH" SecretNotifySlack = "NOTIFY_SLACK" )
View Source
const EntityNamespace = "namespace"
View Source
const EntityTenant = "tenant"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
func NewNamespace ¶
func (*Namespace) GetConfigs ¶
GetConfigs returns a clone on project configurations
func (*Namespace) Name ¶
func (n *Namespace) Name() NamespaceName
func (*Namespace) ProjectName ¶
func (n *Namespace) ProjectName() ProjectName
type NamespaceName ¶
type NamespaceName string
func NamespaceNameFrom ¶
func NamespaceNameFrom(name string) (NamespaceName, error)
func (NamespaceName) String ¶
func (n NamespaceName) String() string
type PlainTextSecret ¶
type PlainTextSecret struct {
// contains filtered or unexported fields
}
func NewPlainTextSecret ¶
func NewPlainTextSecret(name, value string) (*PlainTextSecret, error)
func (*PlainTextSecret) Name ¶
func (p *PlainTextSecret) Name() SecretName
func (*PlainTextSecret) Value ¶
func (p *PlainTextSecret) Value() string
type PlainTextSecrets ¶
type PlainTextSecrets []*PlainTextSecret
func (PlainTextSecrets) ToSecretMap ¶ added in v0.9.0
func (p PlainTextSecrets) ToSecretMap() SecretMap
type Preset ¶ added in v0.10.0
type Preset struct {
// contains filtered or unexported fields
}
func NewPresetWithConfig ¶ added in v0.11.0
func NewPresetWithConfig(name, description string, conf window.SimpleConfig) Preset
func (Preset) Config ¶ added in v0.11.0
func (p Preset) Config() window.SimpleConfig
func (Preset) Description ¶ added in v0.10.0
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (*Project) GetConfigs ¶
GetConfigs returns a clone of project configurations
func (*Project) GetPresets ¶ added in v0.10.0
func (*Project) Name ¶
func (p *Project) Name() ProjectName
func (*Project) SetPresets ¶ added in v0.10.0
type ProjectName ¶
type ProjectName string
func ProjectNameFrom ¶
func ProjectNameFrom(name string) (ProjectName, error)
func (ProjectName) String ¶
func (pn ProjectName) String() string
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
func NewSecret ¶
func NewSecret(name, encodedValue string, projName ProjectName, nsName string) (*Secret, error)
func (*Secret) EncodedValue ¶
func (*Secret) Name ¶
func (s *Secret) Name() SecretName
func (*Secret) NamespaceName ¶
func (*Secret) ProjectName ¶
func (s *Secret) ProjectName() ProjectName
type SecretName ¶
type SecretName string
func SecretNameFrom ¶
func SecretNameFrom(name string) (SecretName, error)
func (SecretName) String ¶
func (sn SecretName) String() string
type Tenant ¶
type Tenant struct {
// contains filtered or unexported fields
}
func (Tenant) NamespaceName ¶
func (t Tenant) NamespaceName() NamespaceName
func (Tenant) ProjectName ¶
func (t Tenant) ProjectName() ProjectName
type WithDetails ¶
type WithDetails struct {
// contains filtered or unexported fields
}
func NewTenantDetails ¶
func NewTenantDetails(proj *Project, namespace *Namespace, secrets PlainTextSecrets) (*WithDetails, error)
func (*WithDetails) GetConfigs ¶
func (w *WithDetails) GetConfigs() map[string]string
func (*WithDetails) Namespace ¶
func (w *WithDetails) Namespace() *Namespace
func (*WithDetails) Project ¶
func (w *WithDetails) Project() *Project
func (*WithDetails) SecretsMap ¶
func (w *WithDetails) SecretsMap() map[string]string
func (*WithDetails) ToTenant ¶
func (w *WithDetails) ToTenant() Tenant
Click to show internal directories.
Click to hide internal directories.