workflows

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkflows

func CreateWorkflows(dest string, config *WorkflowConfig) error

Types

type DeploymentYaml added in v0.0.9

type DeploymentYaml struct {
	ApiVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	Metadata   metadata `yaml:"metadata"`
	Spec       spec     `yaml:"spec"`
}

type GitHubWorkflow

type GitHubWorkflow struct {
	Name string
	On   on `yaml:"on"`
	Env  map[string]string
	Jobs map[string]job
}

GitHubWorkflow is a rough struct to allow for yaml editing including deletion of Job steps

type HelmProductionYaml added in v0.0.9

type HelmProductionYaml struct {
	ImageKey imageKey `yaml:"imageKey"`
	Service  service  `yaml:"service"`
}

func (*HelmProductionYaml) SetAnnotations added in v0.0.9

func (hpy *HelmProductionYaml) SetAnnotations(annotations map[string]string)

func (*HelmProductionYaml) SetServiceType added in v0.0.9

func (hpy *HelmProductionYaml) SetServiceType(serviceType string)

type ServiceManifest added in v0.0.9

type ServiceManifest interface {
	SetAnnotations(map[string]string)
	SetServiceType(string)
}

type ServiceYaml added in v0.0.9

type ServiceYaml struct {
	ApiVersion string      `yaml:"apiVersion"`
	Kind       string      `yaml:"kind"`
	Metadata   metadata    `yaml:"metadata"`
	Spec       serviceSpec `yaml:"spec"`
}

func (*ServiceYaml) SetAnnotations added in v0.0.9

func (sy *ServiceYaml) SetAnnotations(annotations map[string]string)

func (*ServiceYaml) SetServiceType added in v0.0.9

func (sy *ServiceYaml) SetServiceType(serviceType string)

type WorkflowConfig

type WorkflowConfig struct {
	AcrName           string
	ContainerName     string
	ResourceGroupName string
	AksClusterName    string
	BranchName        string
	// contains filtered or unexported fields
}

func (*WorkflowConfig) ValidateAndFillConfig

func (config *WorkflowConfig) ValidateAndFillConfig()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳