booking

package
v0.0.0-...-5255ffc Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t tools.DataType, username string, peerID string, groups []string, caller *tools.HTTPCaller) *bookingMongoAccessor

New creates a new instance of the bookingMongoAccessor

Types

type Booking

type Booking struct {
	workflow_execution.WorkflowExecution        // WorkflowExecution contains the workflow execution data
	ComputeResourceID                    string `json:"compute_resource_id,omitempty" bson:"compute_resource_id,omitempty" validate:"required"` // ComputeResourceID is the ID of the compute resource specified in the booking
}

* Booking is a struct that represents a booking

func (*Booking) ArgoStatusToState

func (wfa *Booking) ArgoStatusToState(status string) *Booking

tool to convert the argo status to a state

func (*Booking) CheckBooking

func (wfa *Booking) CheckBooking(id string, start time.Time, end *time.Time) (bool, error)

CheckBooking checks if a booking is possible on a specific compute resource

func (*Booking) GetAccessor

func (d *Booking) GetAccessor(username string, peerID string, groups []string, caller *tools.HTTPCaller) utils.Accessor

func (*Booking) GetName

func (d *Booking) GetName() string

func (*Booking) VerifyAuth

func (d *Booking) VerifyAuth(username string, peerID string, groups []string) bool

Jump to

Keyboard shortcuts

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