metric

package
v0.0.0-...-d88a328 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright 2018 The Knative Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// TODO: allow these to be configurable
	ConfigMapName  = "telegraf"
	DeploymentName = "telegraf"
)
View Source
const DefaultTelegrafConf = `` /* 286-byte string literal not displayed */

Variables

View Source
var TelegrafImageVersion string = "1.11-alpine"

This is a build arg that's injected with the appropriate SHA of the telegraf image

Functions

This section is empty.

Types

type ClusterConfig

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

func NewConfig

func NewConfig(clusterName string, modifiers ...ModifierFunc) *ClusterConfig

func (*ClusterConfig) DeleteSink

func (c *ClusterConfig) DeleteSink(cms v1alpha1.ClusterMetricSink)

func (*ClusterConfig) String

func (c *ClusterConfig) String() string

func (*ClusterConfig) UpsertSink

func (c *ClusterConfig) UpsertSink(cms v1alpha1.ClusterMetricSink)

type ClusterController

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

func (*ClusterController) OnAdd

func (c *ClusterController) OnAdd(o interface{})

func (*ClusterController) OnDelete

func (c *ClusterController) OnDelete(o interface{})

func (*ClusterController) OnUpdate

func (c *ClusterController) OnUpdate(old, new interface{})

type ConfigMapPatcher

type ConfigMapPatcher interface {
	Patch(
		name string,
		pt types.PatchType,
		data []byte,
		subresources ...string,
	) (*coreV1.ConfigMap, error)
}

type Controller

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

func NewController

func NewController(clusterName string, c V1CoreClient, d V1beta1ExtensionsClient, r RBACV1Client) *Controller

func (*Controller) OnAdd

func (c *Controller) OnAdd(o interface{})

func (*Controller) OnDelete

func (c *Controller) OnDelete(o interface{})

func (*Controller) OnUpdate

func (c *Controller) OnUpdate(o, n interface{})

type DaemonSetPodDeleter

type DaemonSetPodDeleter interface {
	DeleteCollection(
		options *metav1.DeleteOptions,
		listOptions metav1.ListOptions,
	) error
}

type ModifierFunc

type ModifierFunc func(*ClusterConfig)

func KubernetesDefault

func KubernetesDefault(insecurePort bool) ModifierFunc

type RBACV1Client

type RBACV1Client interface {
	typedrbacv1.RolesGetter
	typedrbacv1.RoleBindingsGetter
}

type V1CoreClient

type V1CoreClient interface {
	typedv1.ConfigMapsGetter
	typedv1.PodsGetter
}

type V1beta1ExtensionsClient

type V1beta1ExtensionsClient interface {
	typedappsv1.DeploymentsGetter
}

Jump to

Keyboard shortcuts

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