dns

package
v0.0.0-...-8684de4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActionContext

func NewActionContext(action string) actionContext

Types

type ExternalDNS

type ExternalDNS struct {
	DomainFilters []string  `json:"domainFilters" mapstructure:"domainFilters"`
	Policy        string    `json:"policy" mapstructure:"policy"` // sync | upsert-only
	Sources       []string  `json:"sources" mapstructure:"sources"`
	TxtOwnerId    string    `json:"txtOwnerId,omitempty" mapstructure:"txtOwnerId"`
	Provider      *Provider `json:"provider" mapstructure:"provider"`
}

ExternalDNS part of the DNS integratedservice spec representation (used for validation, user input handling)

func (ExternalDNS) Validate

func (e ExternalDNS) Validate() error

func (*ExternalDNS) WriteAnswer

func (e *ExternalDNS) WriteAnswer(field string, value interface{}) error

implement core.Settable in order to do transform the answer

type Manager

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

func NewManager

func NewManager(banzaiCLI cli.Cli) Manager

func (Manager) BuildActivateRequestInteractively

func (m Manager) BuildActivateRequestInteractively(clusterCtx clustercontext.Context) (pipeline.ActivateIntegratedServiceRequest, error)

func (Manager) BuildUpdateRequestInteractively

func (m Manager) BuildUpdateRequestInteractively(clusterCtx clustercontext.Context, request *pipeline.UpdateIntegratedServiceRequest) error

func (Manager) ReadableName

func (Manager) ReadableName() string

func (Manager) ServiceName

func (Manager) ServiceName() string

func (Manager) ValidateSpec

func (Manager) ValidateSpec(spec map[string]interface{}) error

func (Manager) WriteDetailsTable

func (Manager) WriteDetailsTable(details pipeline.IntegratedServiceDetails) map[string]map[string]interface{}

type Provider

type Provider struct {
	Name     string                 `json:"name" mapstructure:"name"`
	SecretID string                 `json:"secretId,omitempty" mapstructure:"secretId"`
	Options  map[string]interface{} `json:"options,omitempty" mapstructure:"options"`
}

Provider DNS provider data

func (Provider) Validate

func (p Provider) Validate() error

type ServiceOutput

type ServiceOutput struct {
	ExternalDns struct {
		Version string `json:"version" mapstructure:"version"`
	} `json:"externalDns" mapstructure:"externalDns"`
}

ServiceOutput used to parse / display integrated service output

type ServiceSpec

type ServiceSpec struct {
	ExternalDNS   ExternalDNS `mapstructure:"externalDns"`
	ClusterDomain string      `mapstructure:"clusterDomain"`
}

ServiceSpec DNS integrated service specification

Jump to

Keyboard shortcuts

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