Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

    Manifold returns a manifold whose worker wraps an API connection made on behalf of the dependency identified by AgentName.

    func OpenAPIState

    func OpenAPIState(a agent.Agent) (_ api.Connection, _ *apiagent.Entity, err error)

      OpenAPIState opens the API using the given information. The agent's password is changed if the fallback password was used to connect to the API.

      func OpenAPIStateUsingInfo

      func OpenAPIStateUsingInfo(info *api.Info, oldPassword string) (api.Connection, error)

        OpenAPIStateUsingInfo opens the API using the given API information, and returns the opened state and the api entity with the given tag.

        Types

        type ManifoldConfig

        type ManifoldConfig struct {
        	AgentName       string
        	APIInfoGateName string
        }

          ManifoldConfig defines the names of the manifolds on which a Manifold will depend.