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
Click to show internal directories.
Click to hide internal directories.