imaging

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Overview

Package imaging contains code for exporting policies for images and videos

Index

Constants

This section is empty.

Variables

View Source
var (
	// RemoveSymbols is a regexp used to remove special characters from policy json file names.
	RemoveSymbols = regexp.MustCompile(`[^\w]`)
	// ErrFetchingPolicySet is returned when fetching policy set fails
	ErrFetchingPolicySet = errors.New("unable to fetch policy set with given name")
	// ErrFetchingPolicy is returned when fetching policy set fails
	ErrFetchingPolicy = errors.New("unable to fetch policy with given name")
	// ErrCreateDir is returned when error occurred creating directory
	ErrCreateDir = errors.New("cannot create directory")
)

Functions

func CmdCreateImaging

func CmdCreateImaging(c *cli.Context) error

CmdCreateImaging is an entrypoint to create-imaging command

Types

type TFImagingData

type TFImagingData struct {
	PolicySet TFPolicySet
	Policies  []TFPolicy
	Section   string
}

TFImagingData represents the data used in imaging templates

type TFPolicy

type TFPolicy struct {
	PolicyID             string
	ActivateOnProduction bool
	JSON                 string
	Policy               imaging.PolicyInput
}

TFPolicy represents policy data used in templates

type TFPolicySet

type TFPolicySet struct {
	ID         string
	ContractID string
	Name       string
	Region     string
	Type       string
}

TFPolicySet represents policy set data used in templates

Jump to

Keyboard shortcuts

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