tool

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

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

Tool is pod capable of running operations from within the cluster.

func New

func New(logger logrus.FieldLogger, name, namespace string) *Tool

New creates a new Tool.

func (*Tool) Curl

func (t *Tool) Curl(url string, headers map[string]string, conditions ...try.ResponseCondition) error

Curl curls the given url and checks if it matches the given conditions.

func (*Tool) Dig

func (t *Tool) Dig(url string) error

Dig digs the given url and make sure there is an A record.

func (*Tool) Netcat

func (t *Tool) Netcat(url string, port int, udp bool, conditions ...try.StringCondition) error

Netcat netcats the given url on the given port and checks if the given conditions are fulfilled.

Jump to

Keyboard shortcuts

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