package
0.43.0
Repository: https://github.com/fastly/cli.git
Documentation: pkg.go.dev

# Functions

Deduce attempts to deduce a RemediationError from a plain error.
ServiceVersion returns an integer regardless of whether the given argument is a nil pointer or not.
SimplifyFastlyError reduces the potentially complex and multi-line Error rendering of a fastly.HTTPError to something more palatable for a CLI.

# Variables

AuthRemediation suggests checking the provided --token.
AutoCloneRemediation suggests provide an --autoclone flag.
BugRemediation suggests filing a bug on the GitHub repo.
CLIUpdateRemediation suggests updating the installed CLI version.
ComputeInitRemediation suggests re-running `compute init` to resolve manifest issue.
ErrIncompatibleManifestVersion means the manifest_version defined is no longer compatible with the current CLI version.
ErrInvalidManifestVersion means the manifest_version is defined as a toml section.
ErrMissingManifestVersion means an invalid manifest (fastly.toml) has been used.
ErrNoID means no --id value has been provided.
ErrNoServiceID means no --service-id or service_id package manifest value has been provided.
ErrNoToken means no --token has been provided.
ErrParsingManifest means there was a problem unmarshalling the package manifest.
ErrReadingManifest means there was a problem reading the package manifest.
ErrSignalInterrupt means a SIGINT was received.
ErrSignalKilled means a SIGTERM was received.
ErrUnrecognisedManifestVersion means an invalid manifest (fastly.toml) version has been specified.
ExistingDirRemediation suggests moving to another directory and retrying.
5mb.
HostRemediation suggests there might be an issue with the local host.
IDRemediation suggests an ID via --id flag should be provided.
Log is the primary interface for consumers.
LogPath is the location of the fastly CLI error log.
NetworkRemediation suggests, somewhat unhelpfully, to try again later.
Now is exposed so that we may mock it from our test file.
PackageSizeRemediation suggests checking the resources documentation for the current package size limit.
ServiceIDRemediation suggests provide a service ID via --service-id flag or package manifest.

# Structs

Caller represents where an error occurred.
LogEntry represents a single error log entry.
RemediationError wraps a normal error with a suggested remediation.

# Interfaces

LogInterface represents the LogEntries behaviours.

# Type aliases

LogEntries represents a list of recorded log entries.