nexus

package module
v0.0.0-...-21f4e67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2015 License: MIT Imports: 8 Imported by: 1

README

Nexus Client (go)

Golang client for the Nexus Configuration Server

wercker status

Documentation

Available at https://godoc.org/github.com/etcinit/nexus-client-go

Setup

  1. Setup a Nexus server
  2. Get the library: go get github.com/etcinit/nexusgo
  3. Construct a client instance and fetch configuration files for your app

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an implementation of the Nexus configuration server client

func NewClient

func NewClient(endpoint string, token string) *Client

NewClient creates a new instance of a NexusClient

func NewClientFromEnv

func NewClientFromEnv() (*Client, error)

NewClientFromEnv creates a new instance of a NexusClient from environment variables

func (*Client) Fetch

func (c *Client) Fetch() (*responses.FetchResponse, []error)

Fetch fetches all configuration variables assigned to the token. Nexus will return all the key/value pairs associated with the token application.

func (*Client) Log

func (c *Client) Log(name string, logName string, lines []string) []error

Log pushes logs lines to Nexus

func (*Client) Ping

func (c *Client) Ping(name string, message string) []error

Ping sends a ping to the Nexus server with the provided server name and message. Used for reporting the version or status of a server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL