resourcemanager

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(op *Options)

Option ResourceManager option

func FileLoaders

func FileLoaders(fileLoaders ...fl.FileLoader) Option

FileLoaders set file loaders

type Options

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

Options store ResourceManager options

type ResourceChange

type ResourceChange struct {
	Type    string
	ID      string
	Name    string
	Changes string
}

ResourceChange store resource change

type ResourceManager

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

ResourceManager stores Spinnaker resources and has methods for access, syncing etc.

func (*ResourceManager) GetAllApplicationsRemoteState

func (rm *ResourceManager) GetAllApplicationsRemoteState() (state string)

GetAllApplicationsRemoteState returns a concatenated string of applications JSONs.

func (*ResourceManager) GetAllPipelineTemplatesRemoteState

func (rm *ResourceManager) GetAllPipelineTemplatesRemoteState() (state string)

GetAllPipelineTemplatesRemoteState returns a concatenated string of pipeline templates JSONs.

func (*ResourceManager) GetAllPipelinesRemoteState

func (rm *ResourceManager) GetAllPipelinesRemoteState() (state string)

GetAllPipelinesRemoteState returns a concatenated string of pipelines JSONs.

func (ResourceManager) GetChanges

func (rm ResourceManager) GetChanges() (changes []ResourceChange)

GetChanges get resources' changes

func (*ResourceManager) Init

func (rm *ResourceManager) Init(config *c.Config, customOptions ...Option) error

Init initializes ResourceManager

func (ResourceManager) SaveResources

func (rm ResourceManager) SaveResources(dirPath string) error

SaveResources save resources

func (*ResourceManager) SyncResources

func (rm *ResourceManager) SyncResources() error

SyncResources synchronize resources with Spinnaker

Jump to

Keyboard shortcuts

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