fluxops

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallFlux

func CallFlux(arglist ...string) ([]byte, error)

func FluxPath

func FluxPath() (string, error)

func GetAllResources added in v0.0.4

func GetAllResources(namespace string) ([]byte, error)

func GetAllResourcesStatus added in v0.0.4

func GetAllResourcesStatus(appName string) ([]byte, error)

func GetOwnerFromEnv

func GetOwnerFromEnv() (string, error)

GetOwnerFromEnv determines the owner of a new repository based on the GITHUB_ORG

func GetUserFromHubCredentials added in v0.0.3

func GetUserFromHubCredentials() (string, error)

func Install

func Install(namespace string, export bool) ([]byte, error)

func Override added in v0.0.4

func Override(handler FluxHandler) override.Override

func QuietInstall

func QuietInstall(namespace string) ([]byte, error)

func SetFluxHandler

func SetFluxHandler(h FluxHandler)

func WithFluxHandler

func WithFluxHandler(handler FluxHandler, f func() ([]byte, error)) ([]byte, error)

WithFluxHandler allows running a function with a different flux handler in force

Types

type DefaultFluxHandler added in v0.0.4

type DefaultFluxHandler struct{}

func (DefaultFluxHandler) Handle added in v0.0.4

func (h DefaultFluxHandler) Handle(arglist string) ([]byte, error)

type FluxHandler

type FluxHandler interface {
	Handle(args string) ([]byte, error)
}

type QuietFluxHandler added in v0.0.4

type QuietFluxHandler struct{}

func (QuietFluxHandler) Handle added in v0.0.4

func (q QuietFluxHandler) Handle(arglist string) ([]byte, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳