provision

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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