Documentation ¶
Index ¶
- Variables
- func GetClusterRole() string
- func GetConfigRaw() map[string]interface{}
- func GetDeployPrefix() string
- func GetMinioRaw() map[string]interface{}
- func GetNamespace() string
- func GetRaw(input interface{}) map[string]interface{}
- func GetWebhooks() []webhook.Webhook
- func GetWorkspacePath(name string) string
- func New(filename string) error
- func SetNamespace(namespace string)
- func Validate() error
- func Volume() tkn.WorkspaceBinding
- func Workspaces() []tkn.WorkspaceDeclaration
- type Config
- type Hash
- type Ingress
- type Minio
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ScheduledTimeAnnotation = "play.ci.w6d.io/scheduled-at"
)
config implements Config struct
Functions ¶
func GetClusterRole ¶
func GetClusterRole() string
GetClusterRole returns the ClusterRole from config
func GetConfigRaw ¶
func GetConfigRaw() map[string]interface{}
GetConfigRaw returns the Config structure in map[string]interface
func GetDeployPrefix ¶
func GetDeployPrefix() string
GetDeployPrefix returns the prefix to use for deploy namespace name
func GetNamespace ¶
func GetNamespace() string
func GetRaw ¶
func GetRaw(input interface{}) map[string]interface{}
GetRaw return a map[string]interface from the interface
func GetWebhooks ¶
GetWebhooks returns the list of url where to send the event
func GetWorkspacePath ¶
GetWorkspacePath returns path from workspace
func SetNamespace ¶ added in v0.1.1
func SetNamespace(namespace string)
func Workspaces ¶
func Workspaces() []tkn.WorkspaceDeclaration
Workspaces returns list of Tekton WorkspaceDeclaration
Types ¶
type Config ¶
type Config struct { DefaultDomain string `json:"domain" yaml:"domain"` ClusterRole string `json:"cluster_role" yaml:"cluster_role"` PodTemplate *tkn.PodTemplate `json:"podTemplate" yaml:"pod_template"` Workspaces []tkn.WorkspaceDeclaration `json:"workspaces" yaml:"workspaces"` Ingress Ingress `json:"ingress" yaml:"ingress"` Volume tkn.WorkspaceBinding `json:"volume" yaml:"volume"` Namespace string `json:"namespace" yaml:"namespace"` // Hash is use for provide unpredictable string from an integer Hash Hash `json:"hash" yaml:"hash"` // Minio contains all minio information for the connection the could be omitted Minio *Minio `json:"minio,omitempty" yaml:"minio,omitempty"` // DeployPrefix is used to build namespace name where application will be deployed // default values is cx DeployPrefix string `json:"deploy_prefix" yaml:"deploy_prefix"` // WebHooks contains a list of WebHook where payload will be send Webhooks []webhook.Webhook `json:"webhooks" yaml:"webhooks"` }
Config controller common parameter
type Ingress ¶
type Ingress struct { Class string `json:"class" yaml:"class"` Prefix string `json:"prefix" yaml:"prefix"` Issuer string `json:"issuer" yaml:"issuer"` }
Ingress struct
type Minio ¶
type Minio struct { Host string `json:"host" yaml:"host"` AccessKey string `json:"access_key" yaml:"access_key"` SecretKey string `json:"secret_key" yaml:"secret_key"` Bucket string `json:"bucket" yaml:"bucket"` }
func (*Minio) GetAccessKey ¶
GetAccessKey method returns the access_key from Minio structure
func (*Minio) GetSecretKey ¶
GetSecretKey method returns the secret_key from Minio structure
Click to show internal directories.
Click to hide internal directories.