ipcleaner

package
v0.0.0-...-a4b4531 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeAPI

type ComputeAPI interface {
	RemoveIP(ctx context.Context, project, region, name string) error
}

ComputeAPI abstracts access to Compute API in GCP

type ComputeAPIWrapper

type ComputeAPIWrapper struct {
	Service *compute.Service
}

ComputeAPIWrapper abstracts GCP Compute Service API

func (*ComputeAPIWrapper) RemoveIP

func (caw *ComputeAPIWrapper) RemoveIP(ctx context.Context, project, region, name string) error

RemoveIP delegates to Compute.Service.Addresses.Delete(project, region, name) function

type IPRemover

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

IPRemover deletes IPs provisioned by gke-long-lasting prow jobs.

func New

func New(computeAPI ComputeAPI, maxAttempts, backoff uint, makeChanges bool) *IPRemover

New returns a new instance of IPRemover

func (*IPRemover) Run

func (ipr *IPRemover) Run(project, region, ipName string) error

Run executes ip removal process for specified IP

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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