kappclient

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package kappclient provides CRUD functionality for kapp-controller related resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreatePackageInstall(packageInstall *kappipkg.PackageInstall, isPkgPluginCreatedSvcAccount bool, isPkgPluginCreatedSecret bool) error
	CreatePackageRepository(repository *kappipkg.PackageRepository) error
	DeletePackageRepository(repository *kappipkg.PackageRepository) error
	GetAppCR(appName string, namespace string) (*kappctrl.App, error)
	GetClient() crtclient.Client
	GetPackageInstall(packageInstallName string, namespace string) (*kappipkg.PackageInstall, error)
	GetPackageMetadataByName(packageName string, namespace string) (*kapppkg.PackageMetadata, error)
	GetPackageRepository(repositoryName, namespace string) (*kappipkg.PackageRepository, error)
	GetPackage(packageName string, namespace string) (*kapppkg.Package, error)
	GetSecretValue(secretName, namespace string) ([]byte, error)
	ListPackageInstalls(namespace string) (*kappipkg.PackageInstallList, error)
	ListPackageMetadata(namespace string) (*kapppkg.PackageMetadataList, error)
	ListPackages(packageName string, namespace string) (*kapppkg.PackageList, error)
	ListPackageRepositories(namespace string) (*kappipkg.PackageRepositoryList, error)
	UpdatePackageInstall(packageInstall *kappipkg.PackageInstall, isPkgPluginCreatedSecret bool) error
	UpdatePackageRepository(repository *kappipkg.PackageRepository) error
}

Client is the kapp client interface

func NewKappClient

func NewKappClient(kubeCfgPath string) (Client, error)

NewKappClient returns a new kapp client

Jump to

Keyboard shortcuts

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