utils

package
v0.0.0-...-f6c6bc8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DBMigrate
	DBMigrate = os.Getenv("TASK_DB_MIGRATE")

	// DBConnectionURL -
	DBConnectionURL = os.Getenv("TASKER_DB_CONNECTION_URL")

	// ScriptRoot -
	ScriptRoot = os.Getenv("TASKER_SCRIPT_ROOT")

	// TaskerEnv -
	TaskerEnv = os.Getenv("TASKER_ENV")

	// GithubClientID
	GithubClientID = os.Getenv("GITHUB_CLIENT_ID")

	// GithubClientSecret
	GithubClientSecret = os.Getenv("GITHUB_CLIENT_SECRET")

	// TaskerSecret - used for our signing of access tokens
	TaskerSecret = os.Getenv("TASKER_SECRET")
)

Functions

func DownloadZip

func DownloadZip(fp string, url string) error

func UnZip

func UnZip(path string)

func Validate

func Validate(args map[string]interface{}, p interface{}) error

Types

type GithubScopeType

type GithubScopeType string

GithubScopeType -

const (
	// GithubUserScope -
	GithubUserScope GithubScopeType = "user"
	// GithubRepoScope -
	GithubRepoScope GithubScopeType = "repo"
)

type HTTPError

type HTTPError string

HTTPError -

const (
	// ProcessingError -
	ProcessingError HTTPError = "processing_error"
	// RequestError -
	RequestError HTTPError = "request_error"
)

func (HTTPError) String

func (h HTTPError) String() string

Jump to

Keyboard shortcuts

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