Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArgoCDSourceDirectory ¶
func GetArgoCDSourceDirectory() *argoapp.ApplicationSourceDirectory
func OutputApplication ¶
func OutputApplication(obj argoapp.Application, format string)
func StoreApplication ¶
func StoreApplication(obj argoapp.Application)
Types ¶
type ApplicationGenerator ¶
type ApplicationGenerator struct { MetaGraf metagraf.MetaGraf Properties metagraf.MGProperties Options ApplicationOptions Resource argoapp.Application }
Generator for the Application type
func NewApplicationGenerator ¶
func NewApplicationGenerator(mg metagraf.MetaGraf, prop metagraf.MGProperties, options ApplicationOptions) ApplicationGenerator
Factory for creating a new ApplicationGenerator
func (*ApplicationGenerator) Application ¶
func (g *ApplicationGenerator) Application(name string) argoapp.Application
type ApplicationOption ¶
type ApplicationOption func(*ApplicationOptions)
func ApplicationDestinationNamepace ¶
func ApplicationDestinationNamepace(ns string) ApplicationOption
func ApplicationNamespace ¶
func ApplicationNamespace(ns string) ApplicationOption
Sets the Kubernetes namespace for the generated Application resource.
func ApplicationTargetNamespace ¶
func ApplicationTargetNamespace(ns string) ApplicationOption
Sets the Kubernetes namespace for the generated Application resource.
type ApplicationOptions ¶
type ApplicationOptions struct { Namespace string ApplicationProject string ApplicationDestinationNamespace string ApplicationRepoURL string ApplicationRepoPath string ApplicationTargetRevision string // Kubernetes API Server endpoint. ApplicationDestinationServer string ApplicationSourceDirectoryRecurse bool SyncPolicyRetry bool SyncPolicyRetryLimit int64 AutomatedSyncPolicy bool AutomatedSyncPolicyPrune bool AutomatedSyncPolicySelfHeal bool }
var AppOpts ApplicationOptions
Instance of ApplicationOptions that can be used for propagating flags.
func NewApplicationOptions ¶
func NewApplicationOptions(options ...ApplicationOption) ApplicationOptions
Creates a new ApplicationOptions based on defaults from AppOpts and runs the functional ApplicationOption methods against it from options.
func (*ApplicationOptions) SetOptions ¶
func (g *ApplicationOptions) SetOptions(options ...ApplicationOption)
Click to show internal directories.
Click to hide internal directories.