tbclient

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	RestUrl  string
	Username string
	Password string
}

ApiConfig holds the configuration for Tumblebug API

type TbMciInfoList

type TbMciInfoList struct {
	Mci []tbmodel.TbMciInfo `json:"mci"`
}

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

func (c *TumblebugClient) CreateMci(nsId string, reqBody tbmodel.TbMciReq) (tbmodel.TbMciInfo, error)

CreateMci creates a new MCI (Multi-Cloud Image) in the specified namespace

func (*TumblebugClient) CreateMciDynamic

func (c *TumblebugClient) CreateMciDynamic(nsId string, reqBody tbmodel.TbMciDynamicReq) (tbmodel.TbMciInfo, error)

CreateMciDynamic creates a new MCI (Multi-Cloud Image) with defaults in the specified namespace

func (*TumblebugClient) CreateNamespace

func (c *TumblebugClient) CreateNamespace(nsReq tbmodel.NsReq) (tbmodel.NsInfo, error)

CreateNamespace creates a new namespace in Tumblebug

func (*TumblebugClient) CreateSecurityGroup

func (c *TumblebugClient) CreateSecurityGroup(nsId string, reqBody tbmodel.TbSecurityGroupReq, option string) (tbmodel.TbSecurityGroupInfo, error)

CreateSecurityGroup creates a new Security Group in the specified namespace

func (*TumblebugClient) CreateSshKey

func (c *TumblebugClient) CreateSshKey(nsId string, reqBody tbmodel.TbSshKeyReq) (tbmodel.TbSshKeyInfo, error)

CreateSshKey creates a new SSH Key in the specified namespace

func (*TumblebugClient) CreateVNet

func (c *TumblebugClient) CreateVNet(nsId string, reqBody tbmodel.TbVNetReq) (tbmodel.TbVNetInfo, 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) MciRecommendVm

func (c *TumblebugClient) MciRecommendVm(planToSearchProperVm string) ([]tbmodel.TbSpecInfo, error)

MciRecommendVm 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.TbMciInfo, error)

ReadMci retrieves information about a specific MCI (Multi-Cloud Image) in the specified namespace

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.TbSecurityGroupInfo, error)

ReadSecurityGroup retrieves information about a specific Security Group in the specified namespace

func (*TumblebugClient) ReadSshKey

func (c *TumblebugClient) ReadSshKey(nsId, sshKeyId string) (tbmodel.TbSshKeyInfo, error)

ReadSshKey retrieves information about a specific SSH Key in the specified namespace

func (*TumblebugClient) ReadVNet

func (c *TumblebugClient) ReadVNet(nsId, vNetId string) (tbmodel.TbVNetInfo, 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.TbImageInfo, 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.TbSpecInfo, 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

Jump to

Keyboard shortcuts

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