config

package
v1.9.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "config"

ProviderName .

Variables

Package .

Functions

This section is empty.

Types

type HelmRepositoryParams

type HelmRepositoryParams providers.Params[HelmRepositoryVars]

HelmRepositoryParams is the params for helm repository

type HelmRepositoryVars

type HelmRepositoryVars struct {
	URL      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
	CAFile   string `json:"caFile"`
}

HelmRepositoryVars is the vars for helm repository validation

type ImageRegistryParams

type ImageRegistryParams providers.Params[ImageRegistryVars]

ImageRegistryParams is the params for image registry

type ImageRegistryVars

type ImageRegistryVars struct {
	Registry string `json:"registry"`
	Auth     struct {
		Username string `json:"username"`
		Password string `json:"password"`
		Email    string `json:"email"`
	} `json:"auth"`
	Insecure bool `json:"insecure"`
	UseHTTP  bool `json:"useHTTP"`
}

ImageRegistryVars is the vars for image registry validation

type ResponseVars

type ResponseVars struct {
	Result  bool   `json:"result"`
	Message string `json:"message"`
}

ResponseVars is the returns for resource

type ValidationReturns

type ValidationReturns providers.Returns[ResponseVars]

ValidationReturns returned struct for http response

func HelmRepository

func HelmRepository(ctx context.Context, validationParams *HelmRepositoryParams) (*ValidationReturns, error)

HelmRepository .

func ImageRegistry

func ImageRegistry(ctx context.Context, validationParams *ImageRegistryParams) (*ValidationReturns, error)

ImageRegistry .

Jump to

Keyboard shortcuts

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