workloads

package
v0.0.0-...-4786a4a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Repos = map[string]string{}

Functions

func NewWorkloadServer

func NewWorkloadServer(serviceName string, server *api.Server, config *rest.Config, clientset *kubernetes.Clientset) *workloadServer

Types

type Chart

type Chart struct {
	Readme   string  `json:"readme"`
	Versions Details `json:"versions"`
}

type Detail

type Detail struct {
	Annotations map[string]string `json:"annotations,omitempty"`

	APIVersion string    `json:"apiVersion"`
	AppVersion string    `json:"appVersion"`
	Created    time.Time `json:"created"`

	Dependencies []*helmchart.Dependency
	Maintainers  []*helmhapichart.Maintainer

	Description string   `json:"description"`
	Digest      string   `json:"digest"`
	Home        string   `json:"home"`
	Icon        string   `json:"icon"`
	Keywords    []string `json:"keywords"`
	Name        string   `json:"name"`
	Sources     []string `json:"sources"`
	Urls        []string `json:"urls"`
	Version     string   `json:"version"`
	Repo        string   `json:"repo"`
}

type Details

type Details []Detail

func (Details) GetURLAndVer

func (d Details) GetURLAndVer(chartName, version string) (url string, ver string, err error)

func (Details) LastVersion

func (d Details) LastVersion() (*Detail, error)

func (Details) Len

func (d Details) Len() int

func (Details) Less

func (d Details) Less(i, j int) bool

func (Details) Search

func (d Details) Search(chartName, version string) (*Detail, error)

func (Details) SearchByChart

func (d Details) SearchByChart(chartName string) (Details, error)

func (Details) Swap

func (d Details) Swap(i, j int)

type Release

type Release struct {
	Name       string        `json:"name"`
	Namespace  string        `json:"namespace"`
	Revision   string        `json:"revision"`
	Updated    helmtime.Time `json:"updated"`
	Status     string        `json:"status"`
	Chart      string        `json:"chart"`
	AppVersion string        `json:"appVersion"`
}

type ReleaseDetail

type ReleaseDetail struct {
	Info      *release.Info          `json:"info,omitempty"`
	Manifest  string                 `json:"manifest,omitempty"`
	Name      string                 `json:"name,omitempty"`
	Config    map[string]interface{} `json:"config,omitempty"`
	Version   int                    `json:"version,omitempty"`
	NameSpace string                 `json:"namespace,omitempty"`
	Resources *Resources             `json:"resources,omitempty"`
}

type Resources

type Resources struct {
	// contains filtered or unexported fields
}

type RollBackRelease

type RollBackRelease struct {
	Revision int `json:"revision,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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