mm

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type ESDocRef

type ESDocRef struct {
	Index string `json:"index,omitempty"`
	ObjID string `json:"objId,omitempty"`
}

type KVStoreRef

type KVStoreRef struct {
	ObjSet string `json:"objSet,omitempty"`
	ObjKey string `json:"objKey,omitempty"`
}

type Ref

type Ref struct {
	NxDB *KVStoreRef `json:"nxdb"`
	NxES *ESDocRef   `json:"nxes"`
	// contains filtered or unexported fields
}

type Resource

type Resource interface {
	Get() error
	Set() error
	Delete() error
}

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

type Resources

type Resources interface {
	List() []Resource
}

type User

type User interface {
	Resource
	GetCredentials() (User, error)
	SetCredentials() (User, error)
	GetRBAC() (User, error)
	SetRBAC() (User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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