clientutils

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoUpdateString added in v0.2.0

func AutoUpdateString(pkg ctrlpkg.Package, disabledStr string) string

func FetchResources

func FetchResources(request *http.Request) ([]unstructured.Unstructured, error)

func FetchResourcesFromUrl added in v0.23.0

func FetchResourcesFromUrl(url string) ([]unstructured.Unstructured, error)

func Format added in v0.16.0

func Format(outputFormat OutputFormat, showAll bool, pkgs ...ctrlpkg.Package) (string, error)

func GetPackageOperatorVersion added in v0.2.0

func GetPackageOperatorVersion(ctx context.Context) (string, error)

func GetPackageOperatorVersionForConfig added in v0.2.0

func GetPackageOperatorVersionForConfig(config *rest.Config, ctx context.Context) (string, error)

func GetPackageOperatorVersionForLister added in v0.26.0

func GetPackageOperatorVersionForLister(deploymentLister *appsv1.DeploymentLister) (string, error)

func IsAutoUpdaterInstalled added in v0.23.0

func IsAutoUpdaterInstalled(ctx context.Context) (bool, error)

func NewResourcesRequest added in v0.23.0

func NewResourcesRequest(url string) (*http.Request, error)

Types

type OutputFormat added in v0.16.0

type OutputFormat string
const (
	OutputFormatJSON OutputFormat = "json"
	OutputFormatYAML OutputFormat = "yaml"
)

Jump to

Keyboard shortcuts

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