iidmanager

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.4.11

func New(cloudConnectName string, rsType string, uid string) (string, error)

generate Spider UUID(SP-XID)

Types

type IIDGroup added in v0.4.11

type IIDGroup string
const (
	IIDSGROUP    IIDGroup = "iids"
	SUBNETGROUP  IIDGroup = "iids:subnet"
	SGGROUP      IIDGroup = "iids:sg"
	NLBGROUP     IIDGroup = "iids:nlb"
	CLUSTERGROUP IIDGroup = "iids:cluster"
	NGGROUP      IIDGroup = "iids:nodegroup"
)

type IIDInfo

type IIDInfo struct {
	ConnectionName string        // ex) "aws-seoul-config"
	ResourceType   string        // ex) "VM"
	IId            resources.IID // ex) {NameId, SystemId} = {"powerkim_vm_01", "i-0bc7123b7e5cbf79d"}
}

====================================================================

type IIDRWLOCK

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

====================================================================

func (*IIDRWLOCK) CreateIID

func (iidRWLock *IIDRWLOCK) CreateIID(iidGroup IIDGroup, connectionName string, resourceType string, iId resources.IID) (*IIDInfo, error)

func (*IIDRWLOCK) DeleteIID

func (iidRWLock *IIDRWLOCK) DeleteIID(iidGroup IIDGroup, connectionName string, resourceType string, iId resources.IID) (bool, error)

func (*IIDRWLOCK) FindIID added in v0.1.3

func (iidRWLock *IIDRWLOCK) FindIID(iidGroup IIDGroup, connectionName string, resourceType string, keyword string) (*IIDInfo, error)

1. check params 2. find IIDInfo from cb-store

func (*IIDRWLOCK) GetIID

func (iidRWLock *IIDRWLOCK) GetIID(iidGroup IIDGroup, connectionName string, resourceType string, iId resources.IID) (*IIDInfo, error)

1. check params 2. get IIDInfo from cb-store

func (*IIDRWLOCK) GetIIDbySystemID added in v0.1.3

func (iidRWLock *IIDRWLOCK) GetIIDbySystemID(iidGroup IIDGroup, connectionName string, resourceType string, iId resources.IID) (*IIDInfo, error)

1. check params 2. get IIDInfo from cb-store

func (*IIDRWLOCK) IsExistIID added in v0.1.3

func (iidRWLock *IIDRWLOCK) IsExistIID(iidGroup IIDGroup, connectionName string, resourceType string, iId resources.IID) (bool, error)

func (*IIDRWLOCK) ListIID

func (iidRWLock *IIDRWLOCK) ListIID(iidGroup IIDGroup, connectionName string, resourceType string) ([]*IIDInfo, error)

func (*IIDRWLOCK) ListResourceType added in v0.4.11

func (iidRWLock *IIDRWLOCK) ListResourceType(iidGroup IIDGroup, connectionName string) ([]string, error)

func (*IIDRWLOCK) UpdateIID

func (iidRWLock *IIDRWLOCK) UpdateIID(iidGroup IIDGroup, connectionName string, resourceType string, iId resources.IID) (*IIDInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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