config

package
v0.0.0-...-f7bf3b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRule

type BuildRule struct {
	Branch                 string       `json:"branch"`
	Private                bool         `json:"private"`
	BazelVersion           string       `json:"bazel_version"`
	Target                 string       `json:"target"`
	DockerConfigSecretName string       `json:"docker_config_secret_name"`
	Artifacts              []string     `json:"artifacts"`
	Env                    []Env        `json:"env"`
	PostProcess            *PostProcess `json:"post_process"`
}

func ParseBuildRule

func ParseBuildRule(v string) (*BuildRule, error)

type Config

type Config struct {
	WebhookListener         string      `json:"webhook_listener"`
	BuildNamespace          string      `json:"build_namespace"`
	GitHubTokenFile         string      `json:"github_token_file"`
	GitHubAppId             int64       `json:"app_id"`
	GitHubInstallationId    int64       `json:"installation_id"`
	GitHubAppPrivateKeyFile string      `json:"app_private_key_file"`
	PrivateKeySecretName    string      `json:"private_key_secret_name"`
	StorageHost             string      `json:"storage_host"`
	StorageTokenSecretName  string      `json:"storage_token_secret_name"`
	ArtifactBucket          string      `json:"artifact_bucket"`
	HostAliases             []HostAlias `json:"host_aliases"`
	CommitAuthor            string      `json:"commit_author"`
	CommitEmail             string      `json:"commit_email"`
	AllowRepositories       []string    `json:"allow_repositories"`
	SafeMode                bool        `json:"safe_mode"`

	GitHubToken string `json:"-"`
}

func ReadConfig

func ReadConfig(p string) (*Config, error)

type DNSControlRule

type DNSControlRule struct {
	MasterBranch string          `json:"master_branch"`
	Image        string          `json:"image"`
	Dir          string          `json:"dir"`
	Secret       *SecretSelector `json:"secret"`
}

func ParseDNSControlRule

func ParseDNSControlRule(v string) (*DNSControlRule, error)

type Env

type Env struct {
	Name   string        `json:"name"`
	Value  string        `json:"value,omitempty"`
	Secret *SecretSource `json:"secret,omitempty"`
}

func (Env) ToEnvVar

func (e Env) ToEnvVar() corev1.EnvVar

type HostAlias

type HostAlias struct {
	Hostnames []string `json:"hostnames"`
	IP        string   `json:"ip"`
}

type PostProcess

type PostProcess struct {
	Repo  string   `json:"repo"`
	Image string   `json:"image"`
	Paths []string `json:"paths"`
}

type SecretSelector

type SecretSelector struct {
	EnvName string `json:"env_name"`
	Name    string `json:"name"`
	Key     string `json:"key"`
}

type SecretSource

type SecretSource struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL