Documentation ¶
Index ¶
- Constants
- func GetObjectType(object map[string]interface{}) workloadinterface.ObjectType
- func IsTypeRegoResponseVector(object map[string]interface{}) bool
- func ListMapToMeta(resourceMap []map[string]interface{}) []workloadinterface.IMetadata
- func NewObject(object map[string]interface{}) workloadinterface.IMetadata
- type RegoResponseVectorObject
- func (obj *RegoResponseVectorObject) GetApiVersion() string
- func (obj *RegoResponseVectorObject) GetID() string
- func (obj *RegoResponseVectorObject) GetKind() string
- func (obj *RegoResponseVectorObject) GetName() string
- func (obj *RegoResponseVectorObject) GetNamespace() string
- func (obj *RegoResponseVectorObject) GetObject() map[string]interface{}
- func (obj *RegoResponseVectorObject) GetObjectType() workloadinterface.ObjectType
- func (obj *RegoResponseVectorObject) GetRelatedObjects() []workloadinterface.IMetadata
- func (obj *RegoResponseVectorObject) GetWorkload() map[string]interface{}
- func (obj *RegoResponseVectorObject) SetApiVersion(apiVersion string)
- func (obj *RegoResponseVectorObject) SetKind(kind string)
- func (obj *RegoResponseVectorObject) SetName(name string)
- func (obj *RegoResponseVectorObject) SetNamespace(namespace string)
- func (obj *RegoResponseVectorObject) SetObject(object map[string]interface{})
- func (obj *RegoResponseVectorObject) SetRelatedObjects(relatedObjects []map[string]interface{})
- func (obj *RegoResponseVectorObject) SetWorkload(object map[string]interface{})
- func (obj *RegoResponseVectorObject) ToString() string
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 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 (obj *RegoResponseVectorObject) GetObjectType() workloadinterface.ObjectType
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
Click to show internal directories.
Click to hide internal directories.