bind

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpBind added in v0.5.0

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

HttpBind ...

func NewHttpBind added in v0.9.0

func NewHttpBind() *HttpBind

func (*HttpBind) BasicAuth added in v0.12.0

func (h *HttpBind) BasicAuth(username, password string) *HttpBind

func (*HttpBind) Delete added in v0.9.4

func (h *HttpBind) Delete(url string) (response HttpResponse)

Delete ...

func (*HttpBind) DigestAuth added in v0.12.0

func (h *HttpBind) DigestAuth(username, password string) *HttpBind

func (*HttpBind) Download added in v0.12.0

func (h *HttpBind) Download(uri string) (response HttpResponse)

func (*HttpBind) Get added in v0.5.0

func (h *HttpBind) Get(url string) (response HttpResponse)

Get ...

func (*HttpBind) Headers added in v0.9.4

func (h *HttpBind) Headers(headers []map[string]string) *HttpBind

func (*HttpBind) Post added in v0.5.0

func (h *HttpBind) Post(url, data string) (response HttpResponse)

Post ...

func (*HttpBind) Put added in v0.9.4

func (h *HttpBind) Put(url, data string) (response HttpResponse)

Put ...

type HttpResponse added in v0.5.0

type HttpResponse struct {
	Body         string `json:"body"`
	Error        bool   `json:"error"`
	ErrorMessage string `json:"errorMessage"`
}

HttpResponse ...

type LogBind

type LogBind struct{}

LogBind ...

func (*LogBind) Debug

func (b *LogBind) Debug(v ...interface{})

Debug ...

func (*LogBind) Error

func (b *LogBind) Error(v ...interface{})

Error ...

func (*LogBind) Info

func (b *LogBind) Info(v ...interface{})

Info ...

func (*LogBind) Warn

func (b *LogBind) Warn(v ...interface{})

Warn ...

type Response

type Response struct {
	Out string `json:"out"`
	Err string `json:"err"`
}

Response ...

func ExecuteAsync

func ExecuteAsync(name string, arg ...string) (r *Response)

ExecuteAsync ...

func ExecuteSync

func ExecuteSync(name string, arg ...string) (r *Response)

ExecuteSync "sh", "-c", "echo stdout; echo 1>&2 stderr"

type StorageBind added in v0.4.0

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

StorageBind ...

func NewStorageBind added in v0.4.0

func NewStorageBind(
	storage *storage.Storage) *StorageBind

NewStorageBind ...

func (*StorageBind) GetByName added in v0.4.0

func (s *StorageBind) GetByName(name string) string

GetByName ...

func (*StorageBind) Pop added in v0.4.0

func (s *StorageBind) Pop(name string) string

Pop ...

func (*StorageBind) Push added in v0.4.0

func (s *StorageBind) Push(name string, val string) (err error)

Push ...

func (*StorageBind) Search added in v0.4.0

func (s *StorageBind) Search(name string) (result map[string]string)

Search ...

Jump to

Keyboard shortcuts

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