utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertComplianceToIntCompliance

func ConvertComplianceToIntCompliance(compliance c2pv1alpha1.Compliance) internalcompliance.Compliance

func ConvertIntComplianceToCompliance

func ConvertIntComplianceToCompliance(intCompliance internalcompliance.Compliance) c2pv1alpha1.Compliance

func CreateOrUpdate

func CreateOrUpdate[T client.Object](ctx context.Context, r client.Client, obj T, fetched T) error

func GetSts

func GetSts(
	ctx context.Context,
	cfg rest.Config,
	wmwName string,
	epname string,
) (edge.SinglePlacementSlice, error)

func GitClone

func GitClone(url string, tmpdir string) (string, string, error)

func HandleError

func HandleError(logger logr.Logger, err error, message string) (ctrl.Result, error)

func MakeControlReference

func MakeControlReference(
	tempDir string,
	compDeploy c2pv1alpha1.ComplianceDeployment,
) (crComposit, error)

Types

type Workspace

type Workspace struct {
	Name           string
	SyncTargetName string
}

func GetWorkspaces

func GetWorkspaces(ctx context.Context, cfg rest.Config, workspace string) ([]Workspace, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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