Documentation
¶
Overview ¶
Package tbclient provides client functions to interact with CB-Tumblebug API
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API ¶
Package tbclient provides client functions to interact with CB-Tumblebug API
Index ¶
- type ApiConfig
- type TbMciInfoList
- type TumblebugClient
- func (c *TumblebugClient) CreateMci(nsId string, reqBody tbmodel.MciReq) (tbmodel.MciInfo, error)
- func (c *TumblebugClient) CreateMciDynamic(nsId string, reqBody tbmodel.MciDynamicReq) (tbmodel.MciInfo, error)
- func (c *TumblebugClient) CreateNamespace(nsReq tbmodel.NsReq) (tbmodel.NsInfo, error)
- func (c *TumblebugClient) CreateSecurityGroup(nsId string, reqBody tbmodel.SecurityGroupReq, option string) (tbmodel.SecurityGroupInfo, error)
- func (c *TumblebugClient) CreateSshKey(nsId string, reqBody tbmodel.SshKeyReq) (tbmodel.SshKeyInfo, error)
- func (c *TumblebugClient) CreateVNet(nsId string, reqBody tbmodel.VNetReq) (tbmodel.VNetInfo, error)
- func (c *TumblebugClient) DeleteMci(nsId, mciId, option string) (tbmodel.IdList, error)
- func (c *TumblebugClient) DeleteSecurityGroup(nsId, securityGroupId string) (tbmodel.SimpleMsg, error)
- func (c *TumblebugClient) DeleteSharedResources(nsId string) (tbmodel.IdList, error)
- func (c *TumblebugClient) DeleteSshKey(nsId, sshKeyId string) (tbmodel.SimpleMsg, error)
- func (c *TumblebugClient) DeleteVNet(nsId, vNetId, action string) (tbmodel.SimpleMsg, error)
- func (c *TumblebugClient) IsReady() (bool, error)
- func (c *TumblebugClient) MciRecommendSpec(planToSearchProperVm string) ([]tbmodel.SpecInfo, error)
- func (c *TumblebugClient) ReadAllMci(nsId string) (TbMciInfoList, error)
- func (c *TumblebugClient) ReadMci(nsId, mciId string) (tbmodel.MciInfo, error)
- func (c *TumblebugClient) ReadMciAccessInfo(nsId, mciId, option, accessInfoOption string) (tbmodel.MciAccessInfo, error)
- func (c *TumblebugClient) ReadMciIDs(nsId string) (tbmodel.IdList, error)
- func (c *TumblebugClient) ReadNamespace(nsId string) (tbmodel.NsInfo, error)
- func (c *TumblebugClient) ReadRegionInfo(providerName string, regionName string) (tbmodel.RegionDetail, error)
- func (c *TumblebugClient) ReadSecurityGroup(nsId, securityGroupId string) (tbmodel.SecurityGroupInfo, error)
- func (c *TumblebugClient) ReadSshKey(nsId, sshKeyId string) (tbmodel.SshKeyInfo, error)
- func (c *TumblebugClient) ReadVNet(nsId, vNetId string) (tbmodel.VNetInfo, error)
- func (c *TumblebugClient) ReadVmOsImage(nsId, vmOsImageId string) (tbmodel.ImageInfo, error)
- func (c *TumblebugClient) ReadVmSpec(nsId, vmSpecId string) (tbmodel.SpecInfo, error)
- func (c *TumblebugClient) SearchVmOsImage(nsId string, searchImageReq tbmodel.SearchImageRequest) (tbmodel.SearchImageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TbMciInfoList ¶
type TumblebugClient ¶
type TumblebugClient struct {
// contains filtered or unexported fields
}
TumblebugClient is the structure for Tumblebug client
func NewClient ¶
func NewClient(apiConfig ApiConfig) *TumblebugClient
NewClient creates a new Tumblebug client
func NewDefaultClient ¶
func NewDefaultClient() *TumblebugClient
NewDefaultClient creates a new Tumblebug client using global config
func (*TumblebugClient) CreateMci ¶
CreateMci creates a new MCI (Multi-Cloud Image) in the specified namespace
func (*TumblebugClient) CreateMciDynamic ¶
func (c *TumblebugClient) CreateMciDynamic(nsId string, reqBody tbmodel.MciDynamicReq) (tbmodel.MciInfo, error)
CreateMciDynamic creates a new MCI (Multi-Cloud Image) with defaults in the specified namespace
func (*TumblebugClient) CreateNamespace ¶
CreateNamespace creates a new namespace in Tumblebug
func (*TumblebugClient) CreateSecurityGroup ¶
func (c *TumblebugClient) CreateSecurityGroup(nsId string, reqBody tbmodel.SecurityGroupReq, option string) (tbmodel.SecurityGroupInfo, error)
CreateSecurityGroup creates a new Security Group in the specified namespace
func (*TumblebugClient) CreateSshKey ¶
func (c *TumblebugClient) CreateSshKey(nsId string, reqBody tbmodel.SshKeyReq) (tbmodel.SshKeyInfo, error)
CreateSshKey creates a new SSH Key in the specified namespace
func (*TumblebugClient) CreateVNet ¶
func (c *TumblebugClient) CreateVNet(nsId string, reqBody tbmodel.VNetReq) (tbmodel.VNetInfo, error)
CreateVNet creates a new Virtual Network (VNet) in the specified namespace
func (*TumblebugClient) DeleteMci ¶
func (c *TumblebugClient) DeleteMci(nsId, mciId, option string) (tbmodel.IdList, error)
DeleteMci deletes a specific MCI (Multi-Cloud Image) in the specified namespace
func (*TumblebugClient) DeleteSecurityGroup ¶
func (c *TumblebugClient) DeleteSecurityGroup(nsId, securityGroupId string) (tbmodel.SimpleMsg, error)
DeleteSecurityGroup deletes a specific Security Group in the specified namespace
func (*TumblebugClient) DeleteSharedResources ¶
func (c *TumblebugClient) DeleteSharedResources(nsId string) (tbmodel.IdList, error)
func (*TumblebugClient) DeleteSshKey ¶
func (c *TumblebugClient) DeleteSshKey(nsId, sshKeyId string) (tbmodel.SimpleMsg, error)
func (*TumblebugClient) DeleteVNet ¶
func (c *TumblebugClient) DeleteVNet(nsId, vNetId, action string) (tbmodel.SimpleMsg, error)
func (*TumblebugClient) IsReady ¶
func (c *TumblebugClient) IsReady() (bool, error)
IsReady checks if Tumblebug is ready
func (*TumblebugClient) MciRecommendSpec ¶ added in v0.3.8
func (c *TumblebugClient) MciRecommendSpec(planToSearchProperVm string) ([]tbmodel.SpecInfo, error)
MciRecommendSpec finds appropriate VM specs by filtering and prioritzing.
func (*TumblebugClient) ReadAllMci ¶
func (c *TumblebugClient) ReadAllMci(nsId string) (TbMciInfoList, error)
ReadAllMci retrieves all MCIs (Multi-Cloud Images) in the specified namespace
func (*TumblebugClient) ReadMci ¶
func (c *TumblebugClient) ReadMci(nsId, mciId string) (tbmodel.MciInfo, error)
ReadMci retrieves information about a specific MCI (Multi-Cloud Image) in the specified namespace
func (*TumblebugClient) ReadMciAccessInfo ¶ added in v0.3.10
func (c *TumblebugClient) ReadMciAccessInfo(nsId, mciId, option, accessInfoOption string) (tbmodel.MciAccessInfo, error)
func (*TumblebugClient) ReadMciIDs ¶
func (c *TumblebugClient) ReadMciIDs(nsId string) (tbmodel.IdList, error)
func (*TumblebugClient) ReadNamespace ¶
func (c *TumblebugClient) ReadNamespace(nsId string) (tbmodel.NsInfo, error)
ReadNamespace retrieves information about a specific namespace
func (*TumblebugClient) ReadRegionInfo ¶
func (c *TumblebugClient) ReadRegionInfo(providerName string, regionName string) (tbmodel.RegionDetail, error)
ReadRegionInfo reads region information in a specific provider
func (*TumblebugClient) ReadSecurityGroup ¶
func (c *TumblebugClient) ReadSecurityGroup(nsId, securityGroupId string) (tbmodel.SecurityGroupInfo, error)
ReadSecurityGroup retrieves information about a specific Security Group in the specified namespace
func (*TumblebugClient) ReadSshKey ¶
func (c *TumblebugClient) ReadSshKey(nsId, sshKeyId string) (tbmodel.SshKeyInfo, error)
ReadSshKey retrieves information about a specific SSH Key in the specified namespace
func (*TumblebugClient) ReadVNet ¶
func (c *TumblebugClient) ReadVNet(nsId, vNetId string) (tbmodel.VNetInfo, error)
ReadVNet retrieves information about a specific Virtual Network (VNet) in the specified namespace
func (*TumblebugClient) ReadVmOsImage ¶
func (c *TumblebugClient) ReadVmOsImage(nsId, vmOsImageId string) (tbmodel.ImageInfo, error)
ReadVmOsImage retrieves information about a specific VM OS Image in the specified namespace
func (*TumblebugClient) ReadVmSpec ¶
func (c *TumblebugClient) ReadVmSpec(nsId, vmSpecId string) (tbmodel.SpecInfo, error)
ReadVmSpec retrieves information about a specific VM Spec in the specified namespace
func (*TumblebugClient) SearchVmOsImage ¶
func (c *TumblebugClient) SearchVmOsImage(nsId string, searchImageReq tbmodel.SearchImageRequest) (tbmodel.SearchImageResponse, error)
SearchVmOsImage searches VM OS images