Documentation
¶
Index ¶
- func DecodeOCI(ctx context.Context, id, ref string, add map[string]string, insecure bool, ...) (string, error)
- func EncodeOCI(ctx context.Context, ref, dir string, insecure bool, username, password string) error
- func Equals(ref1, ref2 string, insecure bool, username, password string) (bool, error)
- func NewORASClient(ref string, username, password string) (*auth.Client, error)
- func Validate(ctx context.Context, dir string, add map[string]string) error
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 NewORASClient ¶ added in v0.5.2
NewORASClient creates an ORAS client, possibly authenticated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.