utils

package
v2.0.0-alpha23+incompa... Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterTarget

func GetClusterTarget(spec v3.ClusterLoggingSpec) string

func InitConfigMap

func InitConfigMap(cm rv1.ConfigMapInterface) error

func IniteNamespace

func IniteNamespace(ns rv1.NamespaceInterface) error

func IsAllLoggingDisable

func IsAllLoggingDisable(clusterLoggingLister v3.ClusterLoggingLister, projectLoggingLister v3.ProjectLoggingLister) (bool, error)

func NewESDeployment

func NewESDeployment(namespace string) *v1beta2.Deployment

func RemoveConfigMap

func RemoveConfigMap(configmaps rv1.ConfigMapInterface) error

func UpdateConfigMap

func UpdateConfigMap(configPath, loggingName, level string, configmaps rv1.ConfigMapInterface) error

func UpdateEmbeddedEndpoint

func UpdateEmbeddedEndpoint(podLister rv1.PodLister, serviceLister rv1.ServiceLister, clusterLoggings v3.ClusterLoggingInterface) error

Types

type WrapClusterLogging

type WrapClusterLogging struct {
	CurrentTarget string
	v3.ClusterLoggingSpec
	WrapSyslog
	WrapSplunk
	WrapEmbedded
	WrapElasticsearch
	WrapKafka
}

func ToWrapClusterLogging

func ToWrapClusterLogging(clusterLogging v3.ClusterLoggingSpec) (*WrapClusterLogging, error)

func (*WrapClusterLogging) Validate

func (w *WrapClusterLogging) Validate() error

type WrapElasticsearch

type WrapElasticsearch struct {
	DateFormat string
	Host       string
	Scheme     string
}

type WrapEmbedded

type WrapEmbedded struct {
	DateFormat string
}

type WrapKafka

type WrapKafka struct {
	Brokers   string
	Zookeeper string
}

type WrapProjectLogging

type WrapProjectLogging struct {
	CurrentTarget string
	v3.ProjectLoggingSpec
	GrepNamespace string
	WrapSyslog
	WrapSplunk
	WrapElasticsearch
	WrapKafka
}

func ToWrapProjectLogging

func ToWrapProjectLogging(grepNamespace string, projectLogging v3.ProjectLoggingSpec) (*WrapProjectLogging, error)

func (*WrapProjectLogging) Validate

func (w *WrapProjectLogging) Validate() error

type WrapSplunk

type WrapSplunk struct {
	Server string
	Scheme string
}

type WrapSyslog

type WrapSyslog struct {
	Host string
	Port string
}

Jump to

Keyboard shortcuts

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