lease

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles Lease managed resources.

Types

type LeaseService

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

func (*LeaseService) CloseLease

func (s *LeaseService) CloseLease(ctx context.Context, leaseId string) error

CloseLease closes/terminates a lease

func (*LeaseService) CreateLeaseFromBid

func (s *LeaseService) CreateLeaseFromBid(ctx context.Context, owner, dseq, gseq, oseq, provider string) (string, error)

CreateLeaseFromBid creates a new lease from owner, dseq, gseq, oseq, provider

func (*LeaseService) CreateLeaseFromStructuredID

func (s *LeaseService) CreateLeaseFromStructuredID(ctx context.Context, leaseID *marketv1beta4.LeaseID) (string, error)

CreateLeaseFromStructuredID creates a lease using structured LeaseID (more efficient)

func (*LeaseService) GetLease

func (s *LeaseService) GetLease(ctx context.Context, leaseId string) (*akashv1alpha1.LeaseObservation, error)

GetLease gets lease details

func (*LeaseService) GetLeaseServices

func (s *LeaseService) GetLeaseServices(ctx context.Context, leaseId string) ([]akashv1alpha1.LeaseService, error)

GetLeaseServices gets services running under a lease

Jump to

Keyboard shortcuts

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