Documentation ¶
Index ¶
Constants ¶
View Source
const APIVersion = "v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ESDocRef ¶
type KVStoreRef ¶
type Ref ¶
type Ref struct { NxDB *KVStoreRef `json:"nxdb"` NxES *ESDocRef `json:"nxes"` // contains filtered or unexported fields }
type ResourceESIndex ¶
type ResourceESIndex string
const ( ESIndexFederationMap ResourceESIndex = "mm_object_federation-map" ESIndexController ResourceESIndex = "mm_object_controller" ESIndexAccount ResourceESIndex = "mm_object_account" ESIndexRealm ResourceESIndex = "mm_object_realm" ESIndexUser ResourceESIndex = "mm_object_user" ESIndexSecurityGroup ResourceESIndex = "mm_object_security-group" ESIndexACL ResourceESIndex = "mm_object_acl" ESIndexRole ResourceESIndex = "mm_object_role" ESIndexTenant ResourceESIndex = "mm_object_tenant" ESIndexProject ResourceESIndex = "mm_object_project" ESIndexWorkflow ResourceESIndex = "mm_object_workflow" ESIndexOperation ResourceESIndex = "mm_object_operation" ESIndexNetwork ResourceESIndex = "mm_object_network" ESIndexVRF ResourceESIndex = "mm_object_vrf" ESIndexNode ResourceESIndex = "mm_object_node" ESIndexRoutingTable ResourceESIndex = "mm_object_routing-table" )
type ResourceKind ¶
type ResourceKind string
const ( KindFederationMap ResourceKind = "FederationMap" KindController ResourceKind = "Controller" KindAccount ResourceKind = "Account" KindRealm ResourceKind = "Realm" KindUser ResourceKind = "User" KindSecurityGroup ResourceKind = "SecurityGroup" KindACL ResourceKind = "ACL" KindRole ResourceKind = "Role" KindTenant ResourceKind = "Tenant" KindProject ResourceKind = "Project" KindWorkflow ResourceKind = "Workflow" KindOperation ResourceKind = "Operation" KindNetwork ResourceKind = "Network" KindVRF ResourceKind = "VRF" KindNode ResourceKind = "Node" KindRoutingTable ResourceKind = "RoutingTable" )
type ResourceType ¶
type ResourceType struct { *resource.TypeMeta Metadata *resource.ObjectMeta Ref *Ref `json:"ref"` Spec interface{} Status *resource.Status }
func New ¶
func New(name, realm, objSet string, kind ResourceKind) *ResourceType
func (*ResourceType) Delete ¶
func (u *ResourceType) Delete() error
func (*ResourceType) Get ¶
func (r *ResourceType) Get() error
func (*ResourceType) Set ¶
func (r *ResourceType) Set() error
Click to show internal directories.
Click to hide internal directories.