utility

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AccessTokenHeaderKey = "Access-Token"
View Source
const ClientError = "malformed request"
View Source
const ClientOutdatedErrorMessage = "Your Proctor client is using an outdated version: %s . To continue using proctor, please upgrade to latest version."
View Source
const ClientVersionHeaderKey = "Client-Version"
View Source
const ConfigProctorHostMissingError = "Config Error!!!\nMandatory config PROCTOR_HOST is missing in Proctor Config file."
View Source
const DuplicateJobNameArgsClientError = "provided duplicate combination of job name and args for scheduling"
View Source
const GenericDescribeCmdError = "Error fetching description of proc. Please check configuration and network connectivity"
View Source
const GenericListCmdError = "Error fetching list of procs. Please check configuration and network connectivity"
View Source
const GenericNetworkErrorHeader = "Network Error!!!"
View Source
const GenericProcCmdError = "Error executing proc. Please check configuration and network connectivity"
View Source
const GenericResponseErrorHeader = "Server Error!!!"
View Source
const GenericTimeoutErrorBody = "Please check your Internet/VPN connection for connectivity to ProctorD."
View Source
const GenericTimeoutErrorHeader = "Connection Timeout!!!"
View Source
const GroupNameMissingError = "Group Name is missing"
View Source
const ImageNameContextKey = "image_name"
View Source
const InvalidCronExpressionClientError = "Cron expression invalid"
View Source
const InvalidEmailIdClientError = "Provided invalid Email ID"
View Source
const InvalidTagError = "Tag(s) are missing"
View Source
const JobArgsContextKey = "job_args"
View Source
const JobExecutionStatusFetchError = "JOB_EXECUTION_STATUS_FETCH_ERROR"
View Source
const JobFailed = "FAILED"
View Source
const JobForbiddenErrorHeader = "Access Denied : You are Not Authorized to Perform this action."
View Source
const JobNameContextKey = "job_name"
View Source
const JobNameSubmittedForExecutionContextKey = "job_name_submitted_for_execution"
View Source
const JobNotFound = "NOT_FOUND"
View Source
const JobNotFoundError = "Job not found"
View Source
const JobSchedulingStatusContextKey = "job_scheduling_status"
View Source
const JobSubmissionClientError = "client_error"
View Source
const JobSubmissionServerError = "server_error"
View Source
const JobSubmissionStatusContextKey = "job_sumission_status"
View Source
const JobSubmissionSuccess = "success"
View Source
const JobSucceeded = "SUCCEEDED"
View Source
const JobWaiting = "WAITING"
View Source
const NoDefinitiveJobExecutionStatusFound = "NO_DEFINITIVE_JOB_EXECUTION_STATUS_FOUND"
View Source
const NoScheduledJobsError = "No scheduled jobs found"
View Source
const NonExistentProcClientError = "proc name non existent"
View Source
const ServerError = "Something went wrong"
View Source
const UnauthorizedErrorHeader = "Unauthorized Access!!!"
View Source
const UnauthorizedErrorInvalidConfig = "Please check the EMAIL_ID and ACCESS_TOKEN validity in proctor config file."
View Source
const UnauthorizedErrorMissingConfig = "EMAIL_ID or ACCESS_TOKEN is not present in proctor config file."
View Source
const UserEmailContextKey = "user_email"
View Source
const UserEmailHeaderKey = "Email-Id"
View Source
const WorkerEmail = "worker@proctor"

Variables

This section is empty.

Functions

func DeserializeMap added in v0.5.0

func DeserializeMap(encodedMap string) (map[string]string, error)

func MapToString added in v0.5.0

func MapToString(someMap map[string]string) string

func MergeMaps

func MergeMaps(mapOne, mapTwo map[string]string) map[string]string

Types

type Buffer

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

func NewBuffer

func NewBuffer() *Buffer

func (*Buffer) Close

func (b *Buffer) Close() error

func (*Buffer) Read

func (b *Buffer) Read(p []byte) (n int, err error)

func (*Buffer) WasClosed

func (b *Buffer) WasClosed() bool

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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