cmd

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:          "furan",
	Short:        "Docker image builder",
	Long:         `API application to build Docker images on command`,
	SilenceUsage: true,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute is the entry point for the app

func GetAPIKey

func GetAPIKey() (uuid.UUID, error)

func NewInClusterK8sClient

func NewInClusterK8sClient() (kubernetes.Interface, error)

func WaitForFuranServer

func WaitForFuranServer(addr string) error

Types

type IntegrationTest

type IntegrationTest struct {
	Name          string                   `json:"name"`
	Build         furanrpc.BuildDefinition `json:"build"`
	ImageRepos    []string                 `json:"image_repos"`
	SkipIfExists  bool                     `json:"skip_if_exists"`
	ExpectFailure bool                     `json:"expect_failure"`
	ExpectSkipped bool                     `json:"expect_skipped"`
	SecretNames   K8sSecretNames           `json:"secret_names"`
}

type IntegrationTests

type IntegrationTests struct {
	Tests []IntegrationTest `json:"tests"`
}

type K8sSecretNames

type K8sSecretNames struct {
	GitHubToken string `json:"github_token"`
}

K8sSecretNames defines the k8s secrets containing various secret values for the integration test

Jump to

Keyboard shortcuts

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