Documentation
¶
Overview ¶
Package appnet provides network actions for the operation graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
op.ProviderBase
}
Provider provides network actions.
+devlore:access=planned
func NewProvider ¶
type Resource ¶
type Resource struct {
op.ResourceBase
SourceURL *url.URL
}
Resource represents a network resource identified by a URL.
The SourceURL holds the original URL as provided (with transport scheme, original casing, etc.). The canonical URI produced by [URI] is an opaque appnet: URI wrapping the normalized, transport-independent URL with targeted escaping of # and ? characters.
func ResourceFromValue ¶
ResourceFromValue constructs an appnet.Resource from a string URL.
Parameters:
- v: expected to be a string URL
Returns:
- Resource: initialized with the parsed URL
- error: if v is not a string or the URL is invalid
Click to show internal directories.
Click to hide internal directories.