Documentation
¶
Index ¶
- Variables
- func BrowserFlow(opts BrowserFlowOptions) error
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) (int64, error)
- func Exists(fn string) bool
- func ListDir(dir string) ([]string, error)
- func RandStringBytes(n int) string
- func ZipDir(dir string, outfilename string, opts ...ZipDirCallbackMatcher) error
- type APIClient
- type AgentConfig
- type BrowserFlowOptions
- type ZipDirCallbackMatcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("timeout")
Functions ¶
func BrowserFlow ¶
func BrowserFlow(opts BrowserFlowOptions) error
BrowserFlow will open a browser and wait for the user to finish the flow. It will return an error if the flow times out with an ErrTimeout error. It will return an error if the callback fails or any other error occurs.
func RandStringBytes ¶
RandStringBytes will generate a random string of length n using the alphaNumChars string.
Types ¶
type AgentConfig ¶ added in v0.0.20
type AgentConfig struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
}
func ParseAgentConfig ¶ added in v0.0.20
func ParseAgentConfig(projectID string, filename string) (*AgentConfig, error)
ParseAgentConfig parses an agent config from a file.
type BrowserFlowOptions ¶
Click to show internal directories.
Click to hide internal directories.