client

package
v0.0.0-...-4aeec5d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AkashClient

type AkashClient struct {
	Config AkashProviderConfiguration
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, configuration AkashProviderConfiguration) *AkashClient

func (*AkashClient) CreateDeployment

func (ak *AkashClient) CreateDeployment(manifestLocation string) (Seqs, error)

func (*AkashClient) CreateLease

func (ak *AkashClient) CreateLease(seqs Seqs, provider string) (string, error)

func (*AkashClient) DeleteDeployment

func (ak *AkashClient) DeleteDeployment(dseq string, owner string) error

func (*AkashClient) GetBids

func (ak *AkashClient) GetBids(seqs Seqs, timeout time.Duration) (types.Bids, error)

func (*AkashClient) GetContext

func (ak *AkashClient) GetContext() context.Context

func (*AkashClient) GetDeployment

func (ak *AkashClient) GetDeployment(dseq string, owner string) (types.Deployment, error)

func (*AkashClient) GetDeployments

func (ak *AkashClient) GetDeployments(owner string) ([]types.DeploymentId, error)

func (*AkashClient) GetPath

func (ak *AkashClient) GetPath() string

func (*AkashClient) SendManifest

func (ak *AkashClient) SendManifest(dseq string, provider string, manifestLocation string) (string, error)

func (*AkashClient) SetGlobalTransactionNote

func (ak *AkashClient) SetGlobalTransactionNote(note string)

func (*AkashClient) UpdateDeployment

func (ak *AkashClient) UpdateDeployment(dseq string, manifestLocation string) error

type AkashProviderConfiguration

type AkashProviderConfiguration struct {
	Creds          []byte
	KeyName        string
	KeyringBackend string
	AccountAddress string
	Net            string
	Version        string
	ChainId        string
	Node           string
	Home           string
	Path           string
	ProvidersApi   string
}

type Seqs

type Seqs struct {
	Dseq string
	Gseq string
	Oseq string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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