runcontext

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipelines added in v1.18.0

type Pipelines struct {
	// contains filtered or unexported fields
}

Pipelines encapsulates multiple config pipelines

func NewPipelines added in v1.18.0

func NewPipelines(pipelines []latestV1.Pipeline) Pipelines

func (Pipelines) All added in v1.18.0

func (ps Pipelines) All() []latestV1.Pipeline

All returns all config pipelines.

func (Pipelines) Artifacts added in v1.18.0

func (ps Pipelines) Artifacts() []*latestV1.Artifact

func (Pipelines) DeployConfigs added in v1.21.0

func (ps Pipelines) DeployConfigs() []latestV1.DeployConfig

func (Pipelines) Deployers added in v1.18.0

func (ps Pipelines) Deployers() []latestV1.DeployType

func (Pipelines) Head added in v1.18.0

func (ps Pipelines) Head() latestV1.Pipeline

Head returns the first `latestV1.Pipeline`.

func (Pipelines) IsMultiPipeline added in v1.23.0

func (ps Pipelines) IsMultiPipeline() bool

IsMultiPipeline returns true if there are more than one constituent skaffold pipelines.

func (Pipelines) PortForwardResources added in v1.18.0

func (ps Pipelines) PortForwardResources() []*latestV1.PortForwardResource

func (Pipelines) Select added in v1.18.0

func (ps Pipelines) Select(imageName string) (latestV1.Pipeline, bool)

Select returns the first `latestV1.Pipeline` that matches the given artifact `imageName`.

func (Pipelines) StatusCheck added in v1.24.0

func (ps Pipelines) StatusCheck() (*bool, error)

func (Pipelines) StatusCheckDeadlineSeconds added in v1.18.0

func (ps Pipelines) StatusCheckDeadlineSeconds() int

func (Pipelines) TestCases added in v1.18.0

func (ps Pipelines) TestCases() []*latestV1.TestCase

type RunContext

type RunContext struct {
	Opts               config.SkaffoldOptions
	Pipelines          Pipelines
	KubeContext        string
	Namespaces         []string
	WorkingDir         string
	InsecureRegistries map[string]bool
	Cluster            config.Cluster
}

func GetRunContext

func GetRunContext(opts config.SkaffoldOptions, configs []*latestV1.SkaffoldConfig) (*RunContext, error)

func (*RunContext) AddSkaffoldLabels added in v1.7.1

func (rc *RunContext) AddSkaffoldLabels() bool

func (*RunContext) Artifacts added in v1.18.0

func (rc *RunContext) Artifacts() []*latestV1.Artifact

func (*RunContext) AutoBuild added in v1.7.1

func (rc *RunContext) AutoBuild() bool

func (*RunContext) AutoDeploy added in v1.7.1

func (rc *RunContext) AutoDeploy() bool

func (*RunContext) AutoSync added in v1.7.1

func (rc *RunContext) AutoSync() bool

func (*RunContext) BuildConcurrency added in v1.23.0

func (rc *RunContext) BuildConcurrency() int

func (*RunContext) CacheArtifacts added in v1.7.1

func (rc *RunContext) CacheArtifacts() bool

func (*RunContext) CacheFile added in v1.7.1

func (rc *RunContext) CacheFile() string

func (*RunContext) ConfigurationFile added in v1.7.1

func (rc *RunContext) ConfigurationFile() string

func (*RunContext) CustomLabels added in v1.7.1

func (rc *RunContext) CustomLabels() []string

func (*RunContext) CustomTag added in v1.7.1

func (rc *RunContext) CustomTag() string

func (*RunContext) DefaultPipeline added in v1.18.0

func (rc *RunContext) DefaultPipeline() latestV1.Pipeline

func (*RunContext) DefaultRepo

func (rc *RunContext) DefaultRepo() *string

func (*RunContext) DeployConfigs added in v1.21.0

func (rc *RunContext) DeployConfigs() []latestV1.DeployConfig

func (*RunContext) Deployers added in v1.18.0

func (rc *RunContext) Deployers() []latestV1.DeployType

func (*RunContext) DigestSource added in v1.7.1

func (rc *RunContext) DigestSource() string

func (*RunContext) DryRun added in v1.7.1

func (rc *RunContext) DryRun() bool

func (*RunContext) ForceDeploy added in v1.7.1

func (rc *RunContext) ForceDeploy() bool

func (*RunContext) GetCluster added in v1.7.1

func (rc *RunContext) GetCluster() config.Cluster

func (*RunContext) GetInsecureRegistries added in v1.7.1

func (rc *RunContext) GetInsecureRegistries() map[string]bool

func (*RunContext) GetKubeConfig added in v1.7.1

func (rc *RunContext) GetKubeConfig() string

func (*RunContext) GetKubeContext added in v1.7.1

func (rc *RunContext) GetKubeContext() string

func (*RunContext) GetKubeNamespace added in v1.7.1

func (rc *RunContext) GetKubeNamespace() string

func (*RunContext) GetNamespaces added in v1.7.1

func (rc *RunContext) GetNamespaces() []string

func (*RunContext) GetPipelines added in v1.18.0

func (rc *RunContext) GetPipelines() []latestV1.Pipeline

func (*RunContext) GetWorkingDir added in v1.7.1

func (rc *RunContext) GetWorkingDir() string

func (*RunContext) GlobalConfig added in v1.7.1

func (rc *RunContext) GlobalConfig() string

func (*RunContext) HydratedManifests added in v1.21.0

func (rc *RunContext) HydratedManifests() []string

func (*RunContext) IsMultiConfig added in v1.23.0

func (rc *RunContext) IsMultiConfig() bool

func (*RunContext) MinikubeProfile added in v1.7.1

func (rc *RunContext) MinikubeProfile() string

func (*RunContext) Mode added in v1.7.1

func (rc *RunContext) Mode() config.RunMode

func (*RunContext) Muted added in v1.7.1

func (rc *RunContext) Muted() config.Muted

func (*RunContext) NoPruneChildren added in v1.7.1

func (rc *RunContext) NoPruneChildren() bool

func (*RunContext) Notification added in v1.7.1

func (rc *RunContext) Notification() bool

func (*RunContext) PipelineForImage added in v1.18.0

func (rc *RunContext) PipelineForImage(imageName string) (latestV1.Pipeline, bool)

func (*RunContext) PortForward added in v1.7.1

func (rc *RunContext) PortForward() bool

func (*RunContext) PortForwardResources added in v1.18.0

func (rc *RunContext) PortForwardResources() []*latestV1.PortForwardResource

func (*RunContext) Prune added in v1.7.1

func (rc *RunContext) Prune() bool

func (*RunContext) RenderOnly added in v1.7.1

func (rc *RunContext) RenderOnly() bool

func (*RunContext) RenderOutput added in v1.7.1

func (rc *RunContext) RenderOutput() string

func (*RunContext) SkipRender added in v1.7.1

func (rc *RunContext) SkipRender() bool

func (*RunContext) SkipTests added in v1.7.1

func (rc *RunContext) SkipTests() bool

func (*RunContext) StatusCheck added in v1.7.1

func (rc *RunContext) StatusCheck() (*bool, error)

func (*RunContext) StatusCheckDeadlineSeconds added in v1.18.0

func (rc *RunContext) StatusCheckDeadlineSeconds() int

func (*RunContext) Tail added in v1.7.1

func (rc *RunContext) Tail() bool

func (*RunContext) TestCases added in v1.18.0

func (rc *RunContext) TestCases() []*latestV1.TestCase

func (*RunContext) Trigger added in v1.7.1

func (rc *RunContext) Trigger() string

func (*RunContext) UpdateNamespaces added in v0.36.0

func (rc *RunContext) UpdateNamespaces(ns []string)

func (*RunContext) WaitForDeletions added in v1.7.1

func (rc *RunContext) WaitForDeletions() config.WaitForDeletions

func (*RunContext) WatchPollInterval added in v1.7.1

func (rc *RunContext) WatchPollInterval() int

Jump to

Keyboard shortcuts

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