Documentation
¶
Index ¶
- Constants
- func CloseLogs(logFile *os.File)
- func Exists(path string) bool
- func ExtractErrorResponse(response *http.Response) error
- func ExtractVarsFromRequest(r *http.Request, varName string) string
- func FormatURL(url string, entries ...string) string
- func GetPath(paths []string) string
- func HttpExecute(httpClient *http.Client, logger *log.Logger, requestType string, ...) (*http.Response, error)
- func HttpExecuteUserAuth(httpClient *http.Client, logger *log.Logger, requestType string, ...) (*http.Response, error)
- func MarshalAndRecord(object interface{}, dir string, fileName string) error
- func MkDir(path string) error
- func PathUnescape(s string) (string, error)
- func PrintResponse(f resources.FlexVolumeResponse) error
- func ReadAndUnmarshal(object interface{}, dir string, fileName string) error
- func ReadFile(path string) (content []byte, err error)
- func SetupConfigDirectory(logger *log.Logger, executor Executor, configPath string) (string, error)
- func SetupLogger(logPath string, loggerName string) (*log.Logger, *os.File)
- func StringInSlice(a string, list []string) bool
- func Unmarshal(r *http.Request, object interface{}) error
- func UnmarshalDataFromRequest(r *http.Request, object interface{}) error
- func UnmarshalResponse(r *http.Response, object interface{}) error
- func WriteFile(path string, content []byte) error
- func WriteResponse(w http.ResponseWriter, code int, object interface{})
- type EscapeError
- type Executor
- type Heartbeat
- type InvalidHostError
- type Locker
Constants ¶
View Source
const (
STALE_LOCK_TIMEOUT = 600 //in seconds
)
Variables ¶
This section is empty.
Functions ¶
func ExtractErrorResponse ¶
func HttpExecute ¶
func HttpExecuteUserAuth ¶
func MarshalAndRecord ¶
func PathUnescape ¶
func PrintResponse ¶
func PrintResponse(f resources.FlexVolumeResponse) error
func ReadAndUnmarshal ¶
func SetupConfigDirectory ¶
func StringInSlice ¶
func UnmarshalResponse ¶
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, code int, object interface{})
Types ¶
type EscapeError ¶
type EscapeError string
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type Executor ¶
type Executor interface { Execute(command string, args []string) ([]byte, error) Stat(string) (os.FileInfo, error) Mkdir(string, os.FileMode) error MkdirAll(string, os.FileMode) error RemoveAll(string) error Hostname() (string, error) IsExecutable(string) error }
func NewExecutor ¶
func NewExecutor() Executor
type Heartbeat ¶
type InvalidHostError ¶
type InvalidHostError string
func (InvalidHostError) Error ¶
func (e InvalidHostError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.