file

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 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 Config

type Config struct {
	// input
	BindingContextPath string
	ValuesPath         string
	ConfigValuesPath   string

	// output
	MetricsPath          string
	KubernetesPath       string
	ValuesJSONPath       string
	ConfigValuesJSONPath string

	HookConfigPath string

	CreateFilesByYourself bool
}

type Request

type Request struct {
	BindingContextPath string
	ValuesPath         string
	ConfigValuesPath   string
	// contains filtered or unexported fields
}

func (*Request) GetBindingContexts

func (r *Request) GetBindingContexts() ([]bindingcontext.BindingContext, error)

func (*Request) GetConfigValues

func (r *Request) GetConfigValues() (map[string]any, error)

func (*Request) GetDependencyContainer

func (r *Request) GetDependencyContainer() pkg.DependencyContainer

func (*Request) GetValues

func (r *Request) GetValues() (map[string]any, error)

type Response

type Response struct {
	MetricsPath          string
	KubernetesPath       string
	ValuesJSONPath       string
	ConfigValuesJSONPath string

	CreateFilesByYourself bool
	// contains filtered or unexported fields
}

func (*Response) Send

func (r *Response) Send(res *hook.HookResult) error

type Transport

type Transport struct {

	// input
	BindingContextPath string
	ValuesPath         string
	ConfigValuesPath   string

	// output
	MetricsPath          string
	KubernetesPath       string
	ValuesJSONPath       string
	ConfigValuesJSONPath string

	CreateFilesByYourself bool
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(cfg *Config, hookName string, dc pkg.DependencyContainer, logger *log.Logger) *Transport

func (*Transport) NewRequest

func (t *Transport) NewRequest() *Request

func (*Transport) NewResponse

func (t *Transport) NewResponse() *Response

Jump to

Keyboard shortcuts

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