Documentation ¶
Index ¶
- Constants
- func GetApplicationsGVR() schema.GroupVersionResource
- type ApplicationBuilder
- func (builder *ApplicationBuilder) Create() (*ApplicationBuilder, error)
- func (builder *ApplicationBuilder) Delete() (*ApplicationBuilder, error)
- func (builder *ApplicationBuilder) Exists() bool
- func (builder *ApplicationBuilder) Get() (*argocdtypes.Application, error)
- func (builder *ApplicationBuilder) Update(force bool) (*ApplicationBuilder, error)
- func (builder *ApplicationBuilder) WithGitDetails(gitRepo, gitBranch, gitPath string) *ApplicationBuilder
- type Builder
Constants ¶
const ( // APIGroup const definition. APIGroup = "argoproj.io" // APIVersion const definition. APIVersion = "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func GetApplicationsGVR ¶
func GetApplicationsGVR() schema.GroupVersionResource
GetApplicationsGVR returns applications GroupVersionResource which could be used for Clean function.
Types ¶
type ApplicationBuilder ¶
type ApplicationBuilder struct { // application Definition, used to create the application object. Definition *argocdtypes.Application // created application object. Object *argocdtypes.Application // contains filtered or unexported fields }
ApplicationBuilder provides a struct for an application object from the cluster and a definition.
func PullApplication ¶
func PullApplication(apiClient *clients.Settings, name, nsname string) (*ApplicationBuilder, error)
PullApplication pulls existing application into ApplicationBuilder struct.
func (*ApplicationBuilder) Create ¶
func (builder *ApplicationBuilder) Create() (*ApplicationBuilder, error)
Create makes an argocd application in the cluster and stores the created object in a struct.
func (*ApplicationBuilder) Delete ¶
func (builder *ApplicationBuilder) Delete() (*ApplicationBuilder, error)
Delete removes the argocd application object from a cluster.
func (*ApplicationBuilder) Exists ¶
func (builder *ApplicationBuilder) Exists() bool
Exists checks whether the given argocd application exists.
func (*ApplicationBuilder) Get ¶
func (builder *ApplicationBuilder) Get() (*argocdtypes.Application, error)
Get returns argocd application object if found.
func (*ApplicationBuilder) Update ¶
func (builder *ApplicationBuilder) Update(force bool) (*ApplicationBuilder, error)
Update renovates the existing argocd application object with the argocd application definition in builder.
func (*ApplicationBuilder) WithGitDetails ¶
func (builder *ApplicationBuilder) WithGitDetails(gitRepo, gitBranch, gitPath string) *ApplicationBuilder
WithGitDetails applies git details to application definition.
type Builder ¶
type Builder struct { // argocd Definition, used to create the argocd object. Definition *argocdoperatorv1alpha1.ArgoCD // created argocd object. Object *argocdoperatorv1alpha1.ArgoCD // contains filtered or unexported fields }
Builder provides struct for the argocd object containing connection to the cluster and the argocd definitions.
func NewBuilder ¶
NewBuilder creates a new instance of Builder.
func (*Builder) Create ¶
Create makes an argocd in the cluster and stores the created object in struct.