packages

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package packages provides api functions for managing Zarf packages.

Package packages provides api functions for managing Zarf packages.

Package packages provides api functions for managing Zarf packages.

Package packages provides api functions for managing Zarf packages.

Package packages provides api functions for managing Zarf packages.

Package packages provides api functions for managing Zarf packages.

Package packages provides api functions for managing Zarf packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectTunnel

func ConnectTunnel(w http.ResponseWriter, r *http.Request)

ConnectTunnel establishes a tunnel for the requested resource

func DeleteSBOM

func DeleteSBOM(w http.ResponseWriter, _ *http.Request)

DeleteSBOM removes the SBOM directory

func DeployPackage

func DeployPackage(w http.ResponseWriter, r *http.Request)

DeployPackage deploys a package to the Zarf cluster.

func DisconnectTunnel

func DisconnectTunnel(w http.ResponseWriter, r *http.Request)

DisconnectTunnel closes the tunnel for the requested resource

func ExtractSBOM

func ExtractSBOM(w http.ResponseWriter, r *http.Request)

ExtractSBOM Extracts the SBOM from the package and returns the path to the SBOM

func FindInHomeStream

func FindInHomeStream(w http.ResponseWriter, r *http.Request)

FindInHomeStream returns all packages in the user's home directory. If the init query parameter is true, only init packages will be returned.

func FindInitStream

func FindInitStream(w http.ResponseWriter, _ *http.Request)

FindInitStream finds and streams all init packages in the current working directory, the cache directory, and execution directory

func FindPackageStream

func FindPackageStream(w http.ResponseWriter, _ *http.Request)

FindPackageStream finds and streams all packages in the current working directory

func ListConnections

func ListConnections(w http.ResponseWriter, _ *http.Request)

ListConnections returns a map of pkgName to a list of connections

func ListDeployedPackages

func ListDeployedPackages(w http.ResponseWriter, _ *http.Request)

ListDeployedPackages writes a list of packages that have been deployed to the connected cluster.

func ListPackageConnections

func ListPackageConnections(w http.ResponseWriter, r *http.Request)

ListPackageConnections lists all tunnel names

func Read

func Read(w http.ResponseWriter, r *http.Request)

Read reads a package from the local filesystem and writes the Zarf.yaml json to the response.

func ReadPackage

func ReadPackage(path string) (pkg types.APIZarfPackage, err error)

ReadPackage reads a packages yaml from the local filesystem and returns an APIZarfPackage.

func RemovePackage

func RemovePackage(w http.ResponseWriter, r *http.Request)

RemovePackage removes a package that has been deployed to the cluster.

func StreamDeployPackage

func StreamDeployPackage(w http.ResponseWriter, r *http.Request)

StreamDeployPackage Establishes a stream that redirects pterm output to the stream Resets the output to std.err after the stream connection is closed

Types

type PackageTunnel

type PackageTunnel struct {
	Connection types.APIDeployedPackageConnection `json:"connection,omitempty"`
	// contains filtered or unexported fields
}

PackageTunnel is a struct for storing a tunnel and its connection details

Jump to

Keyboard shortcuts

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