gmailfilter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version app version
	Version = "1.1.0"
	// Revision git commit short commithash
	Revision = "xxxxxx" // set on build
)

Functions

func ClientWithAdditionalRetries

func ClientWithAdditionalRetries(baseClient *http.Client, baseRetryTransport *retryTransport, predicates ...RetryErrorPredicateFunc) *http.Client

Helper method to create a shallow copy of an HTTP client with a shallow-copied retryTransport s.t. the base HTTP transport is the same (i.e. client connection pools are shared, retryPredicates are different)

func FullVersion

func FullVersion() string

FullVersion return sackerel full version text

func NewTransportWithDefaultRetries

func NewTransportWithDefaultRetries(t http.RoundTripper) *retryTransport

NewTransportWithDefaultRetries constructs a default retryTransport that will retry common temporary errors

func Provider

func Provider() *schema.Provider

Provider returns a terraform.ResourceProvider.

Types

type Config

type Config struct {
	Credentials           string
	ImpersonatedUserEmail string
	// contains filtered or unexported fields
}

Config is the configuration structure used to instantiate the Google provider.

func (*Config) LoadAndValidate

func (c *Config) LoadAndValidate(ctx context.Context) error

type RetryErrorPredicateFunc

type RetryErrorPredicateFunc func(error) (bool, string)

Jump to

Keyboard shortcuts

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