package
4.1.0+incompatible
Repository: https://github.com/open-horizon/anax.git
Documentation: pkg.go.dev
# Functions
Change the config state for the given service in the exchange and return the services that are just changed to suspended.
This is a type conversion function but note that the token field within the persistent is explicitly omitted so that it's not exposed in the API.
Given a demarshalled HorizonDevice object, validate it and save it, returning any errors.
Given a demarshalled Service object, validate it and save it, returning any errors.
No description provided by the author
Handles the DELETE verb on this resource.
Delete the node policy object.
Delete the node policy object.
No description provided by the author
No description provided by the author
No description provided by the author
serializeAttributeForOutput retrieves attributes by url from the DB and then serializes then as JSON, returning a byte array for convenient writing to an HTTP response.
No description provided by the author
This API returns the event logs saved on the db.
No description provided by the author
Return an empty policy object or the object that's in the local database.
Return an empty user input object or the object that's in the local database.
No description provided by the author
No description provided by the author
No description provided by the author
get the service configuration state for all the registered services.
This API returns everything we know about services configured to and running on an edge node.
No description provided by the author
Use this function to obtain an error handler that writes errors to the HTTP response.
Get docker container metadata from the docker API for microservice containers.
Use this function to obtain an error handler that simply passes the error through itself back to caller.
Get docker container metadata from the docker API for workload containers.
No description provided by the author
No description provided by the author
No description provided by the author
returns: faulty value, msg, error.
This is does nothing useful at run time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constructor used to create service objects for programmatic creation of services.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Update a single field of the policy object in the local node db and in the exchange.
Update a single field of the UserInput object in the local node db and in the exchange.
Given a demarshalled Configstate object, validate it and save, returning any errors.
Handles the PATCH verb on this resource.
Update the policy object in the local node database and in the exchange.
Update the user input object in the local node database and in the exchange.
No description provided by the author
No description provided by the author
Validate 1) service exist; 2) service type matches the node type 3) variables defined in the service; 4) values have correct type.
No description provided by the author
# Constants
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
from api_service.go.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
from path_node_configstate.go.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
from api_node.go.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
messages for event logs.
from path_node_policy.go.
from path_node_userinput.go.
messages for event logs.
messages for event logs.
messages for event logs.
from path_node.go.
messages for event logs.
messages for event logs.
messages for event logs.
from path_service_config.go.
messages for event logs.
# Variables
No description provided by the author
Global "static" field to remember that unconfig is in progress.
# Structs
The output format for GET microservice.
The output format for GET service.
The output format for GET workload.
No description provided by the author
No description provided by the author
APIUserInputError is for problems found with input path variables or input bodies.
No description provided by the author
Bad Requests are expected, since they can occur as the result of incorrect usage of the API.
No description provided by the author
No description provided by the author
Conflict Errors are expected, since they can occur as the result of incorrect usage of the API.
DuplicateServiceError occurs when a microservice configuration is attempted for a service that has already been configured.
No description provided by the author
No description provided by the author
The output format for microservice config.
The output format for microservice instances.
MSMissingVariableConfigError is for problems found with microservice configuration where the microservice definition requires 1 or more input variables to be set but 1 or more of those variables has not been set.
Not Found errors are expected, since they can occur as the result of incorrect usage of the API.
uses pointers for members b/c it allows nil-checking at deserialization; !Important!: the json field names here must not change w/out changing the error messages returned from the API, they are not programmatically determined.
Service Unavailable error are generally retryable, but our CLI does several retries so in our case, retry might not work.
System Errors are generally unexpected, infrastructural problems that just need to be reported out to the caller.
TypeMismatchError is for node type and service type mismatch.
# Type aliases
AttributeVerifier returns true if there is a handled inputError (one that caused a write to the http responsewriter) and error if there is a system processing problem.
This type is used for the node related the functions.
This function type is used to enable plug replaceable error handlers within the API implementation so that business logic can be tested independently from the HTTP transport that is used to access the API.
Functions and types that plug into the go sorting feature.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author