Help us shape the future of Go! Take the 2026 Go Developer Survey

create

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 2

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