packages

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: Apache-2.0 Imports: 24 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 added in v0.26.3

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

ConnectTunnel establishes a tunnel for the requested resource

func DeleteSBOM added in v0.27.0

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 added in v0.26.3

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

DisconnectTunnel closes the tunnel for the requested resource

func ExtractSBOM added in v0.27.0

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

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

func Find

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

Find returns all packages anywhere down the directory tree of the working directory.

func FindInHome

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

FindInHome returns all packages in the user's home directory.

func FindInitPackage

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

FindInitPackage returns all init packages anywhere down the directory tree of the users home directory.

func ListConnections added in v0.26.3

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 added in v0.26.3

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 RemovePackage

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

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

func StreamDeployPackage added in v0.26.0

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 added in v0.26.3

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