bundle

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedList = errors.New("failed to list secrets")
)
View Source
var (
	ErrInvalidName = errors.New("invalid resource name")
)

Functions

func Create

func Create(
	kubeClient *kubernetes.Clientset,
	ns string, bundleName string,
	fromFile string,
	repoUrl string,
	repoPath string,
	repoRevision string,
	srcType string,
	desc string,
	tags string,
) error

func Delete

func Delete(
	kubeClient *kubernetes.Clientset,
	ns string,
	bundleName string,
) error

func IsValidK8sName added in v0.9.0

func IsValidK8sName(name string) bool

func Update

func Update(
	kubeClient *kubernetes.Clientset,
	ns string, bundleName string,
	fromFile string,
	repoUrl string,
	repoPath string,
	desc string,
	tags string,
) error

Types

type Bundle

type Bundle struct {
	Name string
	Data []byte
	// The following are only set on dynamic bundles
	RepoUrl      string
	RepoPath     string
	RepoRevision string
	SrcType      string
}

func GetBundlesFromProfile

func GetBundlesFromProfile(
	profile *arlonv1.Profile,
	corev1 corev1types.CoreV1Interface,
	arlonNs string,
) (bundles []Bundle, err error)

type ListItem added in v0.9.0

type ListItem struct {
	Name        string `json:"name,omitempty"`
	Type        string `json:"type,omitempty"`
	Tags        string `json:"tags,omitempty"`
	Repo        string `json:"repo,omitempty"`
	Path        string `json:"path,omitempty"`
	Revision    string `json:"revision,omitempty"`
	SrcType     string `json:"src_type,omitempty"`
	Description string `json:"description,omitempty"`
}

func List added in v0.9.0

func List(config *restclient.Config, namespace string) ([]ListItem, error)

Jump to

Keyboard shortcuts

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