utils

package
v0.0.0-...-3416371 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(log boshlog.Logger) logger

func RetryOnError

func RetryOnError(retryConfig config.RetryConfig, logger Logger) func(
	ctx context.Context,
	method string,
	url string,
	options *gophercloud.RequestOpts,
	inError error,
	failCount uint,
) error

func UniqueArray

func UniqueArray(input []string) []string

Types

type EnvVar

type EnvVar interface {
	Get(key string) string
}

func NewEnvVar

func NewEnvVar() EnvVar

type Logger

type Logger interface {
	Info(tag, msg string, args ...interface{})

	Warn(tag, msg string, args ...interface{})

	Error(tag, msg string, args ...interface{})

	Debug(tag, msg string, args ...interface{})

	HandlePanic(tag string)

	TargetLogger() boshlog.Logger
}

type RetryableServiceClient

type RetryableServiceClient *gophercloud.ServiceClient

type ServiceClient

type ServiceClient *gophercloud.ServiceClient

type ServiceClients

type ServiceClients struct {
	ServiceClient          ServiceClient
	RetryableServiceClient RetryableServiceClient
}

func NewServiceClients

func NewServiceClients(serviceClient *gophercloud.ServiceClient, cpiConfig config.CpiConfig, logger Logger) ServiceClients

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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