config

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileConfigSpec

func FileConfigSpec(fileName string) (*v1alpha1.TracingPolicySpec, error)

Types

type GenericTracingConf

type GenericTracingConf struct {
	ApiVersion string                     `json:"apiVersion"`
	Kind       string                     `json:"kind"`
	Metadata   Metadata                   `json:"metadata"`
	Spec       v1alpha1.TracingPolicySpec `json:"spec"`
}

func FileConfigYaml

func FileConfigYaml(fileName string) (*GenericTracingConf, error)

func ReadConfigYaml

func ReadConfigYaml(data string) (*GenericTracingConf, error)

func (*GenericTracingConf) Name

func (cnf *GenericTracingConf) Name() string

func (*GenericTracingConf) TpInfo

func (cnf *GenericTracingConf) TpInfo() string

func (*GenericTracingConf) TpSpec

type Metadata

type Metadata struct {
	Name string `yaml:"name"`
}

Jump to

Keyboard shortcuts

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