types

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

func (*HelmProductionYaml) GetServiceName added in v0.0.23

func (hpy *HelmProductionYaml) GetServiceName() string

func (*HelmProductionYaml) LoadFromFile

func (hpy *HelmProductionYaml) LoadFromFile(filePath string) error

func (*HelmProductionYaml) SetAnnotations

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

func (*HelmProductionYaml) SetServiceType

func (hpy *HelmProductionYaml) SetServiceType(serviceType string)

func (*HelmProductionYaml) WriteToFile

func (hpy *HelmProductionYaml) WriteToFile(filePath string) error

type ServiceManifest

type ServiceManifest interface {
	LoadFromFile(string) error
	WriteToFile(string) error
	SetAnnotations(map[string]string)
	SetServiceType(string)
	GetServiceName() string
}

type ServiceYaml

type ServiceYaml struct {
	*corev1.Service
}

func (*ServiceYaml) GetServiceName added in v0.0.23

func (sy *ServiceYaml) GetServiceName() string

func (*ServiceYaml) LoadFromFile

func (sy *ServiceYaml) LoadFromFile(filePath string) error

func (*ServiceYaml) SetAnnotations

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

func (*ServiceYaml) SetServiceType

func (sy *ServiceYaml) SetServiceType(serviceType string)

func (*ServiceYaml) WriteToFile

func (hpy *ServiceYaml) WriteToFile(filePath string) error

Jump to

Keyboard shortcuts

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