Documentation
¶
Overview ¶
Package governance provides a client for the "governance" 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) Configure(arg0 ConfigureArguments) 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) GetConfiguration() (*ConfigurationResponse, 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) ValidateConfigure(arg0 ConfigureArguments) (*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 AssetCanisterArgs
- type BatchId
- type BatchOperationKind
- type ChunkId
- type ClearArguments
- type CommitBatchArguments
- type CommitProposedBatchArguments
- type ComputeEvidenceArguments
- type ConfigurationResponse
- type ConfigureArguments
- type CreateAssetArguments
- type DeleteAssetArguments
- type DeleteBatchArguments
- type GrantPermission
- type HeaderField
- type HttpRequest
- type HttpResponse
- type InitArgs
- type Key
- type ListPermitted
- type Permission
- type RevokePermission
- type SetAssetContentArguments
- type SetAssetPropertiesArguments
- type SetPermissions
- type StreamingCallbackHttpResponse
- type StreamingCallbackToken
- type StreamingStrategy
- type Time
- type UnsetAssetContentArguments
- type UpgradeArgs
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
Agent is a client for the "governance" canister.
func (Agent) ApiVersion ¶
ApiVersion calls the "api_version" method on the "governance" canister.
func (Agent) CertifiedTree ¶
func (a Agent) CertifiedTree(arg0 struct { }) (*struct { Certificate []byte `ic:"certificate" json:"certificate"` Tree []byte `ic:"tree" json:"tree"` }, error)
CertifiedTree calls the "certified_tree" method on the "governance" canister.
func (Agent) Clear ¶
func (a Agent) Clear(arg0 ClearArguments) error
Clear calls the "clear" method on the "governance" canister.
func (Agent) CommitBatch ¶
func (a Agent) CommitBatch(arg0 CommitBatchArguments) error
CommitBatch calls the "commit_batch" method on the "governance" canister.
func (Agent) CommitProposedBatch ¶
func (a Agent) CommitProposedBatch(arg0 CommitProposedBatchArguments) error
CommitProposedBatch calls the "commit_proposed_batch" method on the "governance" canister.
func (Agent) ComputeEvidence ¶
func (a Agent) ComputeEvidence(arg0 ComputeEvidenceArguments) (**[]byte, error)
ComputeEvidence calls the "compute_evidence" method on the "governance" canister.
func (Agent) Configure ¶
func (a Agent) Configure(arg0 ConfigureArguments) error
Configure calls the "configure" method on the "governance" canister.
func (Agent) CreateAsset ¶
func (a Agent) CreateAsset(arg0 CreateAssetArguments) error
CreateAsset calls the "create_asset" method on the "governance" canister.
func (Agent) CreateBatch ¶
func (a Agent) CreateBatch(arg0 struct { }) (*struct { BatchId BatchId `ic:"batch_id" json:"batch_id"` }, error)
CreateBatch calls the "create_batch" method on the "governance" canister.
func (Agent) CreateChunk ¶
func (a Agent) CreateChunk(arg0 struct { BatchId BatchId `ic:"batch_id" json:"batch_id"` Content []byte `ic:"content" json:"content"` }) (*struct { ChunkId ChunkId `ic:"chunk_id" json:"chunk_id"` }, error)
CreateChunk calls the "create_chunk" method on the "governance" canister.
func (Agent) Deauthorize ¶
Deauthorize calls the "deauthorize" method on the "governance" canister.
func (Agent) DeleteAsset ¶
func (a Agent) DeleteAsset(arg0 DeleteAssetArguments) error
DeleteAsset calls the "delete_asset" method on the "governance" canister.
func (Agent) DeleteBatch ¶
func (a Agent) DeleteBatch(arg0 DeleteBatchArguments) error
DeleteBatch calls the "delete_batch" method on the "governance" canister.
func (Agent) Get ¶
func (a Agent) Get(arg0 struct { Key Key `ic:"key" json:"key"` AcceptEncodings []string `ic:"accept_encodings" json:"accept_encodings"` }) (*struct { Content []byte `ic:"content" json:"content"` ContentType string `ic:"content_type" json:"content_type"` ContentEncoding string `ic:"content_encoding" json:"content_encoding"` Sha256 *[]byte `ic:"sha256,omitempty" json:"sha256,omitempty"` TotalLength idl.Nat `ic:"total_length" json:"total_length"` }, error)
Get calls the "get" method on the "governance" canister.
func (Agent) GetAssetProperties ¶
func (a Agent) GetAssetProperties(key Key) (*struct { MaxAge *uint64 `ic:"max_age,omitempty" json:"max_age,omitempty"` Headers *[]HeaderField `ic:"headers,omitempty" json:"headers,omitempty"` AllowRawAccess *bool `ic:"allow_raw_access,omitempty" json:"allow_raw_access,omitempty"` IsAliased *bool `ic:"is_aliased,omitempty" json:"is_aliased,omitempty"` }, error)
GetAssetProperties calls the "get_asset_properties" method on the "governance" canister.
func (Agent) GetChunk ¶
func (a Agent) GetChunk(arg0 struct { Key Key `ic:"key" json:"key"` ContentEncoding string `ic:"content_encoding" json:"content_encoding"` Index idl.Nat `ic:"index" json:"index"` Sha256 *[]byte `ic:"sha256,omitempty" json:"sha256,omitempty"` }) (*struct { Content []byte `ic:"content" json:"content"` }, error)
GetChunk calls the "get_chunk" method on the "governance" canister.
func (Agent) GetConfiguration ¶
func (a Agent) GetConfiguration() (*ConfigurationResponse, error)
GetConfiguration calls the "get_configuration" method on the "governance" canister.
func (Agent) GrantPermission ¶
func (a Agent) GrantPermission(arg0 GrantPermission) error
GrantPermission calls the "grant_permission" method on the "governance" canister.
func (Agent) HttpRequest ¶
func (a Agent) HttpRequest(request HttpRequest) (*HttpResponse, error)
HttpRequest calls the "http_request" method on the "governance" canister.
func (Agent) HttpRequestStreamingCallback ¶
func (a Agent) HttpRequestStreamingCallback(token StreamingCallbackToken) (**StreamingCallbackHttpResponse, error)
HttpRequestStreamingCallback calls the "http_request_streaming_callback" method on the "governance" canister.
func (Agent) List ¶
func (a Agent) List(arg0 struct { }) (*[]struct { Key Key `ic:"key" json:"key"` ContentType string `ic:"content_type" json:"content_type"` Encodings []struct { ContentEncoding string `ic:"content_encoding" json:"content_encoding"` Sha256 *[]byte `ic:"sha256,omitempty" json:"sha256,omitempty"` Length idl.Nat `ic:"length" json:"length"` Modified Time `ic:"modified" json:"modified"` } `ic:"encodings" json:"encodings"` }, error)
List calls the "list" method on the "governance" canister.
func (Agent) ListAuthorized ¶
ListAuthorized calls the "list_authorized" method on the "governance" canister.
func (Agent) ListPermitted ¶
func (a Agent) ListPermitted(arg0 ListPermitted) (*[]principal.Principal, error)
ListPermitted calls the "list_permitted" method on the "governance" canister.
func (Agent) ProposeCommitBatch ¶
func (a Agent) ProposeCommitBatch(arg0 CommitBatchArguments) error
ProposeCommitBatch calls the "propose_commit_batch" method on the "governance" canister.
func (Agent) RevokePermission ¶
func (a Agent) RevokePermission(arg0 RevokePermission) error
RevokePermission calls the "revoke_permission" method on the "governance" canister.
func (Agent) SetAssetContent ¶
func (a Agent) SetAssetContent(arg0 SetAssetContentArguments) error
SetAssetContent calls the "set_asset_content" method on the "governance" canister.
func (Agent) SetAssetProperties ¶
func (a Agent) SetAssetProperties(arg0 SetAssetPropertiesArguments) error
SetAssetProperties calls the "set_asset_properties" method on the "governance" canister.
func (Agent) Store ¶
func (a Agent) Store(arg0 struct { Key Key `ic:"key" json:"key"` ContentType string `ic:"content_type" json:"content_type"` ContentEncoding string `ic:"content_encoding" json:"content_encoding"` Content []byte `ic:"content" json:"content"` Sha256 *[]byte `ic:"sha256,omitempty" json:"sha256,omitempty"` }) error
Store calls the "store" method on the "governance" canister.
func (Agent) TakeOwnership ¶
TakeOwnership calls the "take_ownership" method on the "governance" canister.
func (Agent) UnsetAssetContent ¶
func (a Agent) UnsetAssetContent(arg0 UnsetAssetContentArguments) error
UnsetAssetContent calls the "unset_asset_content" method on the "governance" canister.
func (Agent) ValidateCommitProposedBatch ¶
func (a Agent) ValidateCommitProposedBatch(arg0 CommitProposedBatchArguments) (*ValidationResult, error)
ValidateCommitProposedBatch calls the "validate_commit_proposed_batch" method on the "governance" canister.
func (Agent) ValidateConfigure ¶
func (a Agent) ValidateConfigure(arg0 ConfigureArguments) (*ValidationResult, error)
ValidateConfigure calls the "validate_configure" method on the "governance" canister.
func (Agent) ValidateGrantPermission ¶
func (a Agent) ValidateGrantPermission(arg0 GrantPermission) (*ValidationResult, error)
ValidateGrantPermission calls the "validate_grant_permission" method on the "governance" canister.
func (Agent) ValidateRevokePermission ¶
func (a Agent) ValidateRevokePermission(arg0 RevokePermission) (*ValidationResult, error)
ValidateRevokePermission calls the "validate_revoke_permission" method on the "governance" canister.
func (Agent) ValidateTakeOwnership ¶
func (a Agent) ValidateTakeOwnership() (*ValidationResult, error)
ValidateTakeOwnership calls the "validate_take_ownership" method on the "governance" canister.
type AssetCanisterArgs ¶
type AssetCanisterArgs struct { Init *InitArgs `ic:"Init,variant"` Upgrade *UpgradeArgs `ic:"Upgrade,variant"` }
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" json:"batch_id"` Operations []BatchOperationKind `ic:"operations" json:"operations"` }
type ConfigurationResponse ¶
type ConfigureArguments ¶
type CreateAssetArguments ¶
type CreateAssetArguments struct { Key Key `ic:"key" json:"key"` ContentType string `ic:"content_type" json:"content_type"` MaxAge *uint64 `ic:"max_age,omitempty" json:"max_age,omitempty"` Headers *[]HeaderField `ic:"headers,omitempty" json:"headers,omitempty"` EnableAliasing *bool `ic:"enable_aliasing,omitempty" json:"enable_aliasing,omitempty"` AllowRawAccess *bool `ic:"allow_raw_access,omitempty" json:"allow_raw_access,omitempty"` }
type DeleteAssetArguments ¶
type DeleteAssetArguments struct {
Key Key `ic:"key" json:"key"`
}
type DeleteBatchArguments ¶
type DeleteBatchArguments struct {
BatchId BatchId `ic:"batch_id" json:"batch_id"`
}
type GrantPermission ¶
type GrantPermission struct { ToPrincipal principal.Principal `ic:"to_principal" json:"to_principal"` Permission Permission `ic:"permission" json:"permission"` }
type HeaderField ¶
type HttpRequest ¶
type HttpRequest struct { Method string `ic:"method" json:"method"` Url string `ic:"url" json:"url"` Headers []HeaderField `ic:"headers" json:"headers"` Body []byte `ic:"body" json:"body"` CertificateVersion *uint16 `ic:"certificate_version,omitempty" json:"certificate_version,omitempty"` }
type HttpResponse ¶
type HttpResponse struct { StatusCode uint16 `ic:"status_code" json:"status_code"` Headers []HeaderField `ic:"headers" json:"headers"` Body []byte `ic:"body" json:"body"` StreamingStrategy *StreamingStrategy `ic:"streaming_strategy,omitempty" json:"streaming_strategy,omitempty"` }
type ListPermitted ¶
type ListPermitted struct {
Permission Permission `ic:"permission" json:"permission"`
}
type Permission ¶
type RevokePermission ¶
type RevokePermission struct { OfPrincipal principal.Principal `ic:"of_principal" json:"of_principal"` Permission Permission `ic:"permission" json:"permission"` }
type SetAssetPropertiesArguments ¶
type SetAssetPropertiesArguments struct { Key Key `ic:"key" json:"key"` MaxAge **uint64 `ic:"max_age,omitempty" json:"max_age,omitempty"` Headers **[]HeaderField `ic:"headers,omitempty" json:"headers,omitempty"` AllowRawAccess **bool `ic:"allow_raw_access,omitempty" json:"allow_raw_access,omitempty"` IsAliased **bool `ic:"is_aliased,omitempty" json:"is_aliased,omitempty"` }
type SetPermissions ¶
type StreamingCallbackHttpResponse ¶
type StreamingCallbackHttpResponse struct { Body []byte `ic:"body" json:"body"` Token *StreamingCallbackToken `ic:"token,omitempty" json:"token,omitempty"` }
type StreamingCallbackToken ¶
type StreamingStrategy ¶
type StreamingStrategy struct { Callback *struct { Callback struct { } `ic:"callback" json:"callback"` Token StreamingCallbackToken `ic:"token" json:"token"` } `ic:"Callback,variant"` }
type UpgradeArgs ¶
type UpgradeArgs struct {
SetPermissions *SetPermissions `ic:"set_permissions,omitempty" json:"set_permissions,omitempty"`
}