Documentation ¶
Index ¶
- Constants
- Variables
- type CarrierClient
- func (c *CarrierClient) Apps() error
- func (c *CarrierClient) AppsMatching(prefix string) []string
- func (c *CarrierClient) CreateOrg(org string) error
- func (c *CarrierClient) Delete(app string) error
- func (c *CarrierClient) Info() error
- func (c *CarrierClient) Orgs() error
- func (c *CarrierClient) OrgsMatching(prefix string) []string
- func (c *CarrierClient) Push(app string, path string) error
- func (c *CarrierClient) Target(org string) error
- type InstallClient
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 ¶
CarrierClient provides functionality for talking to a Carrier installation on Kubernetes
func NewCarrierClient ¶
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 ¶
InstallClient provides functionality for talking to Kubernetes for installing Carrier on it.
func NewInstallClient ¶
func (*InstallClient) Install ¶
func (c *InstallClient) Install(cmd *cobra.Command, options *kubernetes.InstallationOptions) error
Install deploys carrier to the cluster.
Click to show internal directories.
Click to hide internal directories.