instances

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionOpts

type ActionOpts struct {
	Action ResizeAction `json:"action" required:"true"`
}

func (*ActionOpts) Map

func (opts *ActionOpts) Map() (map[string]interface{}, error)

type ActionResult

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

func Action

func Action(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r ActionResult)

func (ActionResult) Extract

func (r ActionResult) Extract() (*Response, error)

type CreateOpts

type CreateOpts struct {
	InstanceName           string             `json:"instance_name" required:"true"`
	DomainName             string             `json:"domain_name"`
	InstanceType           string             `json:"instance_type" required:"true"`
	JHAdminName            string             `json:"jh_admin_name,omitempty"`
	JHAdminPassword        string             `json:"jh_admin_password,omitempty"`
	MLFlowJHInstanceID     string             `json:"mlflow_jh_instance_id,omitempty"`
	ISMLFlowDemoMode       bool               `json:"is_mlflow_demo_mode,omitempty"`
	DeployMLFlowInstanceID string             `json:"deploy_mlflow_instance_id,omitempty"`
	Flavor                 string             `json:"flavor" required:"true"`
	Volumes                []VolumeCreateOpts `json:"volumes" required:"true"`
	Networks               NetworkCreateOpts  `json:"networks" required:"true"`
	S3FSBucket             string             `json:"s3fs_bucket,omitempty"`
	ISGPU                  bool               `json:"is_gpu"`
}

func (*CreateOpts) Map

func (opts *CreateOpts) Map() (map[string]interface{}, error)

type CreateResult

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

func Create

func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r CreateResult)

func (CreateResult) Extract

func (r CreateResult) Extract() (*Response, error)

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult)

type GetResult

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

func Get

func Get(client *gophercloud.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*Response, error)

type NetworkCreateOpts

type NetworkCreateOpts struct {
	IPPool    string `json:"ip_pool,omitempty"`
	NetworkID string `json:"network_id" required:"true"`
}

type OptsBuilder

type OptsBuilder interface {
	Map() (map[string]interface{}, error)
}

type ResizeAction

type ResizeAction struct {
	Resize ResizeActionOpts `json:"resize" required:"true"`
}

type ResizeActionOpts

type ResizeActionOpts struct {
	Type   string             `json:"type" required:"true"`
	Params ResizeActionParams `json:"params" required:"true"`
}

type ResizeActionParams

type ResizeActionParams struct {
	Flavor  string               `json:"flavor,omitempty"`
	Volumes []ResizeVolumeParams `json:"volumes,omitempty"`
}

type ResizeVolumeParams

type ResizeVolumeParams struct {
	ID   string `json:"id" required:"true"`
	Size int    `json:"size" required:"true"`
}

type Response

type Response struct {
	ID                     string           `json:"id" required:"true"`
	Name                   string           `json:"name" required:"true"`
	Status                 string           `json:"status" required:"true"`
	FlavorID               string           `json:"flavor_id" required:"true"`
	CreatedAt              string           `json:"created_dt" required:"true"`
	PublicIP               string           `json:"public_ip,omitempty"`
	PrivateIP              string           `json:"private_ip,omitempty"`
	DomainName             string           `json:"domain_name,omitempty"`
	InstanceType           string           `json:"instance_type" required:"true"`
	JHAdminName            string           `json:"jh_admin_name" required:"true"`
	MLFlowJHInstanceID     string           `json:"mlflow_jh_instance_id,omitempty"`
	DeployMLFlowInstanceID string           `json:"mlflow_deploy_instance_id,omitempty"`
	Volumes                []VolumeResponse `json:"volumes" required:"true"`
}

type VolumeCreateOpts

type VolumeCreateOpts struct {
	Name             string `json:"name,omitempty"`
	Size             int    `json:"size" required:"true"`
	VolumeType       string `json:"volume_type" required:"true"`
	AvailabilityZone string `json:"availability_zone" required:"true"`
}

type VolumeResponse

type VolumeResponse struct {
	Name             string `json:"name,omitempty"`
	Size             int    `json:"size" required:"true"`
	VolumeType       string `json:"volume_type" required:"true"`
	AvailabilityZone string `json:"availability_zone" required:"true"`
	CinderID         string `json:"cinder_id,omitempty"`
}

Jump to

Keyboard shortcuts

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