objectsenvelopes

package
v0.0.218 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 13

Documentation

Index

Constants

View Source
const RelatedObjectsKey string = "relatedObjects"
View Source
const TypeRegoResponseVectorObject workloadinterface.ObjectType = "regoResponse"

Variables

This section is empty.

Functions

func GetObjectType

func GetObjectType(object map[string]interface{}) workloadinterface.ObjectType

func IsTypeRegoResponseVector

func IsTypeRegoResponseVector(object map[string]interface{}) bool

func ListMapToMeta

func ListMapToMeta(resourceMap []map[string]interface{}) []workloadinterface.IMetadata

func NewObject

func NewObject(object map[string]interface{}) workloadinterface.IMetadata

Returns the currect object that supports the IMetadata interface

Types

type RegoResponseVectorObject

type RegoResponseVectorObject struct {
	// contains filtered or unexported fields
}

func NewRegoResponseVectorObject

func NewRegoResponseVectorObject(object map[string]interface{}) *RegoResponseVectorObject

func NewRegoResponseVectorObjectFromBytes

func NewRegoResponseVectorObjectFromBytes(object []byte) (*RegoResponseVectorObject, error)

func (*RegoResponseVectorObject) GetApiVersion

func (obj *RegoResponseVectorObject) GetApiVersion() string

=================== Get ================================

func (*RegoResponseVectorObject) GetID

func (obj *RegoResponseVectorObject) GetID() string

func (*RegoResponseVectorObject) GetKind

func (obj *RegoResponseVectorObject) GetKind() string

func (*RegoResponseVectorObject) GetName

func (obj *RegoResponseVectorObject) GetName() string

func (*RegoResponseVectorObject) GetNamespace

func (obj *RegoResponseVectorObject) GetNamespace() string

func (*RegoResponseVectorObject) GetObject

func (obj *RegoResponseVectorObject) GetObject() map[string]interface{}

func (*RegoResponseVectorObject) GetObjectType

func (*RegoResponseVectorObject) GetRelatedObjects

func (obj *RegoResponseVectorObject) GetRelatedObjects() []workloadinterface.IMetadata

func (*RegoResponseVectorObject) GetWorkload

func (obj *RegoResponseVectorObject) GetWorkload() map[string]interface{}

func (*RegoResponseVectorObject) SetApiVersion

func (obj *RegoResponseVectorObject) SetApiVersion(apiVersion string)

func (*RegoResponseVectorObject) SetKind

func (obj *RegoResponseVectorObject) SetKind(kind string)

func (*RegoResponseVectorObject) SetName

func (obj *RegoResponseVectorObject) SetName(name string)

func (*RegoResponseVectorObject) SetNamespace

func (obj *RegoResponseVectorObject) SetNamespace(namespace string)

=================== Set ================================

func (*RegoResponseVectorObject) SetObject

func (obj *RegoResponseVectorObject) SetObject(object map[string]interface{})

func (*RegoResponseVectorObject) SetRelatedObjects

func (obj *RegoResponseVectorObject) SetRelatedObjects(relatedObjects []map[string]interface{})

func (*RegoResponseVectorObject) SetWorkload

func (obj *RegoResponseVectorObject) SetWorkload(object map[string]interface{})

func (*RegoResponseVectorObject) ToString

func (obj *RegoResponseVectorObject) ToString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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