config

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedConfig

type FeedConfig struct {
	// K8sapi configures the k8s api feed
	K8sapi K8sAPIConfig
}

FeedConfig specifies the feed config

func NewFeedConfig

func NewFeedConfig() *FeedConfig

NewFeedConfig returns a default FeedConfig

type K8sAPIConfig

type K8sAPIConfig struct {
	// Enabled indicates if the k8s api feed is used
	// default: false
	Enabled bool `json:"enabled"`
	// URI is where the api server is reacheble. Format: 'host:port', optional with 'http://' or 'https://'
	// default: http://127.0.0.1:10550
	URI string `json:"URI"`
	// InsecureTLS indicates if there is any TLS certificate used that is self signed (optional)
	// default: true
	InsecureTLS bool `json:"insecureTLS"`
	// Token is the token to communicate with the API server (optional)
	// default: ""
	Token string `json:"token"`
}

K8sAPIConfig specifies the k8s api feed configuration

Jump to

Keyboard shortcuts

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