Documentation
¶
Index ¶
- type Admin
- type Profiles
- type StorageJobs
- func (j *StorageJobs) Executing(ctx context.Context, opts ...StorageJobsOption) (*proto.ExecutingStorageJobsResponse, error)
- func (j *StorageJobs) LatestFinal(ctx context.Context, opts ...StorageJobsOption) (*proto.LatestFinalStorageJobsResponse, error)
- func (j *StorageJobs) LatestSuccessful(ctx context.Context, opts ...StorageJobsOption) (*proto.LatestSuccessfulStorageJobsResponse, error)
- func (j *StorageJobs) Queued(ctx context.Context, opts ...StorageJobsOption) (*proto.QueuedStorageJobsResponse, error)
- func (j *StorageJobs) Summary(ctx context.Context, opts ...StorageJobsOption) (*proto.StorageJobsSummaryResponse, error)
- type StorageJobsOption
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
StorageJobs *StorageJobs
Profiles *Profiles
Wallet *Wallet
}
Admin provides access to Powergate admin APIs.
func NewAdmin ¶
func NewAdmin(client proto.PowergateAdminServiceClient) *Admin
NewAdmin creates a new admin API.
type Profiles ¶
type Profiles struct {
// contains filtered or unexported fields
}
Profiles provides access to Powergate admin storage profile APIs.
func (*Profiles) CreateStorageProfile ¶
func (p *Profiles) CreateStorageProfile(ctx context.Context) (*proto.CreateStorageProfileResponse, error)
CreateStorageProfile creates a new Powergate storage profile, returning the instance ID and auth token.
func (*Profiles) StorageProfiles ¶
StorageProfiles returns a list of existing API instances.
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) (*proto.ExecutingStorageJobsResponse, error)
Executing returns a list of executing storage jobs.
func (*StorageJobs) LatestFinal ¶
func (j *StorageJobs) LatestFinal(ctx context.Context, opts ...StorageJobsOption) (*proto.LatestFinalStorageJobsResponse, error)
LatestFinal returns a list of latest final storage jobs.
func (*StorageJobs) LatestSuccessful ¶
func (j *StorageJobs) LatestSuccessful(ctx context.Context, opts ...StorageJobsOption) (*proto.LatestSuccessfulStorageJobsResponse, error)
LatestSuccessful returns a list of latest successful storage jobs.
func (*StorageJobs) Queued ¶
func (j *StorageJobs) Queued(ctx context.Context, opts ...StorageJobsOption) (*proto.QueuedStorageJobsResponse, error)
Queued returns a list of queued storage jobs.
func (*StorageJobs) Summary ¶
func (j *StorageJobs) Summary(ctx context.Context, opts ...StorageJobsOption) (*proto.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 WithProfileID ¶
func WithProfileID(profileID string) StorageJobsOption
WithProfileID filters the results to the specified profile.
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) (*proto.NewAddressResponse, error)
NewAddress creates a new address.