Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { Status(ctx context.Context) (*provider.Status, error) SubmitManifest(ctx context.Context, dseq uint64, mani manifest.Manifest) error LeaseStatus(ctx context.Context, id mtypes.LeaseID) (*cltypes.LeaseStatus, error) LeaseEvents(ctx context.Context, id mtypes.LeaseID, services string, follow bool) (*LeaseKubeEvents, error) LeaseLogs(ctx context.Context, id mtypes.LeaseID, services string, follow bool, tailLines int64) (*ServiceLogs, error) ServiceStatus(ctx context.Context, id mtypes.LeaseID, service string) (*cltypes.ServiceStatus, error) }
Client defines the methods available for connecting to the gateway server.
func NewClient ¶
func NewClient(qclient akashclient.QueryClient, addr sdk.Address, certs []tls.Certificate) (Client, error)
NewClient returns a new Client
type ClientDirectory ¶
type ClientDirectory struct {
// contains filtered or unexported fields
}
func NewClientDirectory ¶
func NewClientDirectory(cctx cosmosclient.Context) (*ClientDirectory, error)
func (*ClientDirectory) GetClient ¶
func (cd *ClientDirectory) GetClient(providerAddr sdk.Address) (Client, error)
func (*ClientDirectory) GetClientFromBech32 ¶
func (cd *ClientDirectory) GetClientFromBech32(providerAddrBech32 string) (Client, error)
type ClientResponseError ¶
func (ClientResponseError) ClientError ¶
func (err ClientResponseError) ClientError() string
func (ClientResponseError) Error ¶
func (err ClientResponseError) Error() string
type CtxAuthKey ¶
type CtxAuthKey string
type LeaseKubeEvent ¶ added in v0.10.1
type LeaseKubeEvents ¶ added in v0.10.1
type LeaseKubeEvents struct { Stream <-chan cltypes.LeaseEvent OnClose <-chan string }
type ServiceLogMessage ¶
type ServiceLogs ¶
type ServiceLogs struct { Stream <-chan ServiceLogMessage OnClose <-chan string }
Click to show internal directories.
Click to hide internal directories.