rotationproxy

package
v0.0.0-...-ecc550e Latest Latest
Warning

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

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

Documentation

Overview

Package rotationproxy contains the logic to query for the on-call arborists from the Chrome Ops Rotation Proxy

Index

Constants

This section is empty.

Variables

View Source
var MockedRotationProxyClientKey = "mocked chrome-ops-rotation-proxy client"

Functions

func GetOnCallEmails

func GetOnCallEmails(ctx context.Context, project string) ([]string, error)

GetOnCallEmails returns the emails of the on-call arborists for the given project.

func MockedRotationProxyClientContext

func MockedRotationProxyClientContext(c context.Context, data map[string]string) context.Context

Types

type Client

type Client interface {
	// contains filtered or unexported methods
}

Client interface is needed for testing purposes

func GetClient

func GetClient(c context.Context) Client

type MockedRotationProxyClient

type MockedRotationProxyClient struct {
	Data map[string]string // Data for MockedRotationProxyClient to return
}

type RotationProxyClient

type RotationProxyClient struct{}

Jump to

Keyboard shortcuts

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