argocdapp

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(options map[string]interface{}) (map[string]interface{}, error)

Create creates an ArgoCD app YAML and applys it.

func Delete

func Delete(options map[string]interface{}) (bool, error)

func Read

func Read(options map[string]interface{}) (map[string]interface{}, error)

func Update

func Update(options map[string]interface{}) (map[string]interface{}, error)

Types

type App

type App struct {
	Name      string `validate:"required,dns1123subdomain"`
	Namespace string
}

App is the struct for an ArgoCD app.

type Destination

type Destination struct {
	Server    string
	Namespace string
}

Destination is the struct for the destination of an ArgoCD app.

type Options

type Options struct {
	App         App
	Destination Destination
	Source      Source
}

Param is the struct for parameters used by the argocdapp package.

type Source

type Source struct {
	Valuefile string
	Path      string `validate:"required"`
	RepoURL   string `validate:"required"`
}

Source is the struct for the source of an ArgoCD app.

Jump to

Keyboard shortcuts

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