doctl: Index | Files

package pluginhost

import ""


Package Files


type CallOptions Uses

type CallOptions struct {
    AccessToken string
    Args        []string

CallOptions are options to a plugin call. This is exported so go based plugins can use the type.

type Host Uses

type Host struct {
    // contains filtered or unexported fields

Host is an object consumers can retrieve doit information from.

func NewHost Uses

func NewHost(pluginPath string) (*Host, error)

NewHost builds an instance of Host.

func (*Host) Call Uses

func (h *Host) Call(method string, args ...string) (string, error)

Call a method on the plugin.

Package pluginhost imports 8 packages (graph) and is imported by 11 packages. Updated 2018-11-15. Refresh now. Tools for package owners.