consul

package
v0.0.0-...-f804275 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Project   string    `json:"-"`
	Name      string    `json:"-"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Branches

type Branches []*Branch

func (*Branches) Contains

func (branches *Branches) Contains(branch string) bool

func (*Branches) Slice

func (branches *Branches) Slice() []string

type Client

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

func New

func New(agent string, namespace Key) (*Client, error)

func (*Client) GetBranches

func (c *Client) GetBranches(project string) (Branches, error)

func (*Client) GetDistribution

func (c *Client) GetDistribution(project string) (Distribution, error)

func (*Client) GetProjects

func (c *Client) GetProjects() (Projects, error)

func (*Client) RemoveBranch

func (c *Client) RemoveBranch(branch *Branch) error

type Distribution

type Distribution map[string]string

func (*Distribution) BranchSlice

func (d *Distribution) BranchSlice() []string

func (*Distribution) Contains

func (d *Distribution) Contains(branch string) bool

type Key

type Key string

func (Key) Add

func (k Key) Add(sub string) Key

func (Key) Base

func (k Key) Base(root Key) Key

func (Key) Clean

func (k Key) Clean() string

func (Key) Get

func (k Key) Get(i int) string

type Projects

type Projects []string

func (*Projects) Contains

func (p *Projects) Contains(project string) bool

Jump to

Keyboard shortcuts

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