Documentation
¶
Overview ¶
Package wallet provides a client for the "wallet" canister. Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go.
Index ¶
- type Agent
- func (a Agent) ApiVersion() (*uint16, error)
- func (a Agent) Authorize(arg0 principal.Principal) error
- func (a Agent) CertifiedTree(arg0 struct{}) (..., error)
- func (a Agent) Clear(arg0 ClearArguments) error
- func (a Agent) CommitBatch(arg0 CommitBatchArguments) error
- func (a Agent) CommitProposedBatch(arg0 CommitProposedBatchArguments) error
- func (a Agent) ComputeEvidence(arg0 ComputeEvidenceArguments) (**[]byte, error)
- func (a Agent) CreateAsset(arg0 CreateAssetArguments) error
- func (a Agent) CreateBatch(arg0 struct{}) (..., error)
- func (a Agent) CreateChunk(arg0 struct{ ... }) (..., error)
- func (a Agent) Deauthorize(arg0 principal.Principal) error
- func (a Agent) DeleteAsset(arg0 DeleteAssetArguments) error
- func (a Agent) DeleteBatch(arg0 DeleteBatchArguments) error
- func (a Agent) Get(arg0 struct{ ... }) (..., error)
- func (a Agent) GetAssetProperties(key Key) (..., error)
- func (a Agent) GetChunk(arg0 struct{ ... }) (..., error)
- func (a Agent) GrantPermission(arg0 GrantPermission) error
- func (a Agent) HttpRequest(request HttpRequest) (*HttpResponse, error)
- func (a Agent) HttpRequestStreamingCallback(token StreamingCallbackToken) (**StreamingCallbackHttpResponse, error)
- func (a Agent) List(arg0 struct{}) (..., error)
- func (a Agent) ListAuthorized() (*[]principal.Principal, error)
- func (a Agent) ListPermitted(arg0 ListPermitted) (*[]principal.Principal, error)
- func (a Agent) ProposeCommitBatch(arg0 CommitBatchArguments) error
- func (a Agent) RevokePermission(arg0 RevokePermission) error
- func (a Agent) SetAssetContent(arg0 SetAssetContentArguments) error
- func (a Agent) SetAssetProperties(arg0 SetAssetPropertiesArguments) error
- func (a Agent) Store(arg0 struct{ ... }) error
- func (a Agent) TakeOwnership() error
- func (a Agent) UnsetAssetContent(arg0 UnsetAssetContentArguments) error
- func (a Agent) ValidateCommitProposedBatch(arg0 CommitProposedBatchArguments) (*ValidationResult, error)
- func (a Agent) ValidateGrantPermission(arg0 GrantPermission) (*ValidationResult, error)
- func (a Agent) ValidateRevokePermission(arg0 RevokePermission) (*ValidationResult, error)
- func (a Agent) ValidateTakeOwnership() (*ValidationResult, error)
- type BatchId
- type BatchOperationKind
- type ChunkId
- type ClearArguments
- type CommitBatchArguments
- type CommitProposedBatchArguments
- type ComputeEvidenceArguments
- type CreateAssetArguments
- type DeleteAssetArguments
- type DeleteBatchArguments
- type GrantPermission
- type HeaderField
- type HttpRequest
- type HttpResponse
- type Key
- type ListPermitted
- type Permission
- type RevokePermission
- type SetAssetContentArguments
- type SetAssetPropertiesArguments
- type StreamingCallbackHttpResponse
- type StreamingCallbackToken
- type StreamingStrategy
- type Time
- type UnsetAssetContentArguments
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent is a client for the "wallet" canister.
func (Agent) ApiVersion ¶
ApiVersion calls the "api_version" method on the "wallet" canister.
func (Agent) CertifiedTree ¶
func (a Agent) CertifiedTree(arg0 struct { }) (*struct { Certificate []byte `ic:"certificate"` Tree []byte `ic:"tree"` }, error)
CertifiedTree calls the "certified_tree" method on the "wallet" canister.
func (Agent) Clear ¶
func (a Agent) Clear(arg0 ClearArguments) error
Clear calls the "clear" method on the "wallet" canister.
func (Agent) CommitBatch ¶
func (a Agent) CommitBatch(arg0 CommitBatchArguments) error
CommitBatch calls the "commit_batch" method on the "wallet" canister.
func (Agent) CommitProposedBatch ¶
func (a Agent) CommitProposedBatch(arg0 CommitProposedBatchArguments) error
CommitProposedBatch calls the "commit_proposed_batch" method on the "wallet" canister.
func (Agent) ComputeEvidence ¶
func (a Agent) ComputeEvidence(arg0 ComputeEvidenceArguments) (**[]byte, error)
ComputeEvidence calls the "compute_evidence" method on the "wallet" canister.
func (Agent) CreateAsset ¶
func (a Agent) CreateAsset(arg0 CreateAssetArguments) error
CreateAsset calls the "create_asset" method on the "wallet" canister.
func (Agent) CreateBatch ¶
CreateBatch calls the "create_batch" method on the "wallet" canister.
func (Agent) CreateChunk ¶
func (a Agent) CreateChunk(arg0 struct { BatchId BatchId `ic:"batch_id"` Content []byte `ic:"content"` }) (*struct { ChunkId ChunkId `ic:"chunk_id"` }, error)
CreateChunk calls the "create_chunk" method on the "wallet" canister.
func (Agent) Deauthorize ¶
Deauthorize calls the "deauthorize" method on the "wallet" canister.
func (Agent) DeleteAsset ¶
func (a Agent) DeleteAsset(arg0 DeleteAssetArguments) error
DeleteAsset calls the "delete_asset" method on the "wallet" canister.
func (Agent) DeleteBatch ¶
func (a Agent) DeleteBatch(arg0 DeleteBatchArguments) error
DeleteBatch calls the "delete_batch" method on the "wallet" canister.
func (Agent) Get ¶
func (a Agent) Get(arg0 struct { Key Key `ic:"key"` AcceptEncodings []string `ic:"accept_encodings"` }) (*struct { Content []byte `ic:"content"` ContentType string `ic:"content_type"` ContentEncoding string `ic:"content_encoding"` Sha256 *[]byte `ic:"sha256,omitempty"` TotalLength idl.Nat `ic:"total_length"` }, error)
Get calls the "get" method on the "wallet" canister.
func (Agent) GetAssetProperties ¶
func (a Agent) GetAssetProperties(key Key) (*struct { MaxAge *uint64 `ic:"max_age,omitempty"` Headers *[]HeaderField `ic:"headers,omitempty"` AllowRawAccess *bool `ic:"allow_raw_access,omitempty"` IsAliased *bool `ic:"is_aliased,omitempty"` }, error)
GetAssetProperties calls the "get_asset_properties" method on the "wallet" canister.
func (Agent) GetChunk ¶
func (a Agent) GetChunk(arg0 struct { Key Key `ic:"key"` ContentEncoding string `ic:"content_encoding"` Index idl.Nat `ic:"index"` Sha256 *[]byte `ic:"sha256,omitempty"` }) (*struct { Content []byte `ic:"content"` }, error)
GetChunk calls the "get_chunk" method on the "wallet" canister.
func (Agent) GrantPermission ¶
func (a Agent) GrantPermission(arg0 GrantPermission) error
GrantPermission calls the "grant_permission" method on the "wallet" canister.
func (Agent) HttpRequest ¶
func (a Agent) HttpRequest(request HttpRequest) (*HttpResponse, error)
HttpRequest calls the "http_request" method on the "wallet" canister.
func (Agent) HttpRequestStreamingCallback ¶
func (a Agent) HttpRequestStreamingCallback(token StreamingCallbackToken) (**StreamingCallbackHttpResponse, error)
HttpRequestStreamingCallback calls the "http_request_streaming_callback" method on the "wallet" canister.
func (Agent) List ¶
func (a Agent) List(arg0 struct { }) (*[]struct { Key Key `ic:"key"` ContentType string `ic:"content_type"` Encodings []struct { ContentEncoding string `ic:"content_encoding"` Sha256 *[]byte `ic:"sha256,omitempty"` Length idl.Nat `ic:"length"` Modified Time `ic:"modified"` } `ic:"encodings"` }, error)
List calls the "list" method on the "wallet" canister.
func (Agent) ListAuthorized ¶
ListAuthorized calls the "list_authorized" method on the "wallet" canister.
func (Agent) ListPermitted ¶
func (a Agent) ListPermitted(arg0 ListPermitted) (*[]principal.Principal, error)
ListPermitted calls the "list_permitted" method on the "wallet" canister.
func (Agent) ProposeCommitBatch ¶
func (a Agent) ProposeCommitBatch(arg0 CommitBatchArguments) error
ProposeCommitBatch calls the "propose_commit_batch" method on the "wallet" canister.
func (Agent) RevokePermission ¶
func (a Agent) RevokePermission(arg0 RevokePermission) error
RevokePermission calls the "revoke_permission" method on the "wallet" canister.
func (Agent) SetAssetContent ¶
func (a Agent) SetAssetContent(arg0 SetAssetContentArguments) error
SetAssetContent calls the "set_asset_content" method on the "wallet" canister.
func (Agent) SetAssetProperties ¶
func (a Agent) SetAssetProperties(arg0 SetAssetPropertiesArguments) error
SetAssetProperties calls the "set_asset_properties" method on the "wallet" canister.
func (Agent) Store ¶
func (a Agent) Store(arg0 struct { Key Key `ic:"key"` ContentType string `ic:"content_type"` ContentEncoding string `ic:"content_encoding"` Content []byte `ic:"content"` Sha256 *[]byte `ic:"sha256,omitempty"` }) error
Store calls the "store" method on the "wallet" canister.
func (Agent) TakeOwnership ¶
TakeOwnership calls the "take_ownership" method on the "wallet" canister.
func (Agent) UnsetAssetContent ¶
func (a Agent) UnsetAssetContent(arg0 UnsetAssetContentArguments) error
UnsetAssetContent calls the "unset_asset_content" method on the "wallet" canister.
func (Agent) ValidateCommitProposedBatch ¶
func (a Agent) ValidateCommitProposedBatch(arg0 CommitProposedBatchArguments) (*ValidationResult, error)
ValidateCommitProposedBatch calls the "validate_commit_proposed_batch" method on the "wallet" canister.
func (Agent) ValidateGrantPermission ¶
func (a Agent) ValidateGrantPermission(arg0 GrantPermission) (*ValidationResult, error)
ValidateGrantPermission calls the "validate_grant_permission" method on the "wallet" canister.
func (Agent) ValidateRevokePermission ¶
func (a Agent) ValidateRevokePermission(arg0 RevokePermission) (*ValidationResult, error)
ValidateRevokePermission calls the "validate_revoke_permission" method on the "wallet" canister.
func (Agent) ValidateTakeOwnership ¶
func (a Agent) ValidateTakeOwnership() (*ValidationResult, error)
ValidateTakeOwnership calls the "validate_take_ownership" method on the "wallet" canister.
type BatchOperationKind ¶
type BatchOperationKind = struct {
CreateAsset *CreateAssetArguments `ic:"CreateAsset,variant"`
SetAssetContent *SetAssetContentArguments `ic:"SetAssetContent,variant"`
SetAssetProperties *SetAssetPropertiesArguments `ic:"SetAssetProperties,variant"`
UnsetAssetContent *UnsetAssetContentArguments `ic:"UnsetAssetContent,variant"`
DeleteAsset *DeleteAssetArguments `ic:"DeleteAsset,variant"`
Clear *ClearArguments `ic:"Clear,variant"`
}
type ClearArguments ¶
type ClearArguments = struct {
}
type CommitBatchArguments ¶
type CommitBatchArguments = struct {
BatchId BatchId `ic:"batch_id"`
Operations []BatchOperationKind `ic:"operations"`
}
type CreateAssetArguments ¶
type DeleteAssetArguments ¶
type DeleteAssetArguments = struct {
Key Key `ic:"key"`
}
type DeleteBatchArguments ¶
type DeleteBatchArguments = struct {
BatchId BatchId `ic:"batch_id"`
}
type GrantPermission ¶
type GrantPermission = struct {
ToPrincipal principal.Principal `ic:"to_principal"`
Permission Permission `ic:"permission"`
}
type HeaderField ¶
type HeaderField = struct {
// contains filtered or unexported fields
}
type HttpRequest ¶
type HttpRequest = struct {
Method string `ic:"method"`
Url string `ic:"url"`
Headers []HeaderField `ic:"headers"`
Body []byte `ic:"body"`
CertificateVersion *uint16 `ic:"certificate_version,omitempty"`
}
type HttpResponse ¶
type HttpResponse = struct {
StatusCode uint16 `ic:"status_code"`
Headers []HeaderField `ic:"headers"`
Body []byte `ic:"body"`
StreamingStrategy *StreamingStrategy `ic:"streaming_strategy,omitempty"`
}
type ListPermitted ¶
type ListPermitted = struct {
Permission Permission `ic:"permission"`
}
type Permission ¶
type Permission = struct {
Commit *struct{} `ic:"Commit,variant"`
ManagePermissions *struct{} `ic:"ManagePermissions,variant"`
Prepare *struct{} `ic:"Prepare,variant"`
}
type RevokePermission ¶
type RevokePermission = struct {
OfPrincipal principal.Principal `ic:"of_principal"`
Permission Permission `ic:"permission"`
}
type SetAssetPropertiesArguments ¶
type SetAssetPropertiesArguments = struct {
Key Key `ic:"key"`
MaxAge **uint64 `ic:"max_age,omitempty"`
Headers **[]HeaderField `ic:"headers,omitempty"`
AllowRawAccess **bool `ic:"allow_raw_access,omitempty"`
IsAliased **bool `ic:"is_aliased,omitempty"`
}
type StreamingCallbackHttpResponse ¶
type StreamingCallbackHttpResponse = struct {
Body []byte `ic:"body"`
Token *StreamingCallbackToken `ic:"token,omitempty"`
}
type StreamingCallbackToken ¶
type StreamingStrategy ¶
type StreamingStrategy = struct {
Callback *struct {
Callback struct {
} `ic:"callback"`
Token StreamingCallbackToken `ic:"token"`
} `ic:"Callback,variant"`
}