Documentation ¶
Index ¶
- type Option
- type Options
- type ResourceChange
- type ResourceManager
- func (rm *ResourceManager) GetAllApplicationsRemoteState() (state string)
- func (rm *ResourceManager) GetAllPipelineTemplatesRemoteState() (state string)
- func (rm *ResourceManager) GetAllPipelinesRemoteState() (state string)
- func (rm ResourceManager) GetChanges() (changes []ResourceChange)
- func (rm *ResourceManager) Init(config *c.Config, customOptions ...Option) error
- func (rm ResourceManager) SaveResources(dirPath string) error
- func (rm *ResourceManager) SyncResources() error
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 ¶
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
Click to show internal directories.
Click to hide internal directories.