Documentation ¶
Index ¶
- type Admin
- type StorageJobs
- func (j *StorageJobs) Executing(ctx context.Context, opts ...StorageJobsOption) (*adminPb.ExecutingStorageJobsResponse, error)
- func (j *StorageJobs) LatestFinal(ctx context.Context, opts ...StorageJobsOption) (*adminPb.LatestFinalStorageJobsResponse, error)
- func (j *StorageJobs) LatestSuccessful(ctx context.Context, opts ...StorageJobsOption) (*adminPb.LatestSuccessfulStorageJobsResponse, error)
- func (j *StorageJobs) Queued(ctx context.Context, opts ...StorageJobsOption) (*adminPb.QueuedStorageJobsResponse, error)
- func (j *StorageJobs) Summary(ctx context.Context, opts ...StorageJobsOption) (*adminPb.StorageJobsSummaryResponse, error)
- type StorageJobsOption
- type Users
- type Wallet
- func (w *Wallet) Addresses(ctx context.Context) (*adminPb.AddressesResponse, error)
- func (w *Wallet) NewAddress(ctx context.Context, addrType string) (*adminPb.NewAddressResponse, error)
- func (w *Wallet) SendFil(ctx context.Context, from, to string, amount *big.Int) (*adminPb.SendFilResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { StorageJobs *StorageJobs Users *Users Wallet *Wallet }
Admin provides access to Powergate admin APIs.
func NewAdmin ¶
func NewAdmin(client adminPb.AdminServiceClient) *Admin
NewAdmin creates a new admin API.
type StorageJobs ¶
type StorageJobs struct {
// contains filtered or unexported fields
}
StorageJobs provides access to Powergate jobs admin APIs.
func (*StorageJobs) Executing ¶
func (j *StorageJobs) Executing(ctx context.Context, opts ...StorageJobsOption) (*adminPb.ExecutingStorageJobsResponse, error)
Executing returns a list of executing storage jobs.
func (*StorageJobs) LatestFinal ¶
func (j *StorageJobs) LatestFinal(ctx context.Context, opts ...StorageJobsOption) (*adminPb.LatestFinalStorageJobsResponse, error)
LatestFinal returns a list of latest final storage jobs.
func (*StorageJobs) LatestSuccessful ¶
func (j *StorageJobs) LatestSuccessful(ctx context.Context, opts ...StorageJobsOption) (*adminPb.LatestSuccessfulStorageJobsResponse, error)
LatestSuccessful returns a list of latest successful storage jobs.
func (*StorageJobs) Queued ¶
func (j *StorageJobs) Queued(ctx context.Context, opts ...StorageJobsOption) (*adminPb.QueuedStorageJobsResponse, error)
Queued returns a list of queued storage jobs.
func (*StorageJobs) Summary ¶
func (j *StorageJobs) Summary(ctx context.Context, opts ...StorageJobsOption) (*adminPb.StorageJobsSummaryResponse, error)
Summary returns a summary of storage jobs.
type StorageJobsOption ¶
type StorageJobsOption = func(*storageJobsConfig)
StorageJobsOption configures a storageJobsConfig.
func WithCids ¶
func WithCids(cids ...string) StorageJobsOption
WithCids filters the results to the specified data cids.
func WithUserID ¶ added in v1.1.0
func WithUserID(userID string) StorageJobsOption
WithUserID filters the results to the specified user.
type Users ¶ added in v1.1.0
type Users struct {
// contains filtered or unexported fields
}
Users provides access to Powergate admin users APIs.
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
Wallet provides access to Powergate wallet admin APIs.
func (*Wallet) NewAddress ¶
func (w *Wallet) NewAddress(ctx context.Context, addrType string) (*adminPb.NewAddressResponse, error)
NewAddress creates a new address.