emulator

package
v0.0.0-...-5597880 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulator

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

func New

func New(log zerolog.Logger) *Emulator

func (*Emulator) GetPolicy

func (e *Emulator) GetPolicy(project string) *cloudresourcemanager.Policy

func (*Emulator) GetServiceAccountKeys

func (e *Emulator) GetServiceAccountKeys() map[string][]*iam.ServiceAccountKey

func (*Emulator) GetServiceAccounts

func (e *Emulator) GetServiceAccounts() map[string]*iam.ServiceAccount

func (*Emulator) Reset

func (e *Emulator) Reset()

func (*Emulator) Run

func (e *Emulator) Run() string

func (*Emulator) ServeHTTP

func (e *Emulator) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Emulator) SetError

func (e *Emulator) SetError(err error)

func (*Emulator) SetPolicy

func (e *Emulator) SetPolicy(project string, policy *cloudresourcemanager.Policy)

func (*Emulator) SetServiceAccount

func (e *Emulator) SetServiceAccount(name string, sa *iam.ServiceAccount)

func (*Emulator) SetServiceAccountKeys

func (e *Emulator) SetServiceAccountKeys(name string, keys []*iam.ServiceAccountKey)

Jump to

Keyboard shortcuts

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