paas

package
v0.0.0-...-7aa9df5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeoutSec = 300
)

Variables

View Source
var (
	// HookSecret should be generated
	// TODO: generate this and put it in a secret
	HookSecret = "74tZTBHkhjMT5Klj6Ik6PqmM"

	// StagingEventListenerURL should not exist
	// TODO: detect this based on namespaces and services
	StagingEventListenerURL = "http://el-staging-listener.eirini-workloads:8080"
)

Functions

This section is empty.

Types

type CarrierClient

type CarrierClient struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

CarrierClient provides functionality for talking to a Carrier installation on Kubernetes

func NewCarrierClient

func NewCarrierClient(flags *pflag.FlagSet, configOverrides func(*config.Config)) (*CarrierClient, func(), error)

func (*CarrierClient) Apps

func (c *CarrierClient) Apps() error

Apps gets all Carrier apps

func (*CarrierClient) AppsMatching

func (c *CarrierClient) AppsMatching(prefix string) []string

AppsMatching returns all Carrier apps having the specified prefix in their name.

func (*CarrierClient) CreateOrg

func (c *CarrierClient) CreateOrg(org string) error

CreateOrg creates an Org in gitea

func (*CarrierClient) Delete

func (c *CarrierClient) Delete(app string) error

Delete deletes an app

func (*CarrierClient) Info

func (c *CarrierClient) Info() error

Info displays information about environment

func (*CarrierClient) Orgs

func (c *CarrierClient) Orgs() error

Orgs get a list of all orgs in gitea

func (*CarrierClient) OrgsMatching

func (c *CarrierClient) OrgsMatching(prefix string) []string

OrgsMatching returns all Carrier orgs having the specified prefix in their name

func (*CarrierClient) Push

func (c *CarrierClient) Push(app string, path string) error

Push pushes an app

func (*CarrierClient) Target

func (c *CarrierClient) Target(org string) error

Target targets an org in gitea

type InstallClient

type InstallClient struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

InstallClient provides functionality for talking to Kubernetes for installing Carrier on it.

func NewInstallClient

func NewInstallClient(flags *pflag.FlagSet, configOverrides func(*config.Config)) (*InstallClient, func(), error)

func (*InstallClient) Install

func (c *InstallClient) Install(cmd *cobra.Command, options *kubernetes.InstallationOptions) error

Install deploys carrier to the cluster.

func (*InstallClient) Uninstall

func (c *InstallClient) Uninstall(cmd *cobra.Command) error

Uninstall removes carrier from the cluster.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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