custom-pod-autoscaler: github.com/jthomperoo/custom-pod-autoscaler/execute Index | Files | Directories

package execute

import "github.com/jthomperoo/custom-pod-autoscaler/execute"

Package execute abstracts methods, providing a standardised way to trigger methods and provide values

Index

Package Files

execute.go

Constants

const CombinedType = "combined"

CombinedType is the type of the CombinedExecute; designed to link together multiple executers and to provide a simplified single entry point

type CombinedExecute Uses

type CombinedExecute struct {
    Executers []Executer
}

CombinedExecute is an executer that contains subexecuters that it will forward method requests to; designed to link together multiple executers and to provide a simplified single entry point

func (*CombinedExecute) ExecuteWithValue Uses

func (e *CombinedExecute) ExecuteWithValue(method *config.Method, value string) (string, error)

ExecuteWithValue takes in a method and a value to pass, it will look at the stored sub executers and decide which executer to use for the method provided

func (*CombinedExecute) GetType Uses

func (e *CombinedExecute) GetType() string

GetType returns the CombinedExecute type

type Executer Uses

type Executer interface {
    ExecuteWithValue(method *config.Method, value string) (string, error)
    GetType() string
}

Executer interface provides methods for executing user logic with a value passed through to it

Directories

PathSynopsis
shellPackage shell handles interactions with the OS shell

Package execute imports 2 packages (graph) and is imported by 4 packages. Updated 2020-07-07. Refresh now. Tools for package owners.