bind

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetByNameResponse added in v0.21.1

type GetByNameResponse struct {
	Variable m.Variable `json:"variable"`
	Error    error      `json:"error"`
}

type HttpBind

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

HttpBind ...

func NewHttpBind

func NewHttpBind() *HttpBind

func (*HttpBind) BasicAuth

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

func (*HttpBind) Delete

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

Delete ...

func (*HttpBind) DigestAuth

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

func (*HttpBind) Download

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

func (*HttpBind) Get

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

Get ...

func (*HttpBind) Head added in v0.22.0

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

Head ...

func (*HttpBind) Headers

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

func (*HttpBind) Post

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

Post ...

func (*HttpBind) Put

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

Put ...

type HttpResponse

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

HttpResponse ...

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

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

StorageBind ...

func NewStorageBind

func NewStorageBind(
	storage *storage.Storage) *StorageBind

NewStorageBind ...

func (*StorageBind) GetByName

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

GetByName ...

func (*StorageBind) Pop

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

Pop ...

func (*StorageBind) Push

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

Push ...

func (*StorageBind) Search

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

Search ...

type Variable added in v0.21.1

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

Variable ...

func NewVariable added in v0.21.1

func NewVariable(adaptors *adaptors.Adaptors, validation *validation.Validate, eventBus bus.Bus) *Variable

NewVariable ...

func (*Variable) Delete added in v0.21.1

func (s *Variable) Delete(name string) (err error)

func (*Variable) GetByName added in v0.21.1

func (s *Variable) GetByName(name string) GetByNameResponse

func (*Variable) List added in v0.21.1

func (*Variable) Push added in v0.21.1

func (s *Variable) Push(request VariablePushRequest) (err error)

type VariableListResponse added in v0.21.1

type VariableListResponse struct {
	Items []m.Variable `json:"items"`
	Total int64        `json:"total"`
	Error error        `json:"error"`
}

type VariablePushRequest added in v0.21.1

type VariablePushRequest struct {
	Name  string   `json:"name"`
	Value string   `json:"value"`
	Tags  []string `json:"tags"`
}

Jump to

Keyboard shortcuts

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