clusterconfig

package module
v0.0.0-...-2980a77 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 7 Imported by: 0

README

pgk clusterconfig

This package contains the handling for a cluster config.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig struct {
	APIResources     *apiresource.Collection
	SourceRepository *sourcerepo.SourceRepo
	CommitID         string
}

ClusterConfig holds all API Resources for a commit id

func New

func New(sourceRepo *sourcerepo.SourceRepo, commitID string) *ClusterConfig

New returns an initialized *ClusterConfig sourceRepo is the Repository with the configuration commitID is the commit id of the source repository.

func (*ClusterConfig) ApplyManifests

func (cc *ClusterConfig) ApplyManifests() error

ApplyManifests applies the manifests stored in the repository and checked out with the commitID. It returns an error if something goes wrong on apply.

func (*ClusterConfig) LoadManifests

func (cc *ClusterConfig) LoadManifests() error

LoadManifests loads the manifests of the checked out repository into the ClusterConfig

Jump to

Keyboard shortcuts

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