fakes

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNIArgs

type CNIArgs struct {
	AsEnvCall struct {
		Returns struct {
			Env []string
		}
	}
}

func (*CNIArgs) AsEnv

func (a *CNIArgs) AsEnv() []string

type RawExec

type RawExec struct {
	ExecPluginCall struct {
		Received struct {
			PluginPath string
			StdinData  []byte
			Environ    []string
		}
		Returns struct {
			ResultBytes []byte
			Error       error
		}
	}
	FindInPathCall struct {
		Received struct {
			Plugin string
			Paths  []string
		}
		Returns struct {
			Path  string
			Error error
		}
	}
}

func (*RawExec) ExecPlugin

func (e *RawExec) ExecPlugin(ctx context.Context, pluginPath string, stdinData []byte, environ []string) ([]byte, error)

func (*RawExec) FindInPath added in v0.7.0

func (e *RawExec) FindInPath(plugin string, paths []string) (string, error)

type VersionDecoder

type VersionDecoder struct {
	DecodeCall struct {
		Received struct {
			JSONBytes []byte
		}
		Returns struct {
			PluginInfo version.PluginInfo
			Error      error
		}
	}
}

func (*VersionDecoder) Decode

func (e *VersionDecoder) Decode(jsonData []byte) (version.PluginInfo, error)

Jump to

Keyboard shortcuts

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