cmak8sutil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CallbackURLAnnotation = "callbackURL"
	RequestIDAnnotation   = "requestID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	CallbackURL    string
	Cluster        string
	Chart          Chart
	Namespace      string
	PackageManager string
	RequestID      string
	TillerSettings TillerSettings
	Values         string
	Phase          v1alpha1.ApplicationPhase
}

type Chart

type Chart struct {
	Name         string
	Repository   ChartRepository
	ChartPayload []byte
	Version      string
}

type ChartRepository

type ChartRepository struct {
	Name string
	URL  string
}

type Client

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

func (*Client) ChangeApplicationStatus

func (c *Client) ChangeApplicationStatus(name string, packageManager string, clusterName string, status string) error

func (*Client) ChangeClusterStatus

func (c *Client) ChangeClusterStatus(name string, status string) error

func (*Client) ChangePackageManagerStatus

func (c *Client) ChangePackageManagerStatus(name string, clusterName string, status string) error

func (*Client) CreateApplication

func (c *Client) CreateApplication(name string, packageManager string, application Application) error

func (*Client) CreateCluster

func (c *Client) CreateCluster(name string, cluster Cluster) error

func (*Client) CreateNewClients

func (c *Client) CreateNewClients() error

func (*Client) CreatePackageManager

func (c *Client) CreatePackageManager(name string, packageManager PackageManager) error

func (*Client) DeleteApplication

func (c *Client) DeleteApplication(name string, packageManager string, clusterName string) error

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(name string) error

func (*Client) DeletePackageManager

func (c *Client) DeletePackageManager(name string, clusterName string) error

func (*Client) GetApplication

func (c *Client) GetApplication(name string, packageManager string, clusterName string) (Application, error)

func (*Client) GetCluster

func (c *Client) GetCluster(name string) (Cluster, error)

func (*Client) GetPackageManager

func (c *Client) GetPackageManager(name string, clusterName string) (PackageManager, error)

func (*Client) SetApplicationClient

func (c *Client) SetApplicationClient(client v1alpha1.SDSApplicationInterface)

func (*Client) SetClusterClient

func (c *Client) SetClusterClient(client v1alpha1.SDSClusterInterface)

func (*Client) SetConfig

func (c *Client) SetConfig(config *rest.Config)

func (*Client) SetPackageManagerClient

func (c *Client) SetPackageManagerClient(client v1alpha1.SDSPackageManagerInterface)

func (*Client) UpdateOrCreateApplication

func (c *Client) UpdateOrCreateApplication(name string, packageManager string, application Application) error

func (*Client) UpdateOrCreateCluster

func (c *Client) UpdateOrCreateCluster(name string, cluster Cluster) error

func (*Client) UpdateOrCreatePackageManager

func (c *Client) UpdateOrCreatePackageManager(name string, packageManager PackageManager) error

type ClientInterface

type ClientInterface interface {
	CreateApplication(name string, packageManager string, application Application) error
	GetApplication(name string, packageManager string, clusterName string) (Application, error)
	UpdateOrCreateApplication(name string, packageManager string, application Application) error
	DeleteApplication(name string, packageManager string, clusterName string) error
	ChangeApplicationStatus(name string, packageManager string, clusterName string, status string) error

	CreateCluster(name string, cluster Cluster) error
	GetCluster(name string) (Cluster, error)
	UpdateOrCreateCluster(name string, cluster Cluster) error
	DeleteCluster(name string) error
	ChangeClusterStatus(name string, status string) error

	CreatePackageManager(name string, packageManager PackageManager) error
	GetPackageManager(name string, clusterName string) (PackageManager, error)
	UpdateOrCreatePackageManager(name string, packageManager PackageManager) error
	DeletePackageManager(name string, clusterName string) error
	ChangePackageManagerStatus(name string, clusterName string, status string) error

	CreateNewClients() error
	SetConfig(config *rest.Config)
	SetApplicationClient(client v1alpha1.SDSApplicationInterface)
	SetClusterClient(client v1alpha1.SDSClusterInterface)
	SetPackageManagerClient(client v1alpha1.SDSPackageManagerInterface)
}

func CreateFromDefaults

func CreateFromDefaults() (ClientInterface, error)

type Cluster

type Cluster struct {
	CallbackURL string
	Provider    string
	RequestID   string
	Phase       v1alpha1.Phase
}

type PackageManager

type PackageManager struct {
	AdminNamespaces []string
	CallbackURL     string
	Cluster         string
	ClusterWide     bool
	Image           string
	Name            string
	Namespace       string
	RequestID       string
	Version         string
	Phase           v1alpha1.PackageManagerPhase
}

type TillerSettings

type TillerSettings struct {
	Namespace string
	Version   string
}

Jump to

Keyboard shortcuts

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