provision

package
v0.4.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReservationClient

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

ReservationClient is a client to deploy and delete reservations

func NewReservationClient

func NewReservationClient(explorer *client.Client, userID *tfexplorer.UserIdentity) *ReservationClient

NewReservationClient creates a new reservation client

func (*ReservationClient) DeleteReservation

func (r *ReservationClient) DeleteReservation(resID int64) error

DeleteReservation deletes a reservation by id

func (*ReservationClient) Deploy

func (r *ReservationClient) Deploy(workload workloads.Workloader, currencies []string) (wrklds.ReservationCreateResponse, error)

Deploy the workload

func (*ReservationClient) DeployCapacityPool

func (r *ReservationClient) DeployCapacityPool(reservation types.Reservation, currencies []string) (wrklds.CapacityPoolCreateResponse, error)

DeployCapacityPool deploys the reservation

func (*ReservationClient) DryRun

DryRun will return the workload to deploy and marshals the data of the workload

func (*ReservationClient) DryRunCapacity

func (r *ReservationClient) DryRunCapacity(reservation types.Reservation, currencies []string) (types.Reservation, error)

DryRunCapacity will return the reservation to deploy and marshals the data of the reservation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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