app

package
v0.2.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name string `json:"name"`
}

Application is info about the application itself.

type ArgoApp added in v0.2.4

type ArgoApp struct {
	Name     string `json:"name"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

ArgoApp is argoCD application.

type CD added in v0.2.4

type CD struct {
	Provider       string     `json:"provider"`
	Namespace      string     `json:"namespace"`
	Type           string     `json:"type"`
	ApplicationRef []*ArgoApp `json:"applicationRef"`
	DashBoardRef   DashBoard  `json:"dashboardRef"`
}

CD now only support argoCD.

type Credential added in v0.2.6

type Credential struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Credential for login to dashboard.

type DashBoard added in v0.2.6

type DashBoard struct {
	URL        string     `json:"url"`
	Credential Credential `json:"credential"`
}

DashBoard information of some component.

type Output

type Output struct {
	ApplicationRef Application `json:"application"`
	Services       []Service   `json:"services,omitempty"`
	CD             CD          `json:"cd,omitempty"`
	SCM            SCM         `json:"scm,omitempty"`
}

Output defines the output structure of `hln up` command.

func Load added in v0.2.4

func Load(path string) (*Output, error)

Load read and marshal the output yaml file.

func (*Output) PrettyPrint added in v0.2.8

func (ao *Output) PrettyPrint(streams genericclioptions.IOStreams) error

PrettyPrint format and print the output.

type Repo added in v0.2.4

type Repo struct {
	Name          string        `json:"name"`
	Visibility    string        `json:"visibility"`
	URL           string        `json:"url"`
	TerraformVars TerraformVars `json:"terraformVars"`
}

Repo is a source code repository.

type SCM added in v0.2.4

type SCM struct {
	Provider     string  `json:"provider"`
	Manager      string  `json:"manager"`
	TfProvider   string  `json:"tfProvider"`
	Organization string  `json:"organization"`
	Repos        []*Repo `json:"repos"`
}

SCM is source code manager like github.

type Service added in v0.2.8

type Service struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Service of your app.

type TerraformVars added in v0.2.6

type TerraformVars struct {
	Suffix    string `json:"suffix"`
	Namespace string `json:"namespace"`
}

TerraformVars for deleting repo.

Jump to

Keyboard shortcuts

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