argo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	TypeMeta   `yaml:",inline"`
	ObjectMeta `yaml:"metadata"`
	Spec       ApplicationSpec `yaml:"spec"`
}

Application is a lightweight struct matching argoproj.io/v1alpha1/Application

func NewApplication

func NewApplication(name string, namespace string, argoNs string, repoUrl string, path string) Application

type ApplicationSpec

type ApplicationSpec struct {
	Source Source `yaml:"source"`
	// Destination overrides the kubernetes server and namespace defined in the environment ksonnet app.yaml
	Destination Destination `yaml:"destination"`
	Project     string      `yaml:"project"`
	SyncPolicy  SyncPolicy  `yaml:"syncPolicy,omitempty"`
}

type Automated

type Automated struct {
	Prune      bool `yaml:"prune"`
	SelfHeal   bool `yaml:"selfHeal"`
	AllowEmpty bool `yaml:"allowEmpty"`
}

type Backoff

type Backoff struct {
	Duration    time.Duration `yaml:"duration"`
	Factor      int           `yaml:"factor"`
	MaxDuration time.Duration `yaml:"maxDuration"`
}

type Destination

type Destination struct {
	Server    string `yaml:"server"`
	Namespace string `yaml:"namespace"`
}

type ObjectMeta

type ObjectMeta struct {
	Name        string            `yaml:"name,omitempty"`
	Namespace   string            `yaml:"namespace,omitempty"`
	Labels      map[string]string `yaml:"labels,omitempty"`
	Annotations map[string]string `yaml:"annotations,omitempty"`
}

ObjectMeta partially copies apimachinery/pkg/apis/meta/v1.ObjectMeta No need for a direct dependence; the fields are stable.

type Retry

type Retry struct {
	Limit   int     `yaml:"limit"`
	Backoff Backoff `yaml:"backoff"`
}

type Source

type Source struct {
	RepoUrl string `yaml:"repoURL"`
	Path    string `yaml:"path"`
}

type SyncPolicy

type SyncPolicy struct {
	Automated   Automated `yaml:"automated"`
	SyncOptions []string  `yaml:"syncOptions"`
	Retry       Retry     `yaml:"retry"`
}

type TypeMeta

type TypeMeta struct {
	Kind       string `yaml:"kind,omitempty"`
	APIVersion string `yaml:"apiVersion,omitempty"`
}

TypeMeta partially copies apimachinery/pkg/apis/meta/v1.TypeMeta No need for a direct dependence; the fields are stable.

Jump to

Keyboard shortcuts

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