Documentation ¶
Index ¶
- type ReservationClient
- func (r *ReservationClient) DeleteReservation(resID int64) error
- func (r *ReservationClient) Deploy(workload workloads.Workloader, currencies []string) (wrklds.ReservationCreateResponse, error)
- func (r *ReservationClient) DeployCapacityPool(reservation types.Reservation, currencies []string) (wrklds.CapacityPoolCreateResponse, error)
- func (r *ReservationClient) DryRun(workload workloads.Workloader) (workloads.Workloader, error)
- func (r *ReservationClient) DryRunCapacity(reservation types.Reservation, currencies []string) (types.Reservation, error)
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 ¶
func (r *ReservationClient) DryRun(workload workloads.Workloader) (workloads.Workloader, error)
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
Click to show internal directories.
Click to hide internal directories.