cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package cmd provides commands for package tooling

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CarvelTools

type CarvelTools struct {
	Tools []Tool `yaml:"tools"`
}

CarvelTools defines the carvel tools used for building packages

type Deploy

type Deploy struct {
	KappWaitTimeout string `yaml:"kappWaitTimeout"`
	KubeAPIQPS      string `yaml:"kubeAPIQPS"`
	KubeAPIBurst    string `yaml:"kubeAPIBurst"`
}

Deploy defines package deployment configuration

type Package

type Package struct {
	Name                string            `yaml:"name"`
	DisplayName         string            `yaml:"displayName"`
	Path                string            `yaml:"path"`
	Domain              string            `yaml:"domain"`
	Version             string            `yaml:"version"`
	Sha256              string            `yaml:"sha256"`
	PackageSubVersion   string            `yaml:"packageSubVersion,omitempty"`
	SkipVersionOverride bool              `yaml:"skipVersionOverride,omitempty"`
	Env                 map[string]string `yaml:"env,omitempty"`
}

Package holds the information about a package

type PackageSpec

type PackageSpec struct {
	SyncPeriod string `yaml:"syncPeriod"`
	Deploy     Deploy `yaml:"deploy"`
}

PackageSpec defines a particular package configuration

type PackageValues

type PackageValues struct {
	Repositories map[string]Repository `yaml:"repositories"`
}

PackageValues defines the packages configuration

type Repository

type Repository struct {
	Name        string      `yaml:"name"`
	Domain      string      `yaml:"domain"`
	PackageSpec PackageSpec `yaml:"packageSpec"`
	Packages    []Package   `yaml:"packages"`
	Sha256      string      `yaml:"sha256"`
	Registry    string      `yaml:"registry"`
}

Repository defines package repository configuration

type Tool

type Tool struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
	Url     string `yaml:"url"`
}

Tool is the definition of the carvel tool

Jump to

Keyboard shortcuts

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