Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvironmentFlag = "environment" UrlFlag = "url" ManifestFlag = "manifest" TokenFlag = "token" OAuthIdFlag = "oauth-client-id" OAuthSecretFlag = "oauth-client-secret" ApiFlag = "api" SettingsSchemaFlag = "settings-schema" ProjectFlag = "project" OutputFolderFlag = "output-folder" ForceFlag = "force" OnlyApisFlag OnlyFlag = "only-apis" OnlySettingsFlag OnlyFlag = "only-settings" OnlyAutomationFlag OnlyFlag = "only-automation" OnlyDocumentsFlag OnlyFlag = "only-documents" OnlyBucketsFlag OnlyFlag = "only-buckets" OnlyOpenPipelineFlag OnlyFlag = "only-openpipeline" OnlySloV2Flag OnlyFlag = "only-slo-v2" OnlySegmentsFlag OnlyFlag = "only-segments" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command interface {
DownloadConfigsBasedOnManifest(ctx context.Context, fs afero.Fs, cmdOptions downloadCmdOptions) error
DownloadConfigs(ctx context.Context, fs afero.Fs, cmdOptions downloadCmdOptions) error
}
Command is used to test the CLi commands properly without executing the actual monaco download.
The actual implementations are in the DefaultCommand struct.
type DefaultCommand ¶
type DefaultCommand struct{}
DefaultCommand is used to implement the Command interface.
func (DefaultCommand) DownloadConfigs ¶
func (DefaultCommand) DownloadConfigsBasedOnManifest ¶
type Downloadable ¶ added in v2.23.1
type Downloadable interface {
// Download returns downloaded project.ConfigsPerType, and an error, if something went wrong during the download.
// The string projectName is used to set the Project attribute of each downloaded config.
Download(ctx context.Context, projectName string) (project.ConfigsPerType, error)
}
type OnlyOptions ¶ added in v2.23.1
func (OnlyOptions) IsSingleOption ¶ added in v2.23.1
func (o OnlyOptions) IsSingleOption(f OnlyFlag) bool
IsSingleOption returns true if the provided "only" flag is the only one being enabled
func (OnlyOptions) OnlyCount ¶ added in v2.23.1
func (o OnlyOptions) OnlyCount() int
OnlyCount returns the amount of enabled "only" flags
func (OnlyOptions) ShouldDownload ¶ added in v2.23.1
func (o OnlyOptions) ShouldDownload(f OnlyFlag) bool
ShouldDownload returns true if the provided "only" flag is enabled or if no flag is set at all
Click to show internal directories.
Click to hide internal directories.