scenario

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeOCI added in v0.5.0

func DecodeOCI(
	ctx context.Context,
	id, ref string,
	add map[string]string,
	insecure bool,
	username, password string,
) (string, error)

DecodeOCI is a helper function that unpacks a given reference to an OCI blob of data containing a scenario, and puts it in the directory of a given challenge by its id. It is the opposite of EncodeOCI.

func EncodeOCI added in v0.5.0

func EncodeOCI(ctx context.Context, ref, dir string, insecure bool, username, password string) error

EncodeOCI is a helper function that packs a directory as a scenario, and distribute it as an OCI blob as the given reference. It is the opposite of DecodeOCI.

func Equals added in v0.5.0

func Equals(ref1, ref2 string, insecure bool, username, password string) (bool, error)

func NewORASClient added in v0.5.2

func NewORASClient(ref string, username, password string) (*auth.Client, error)

NewORASClient creates an ORAS client, possibly authenticated.

func Validate

func Validate(ctx context.Context, dir string, add map[string]string) error

Validate check the challenge instance can build i.e. a preview.

Types

This section is empty.

Jump to

Keyboard shortcuts

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