cmd

package
v0.0.0-...-32226e8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerateCommand

func NewGenerateCommand(name string) *cobra.Command

NewGenerateCommand creates and returns a new Command that renders GitOpsSets.

Types

type ProxyArchiveFetcher

type ProxyArchiveFetcher struct {
	Client corev1.ServicesGetter
	// contains filtered or unexported fields
}

ProxyArchiveFetcher uses a Kubernetes Client to make a "proxy" request via a Kubernetes Service to fetch the archiveURL.

func NewProxyArchiveFetcher

func NewProxyArchiveFetcher(cl corev1.ServicesGetter) *ProxyArchiveFetcher

NewProxyArchiveFetcher creates and returns a new ProxyArchiveFetcher ready for use.

func (*ProxyArchiveFetcher) Fetch

func (p *ProxyArchiveFetcher) Fetch(archiveURL, checksum, dir string) error

Fetch implements the ArchiveFetcher implementation, but uses the Kube service proxy mechanism to get the archive.

Jump to

Keyboard shortcuts

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