common

package
v0.0.0-...-8766ec0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ErrPackageChartMsg = "Error when packaging chart: %s"

Variables

This section is empty.

Functions

func GetHelmChartURI

func GetHelmChartURI(chartName string) string

func GetRenderedDeployments

func GetRenderedDeployments(ch *chart.Chart) ([]*appsv1.Deployment, error)

GetRenderedDeployments returns all deployments contained in the provided chart

func GetRenderedServices

func GetRenderedServices(ch *chart.Chart) ([]*typesv1.Service, error)

GetRenderedServices returns all services contained in the provided chart

func IsDeployment

func IsDeployment(dpl *appsv1.Deployment) bool

IsDeployment tests whether the provided struct is a deployment

func IsService

func IsService(svc *typesv1.Service) bool

IsService tests whether the provided struct is a service

func LoadChart

func LoadChart(data []byte) (*chart.Chart, error)

LoadChart converts a byte array into a Chart

func LoadChartFromPath

func LoadChartFromPath(path string) (*chart.Chart, error)

LoadChartFromPath loads a directory or Helm chart into a Chart

func NewChartPackager

func NewChartPackager() *chartPackager

NewChartPackager creates a new chartPackager instance

func NewChartRetriever

func NewChartRetriever(resourceHandler *goutils.ResourceHandler) *chartRetriever

NewChartRetriever creates a new chartRetriever instance

func NewChartStorer

func NewChartStorer(resourceHandler *goutils.ResourceHandler) *chartStorer

NewChartStorer creates a new chartStorer instance

Types

type RetrieveChartOptions

type RetrieveChartOptions struct {
	Project   string
	Service   string
	Stage     string
	ChartName string
	CommitID  string
}

RetrieveChartOptions are the parameters to obtain a chart

type StoreChartOptions

type StoreChartOptions struct {
	Project   string
	Service   string
	Stage     string
	ChartName string
	HelmChart []byte
}

Jump to

Keyboard shortcuts

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