utils

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

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

DefaultManager -

func (*DefaultManager) FindFiles

func (m *DefaultManager) FindFiles(configDir, pattern string) (files []string, err error)

FindFiles -

func (*DefaultManager) HTTPDelete added in v0.0.15

func (m *DefaultManager) HTTPDelete(url, token, payload string) (err error)

HTTPDelete -

func (*DefaultManager) HTTPGet added in v0.0.13

func (m *DefaultManager) HTTPGet(url, token string) (body string, err error)

HTTPGet -

func (*DefaultManager) HTTPPost added in v0.0.13

func (m *DefaultManager) HTTPPost(url, token, payload string) (body string, err error)

HTTPPost -

func (*DefaultManager) HTTPPut added in v0.0.13

func (m *DefaultManager) HTTPPut(url, token, payload string) (err error)

HTTPPut -

func (*DefaultManager) LoadFile added in v0.0.13

func (m *DefaultManager) LoadFile(configFile string, dataType interface{}) (err error)

LoadFile -

func (*DefaultManager) WriteFile added in v0.0.14

func (m *DefaultManager) WriteFile(configFile string, dataType interface{}) (err error)

WriteFile -

type Manager

type Manager interface {
	FindFiles(directoryName, pattern string) (files []string, err error)
	HTTPPut(url, token, payload string) (err error)
	HTTPDelete(url, token, payload string) (err error)
	HTTPPost(url, token, payload string) (body string, err error)
	HTTPGet(url, token string) (body string, err error)
	LoadFile(configFile string, dataType interface{}) (err error)
	WriteFile(configFile string, dataType interface{}) (err error)
}

Manager -

func NewDefaultManager

func NewDefaultManager() (mgr Manager)

NewDefaultManager -

Jump to

Keyboard shortcuts

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