create

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(version string, bytes []byte) (types.Result, error)

Create creates a CNI Result using the given JSON with the expected version, or an error if the creation could not be performed

func CreateFromBytes

func CreateFromBytes(bytes []byte) (types.Result, error)

CreateFromBytes creates a CNI Result from the given JSON, automatically detecting the CNI spec version of the result. An error is returned if the operation could not be performed.

func DecodeVersion

func DecodeVersion(jsonBytes []byte) (string, error)

DecodeVersion returns the CNI version from CNI configuration or result JSON, or an error if the operation could not be performed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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