knitterobj

package
Version: v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateKnitterObj = func(reqBody []byte) (*KnitterObj, error) {
	knitterObj := new(KnitterObj)
	var err error
	knitterObj.CniParam, knitterObj.Args, err = knitterObj.ParamBuilderRole.Transform(reqBody)
	knitterObj.PodProtectionRole.PodNs = knitterObj.CniParam.PodNs
	knitterObj.PodProtectionRole.PodName = knitterObj.CniParam.PodName
	knitterObj.PodProtectionRole.ContainerID = knitterObj.CniParam.ContainerID
	knitterObj.ReqBody = reqBody
	return knitterObj, err
}

Functions

This section is empty.

Types

type KnitterObj

type KnitterObj struct {
	ParamBuilderRole  knitterrole.ParamBuilderRole
	PodProtectionRole knitterrole.PodProtectionRole
	CniParam          *cni.CniParam
	Args              *skel.CmdArgs
	ReqBody           []byte
}

Source Files

Jump to

Keyboard shortcuts

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