dns

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const (
	EmptyResponse = "emptyResponse"
)

Variables

This section is empty.

Functions

func ValidateAdvancedDNSMetrics

func ValidateAdvancedDNSMetrics(scenarioName string, req *RequestValidationParams, resp *ResponseValidationParams, kubeConfigFilePath string) *types.Scenario

ValidateAdvancedDNSMetrics validates the advanced DNS metrics present in the metrics endpoint

func ValidateBasicDNSMetrics

func ValidateBasicDNSMetrics(scenarioName string, req *RequestValidationParams, resp *ResponseValidationParams) *types.Scenario

ValidateBasicDNSMetrics validates basic DNS metrics present in the metrics endpoint

Types

type RequestValidationParams

type RequestValidationParams struct {
	NumResponse string
	Query       string
	QueryType   string

	Command     string
	ExpectError bool
}

type ResponseValidationParams

type ResponseValidationParams struct {
	NumResponse string
	Query       string
	QueryType   string
	ReturnCode  string
	Response    string
}

type ValidateAdvanceDNSResponseMetrics

type ValidateAdvanceDNSResponseMetrics struct {
	Namespace    string
	NumResponse  string
	PodName      string
	Query        string
	QueryType    string
	Response     string
	ReturnCode   string
	WorkloadKind string
	WorkloadName string

	KubeConfigFilePath string
}

func (*ValidateAdvanceDNSResponseMetrics) Prevalidate

func (v *ValidateAdvanceDNSResponseMetrics) Prevalidate() error

func (*ValidateAdvanceDNSResponseMetrics) Run

func (*ValidateAdvanceDNSResponseMetrics) Stop

type ValidateAdvancedDNSRequestMetrics

type ValidateAdvancedDNSRequestMetrics struct {
	Namespace    string
	NumResponse  string
	PodName      string
	Query        string
	QueryType    string
	WorkloadKind string
	WorkloadName string

	KubeConfigFilePath string
}

func (*ValidateAdvancedDNSRequestMetrics) Prevalidate

func (v *ValidateAdvancedDNSRequestMetrics) Prevalidate() error

func (*ValidateAdvancedDNSRequestMetrics) Run

func (*ValidateAdvancedDNSRequestMetrics) Stop

Jump to

Keyboard shortcuts

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