argocdapp

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 12 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.

func NewOptions added in v0.8.0

func NewOptions(options plugininstaller.RawOptions) (Options, error)

/ NewOptions create options by raw options

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