Documentation
¶
Index ¶
- func Setup(mgr ctrl.Manager, o controller.Options) error
- type LeaseService
- func (s *LeaseService) CloseLease(ctx context.Context, leaseId string) error
- func (s *LeaseService) CreateLeaseFromBid(ctx context.Context, owner, dseq, gseq, oseq, provider string) (string, error)
- func (s *LeaseService) CreateLeaseFromStructuredID(ctx context.Context, leaseID *marketv1beta4.LeaseID) (string, error)
- func (s *LeaseService) GetLease(ctx context.Context, leaseId string) (*akashv1alpha1.LeaseObservation, error)
- func (s *LeaseService) GetLeaseServices(ctx context.Context, leaseId string) ([]akashv1alpha1.LeaseService, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.