Documentation ¶
Index ¶
Constants ¶
View Source
const ( EntityProject = "project" ProjectStoragePathKey = "STORAGE_PATH" ProjectSchedulerHost = "SCHEDULER_HOST" )
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 Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (*Project) GetConfigs ¶
GetConfigs returns a clone of project configurations
func (*Project) Name ¶
func (p *Project) Name() ProjectName
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.