Documentation ¶
Index ¶
- type Binding
- type Client
- func (c *Client) ExecGovernance(ctx context.Context, govCode, action, subject, zone string) (*GovernanceExecAnswer, error)
- func (c *Client) GetExecutionConsumedResources(ctx context.Context, order, execution string) ([]string, error)
- func (c *Client) GetExecutionOrderContext(ctx context.Context, order, execSvc string) (*ExecutionOrderContext, error)
- func (c *Client) GetResourceGovCode(ctx context.Context, resource string) (string, error)
- func (c *Client) GetResourcePublication(ctx context.Context, resource, servedBy string) (*string, error)
- type ExecutionOrderContext
- type GovernanceExecAnswer
- type IRI
- type Literal
- type Node
- type Prefix
- type Select
- type SelectItem
- type SelectQuery
- type SelectResponse
- type SimpleWhereCondition
- type TriplePattern
- type VarOrNamedNode
- type VarOrNode
- type VarOrNodeOrLiteral
- type WhereCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, nodeGrpc, dataverseAddr string, transportCreds credentials.TransportCredentials) (*Client, error)
func (*Client) ExecGovernance ¶
func (*Client) GetExecutionConsumedResources ¶
func (*Client) GetExecutionOrderContext ¶
func (*Client) GetResourceGovCode ¶
type ExecutionOrderContext ¶
type ExecutionOrderContext struct { Zone string /// Executions contains for each execution id related to the order, the linked statuses. Executions map[string][]string }
func (*ExecutionOrderContext) ExecutionsInProgress ¶
func (e *ExecutionOrderContext) ExecutionsInProgress() []string
type GovernanceExecAnswer ¶
type Literal ¶
type Literal struct { Simple string `json:"simple,omitempty"` LanguageTaggedString *struct { Value string `json:"value"` Language string `json:"language"` } `json:"language_tagged_string,omitempty"` TypedValue *struct { Value string `json:"value"` Datatype IRI `json:"datatype"` } `json:"typed_value,omitempty"` }
type Select ¶
type Select struct {
Query SelectQuery `json:"query"`
}
type SelectItem ¶
type SelectItem struct {
Variable string `json:"variable"`
}
type SelectQuery ¶
type SelectQuery struct { Prefixes []Prefix `json:"prefixes"` Select []SelectItem `json:"select"` Where []WhereCondition `json:"where"` Limit uint64 `json:"limit"` }
type SelectResponse ¶
type SelectResponse struct { Head struct { Vars []string `json:"vars"` } `json:"head"` Results struct { Bindings []Binding `json:"bindings"` } `json:"results"` }
func (*SelectResponse) GetVariableValues ¶
type SimpleWhereCondition ¶
type SimpleWhereCondition struct {
TriplePattern TriplePattern `json:"triple_pattern"`
}
type TriplePattern ¶
type TriplePattern struct { Subject VarOrNode `json:"subject"` Predicate VarOrNamedNode `json:"predicate"` Object VarOrNodeOrLiteral `json:"object"` }
type VarOrNamedNode ¶
type VarOrNodeOrLiteral ¶
type WhereCondition ¶
type WhereCondition struct {
Simple SimpleWhereCondition `json:"simple"`
}
Click to show internal directories.
Click to hide internal directories.