Documentation ¶
Index ¶
- Variables
- func ConfigmapsForTLS(t obsv1.TLSSpec) []string
- func DeployAsDeployment(forwarder obs.ClusterLogForwarder) bool
- func FilterMap(spec obs.ClusterLogForwarderSpec) map[string]*obs.FilterSpec
- func IsValidSpec(forwarder obs.ClusterLogForwarder) bool
- func MaxRecordsPerSecond(input obs.InputSpec) (int64, bool)
- func NewCondition(conditionType string, status metav1.ConditionStatus, reason, message string) metav1.Condition
- func NewConditionFromPrefix(prefix, name string, conditionMet bool, reason, message string) metav1.Condition
- func NewSecretReference(keyName, secretName string) *obs.SecretReference
- func OutputTypeUnknown(t obsv1.OutputType) error
- func PruneConditions(conditions *[]metav1.Condition, spec NameList, conditionTypePrefix string)
- func RemoveConditionByType(conditions *[]metav1.Condition, conditionType string)
- func SecretReferences(o obsv1.OutputSpec) []*obsv1.SecretReference
- func SecretReferencesAsValueReferences(o obsv1.OutputSpec) (configs []*obsv1.ValueReference)
- func SecretsForTLS(t obsv1.TLSSpec) []string
- func SetCondition(conditions *[]metav1.Condition, newCond metav1.Condition) bool
- func Threshold(ls *obs.LimitSpec) (int64, bool)
- func ValueReferences(t obsv1.TLSSpec) []*obsv1.ValueReference
- type ConfigMaps
- type Filters
- type Inputs
- func (inputs Inputs) ConfigmapNames() []string
- func (inputs Inputs) HasAnyAuditSource() bool
- func (inputs Inputs) HasAuditSource(logSource obs.AuditSource) bool
- func (inputs Inputs) HasContainerSource() bool
- func (inputs Inputs) HasJournalSource() bool
- func (inputs Inputs) HasReceiverSource() bool
- func (inputs Inputs) InputTypes() []obs.InputType
- func (inputs Inputs) Map() map[string]obs.InputSpec
- func (inputs Inputs) Names() (names []string)
- func (inputs Inputs) SecretNames() []string
- type NameList
- type Outputs
- type Pipelines
- type Secrets
- func (s Secrets) AsString(key *obs.SecretReference) string
- func (s Secrets) AsStringFromBearerToken(key *obs.BearerToken) string
- func (s Secrets) Hash64a() string
- func (s Secrets) Names() (names []string)
- func (s Secrets) Path(key *obs.SecretReference) string
- func (s Secrets) Value(key *obs.SecretReference) []byte
- type Tuning
Constants ¶
This section is empty.
Variables ¶
var ReservedInputTypes = sets.NewString( string(obs.InputTypeApplication), string(obs.InputTypeAudit), string(obs.InputTypeInfrastructure), )
Functions ¶
func ConfigmapsForTLS ¶
ConfigmapsForTLS returns the unique set of configmap names for a TLS spec
func DeployAsDeployment ¶
func DeployAsDeployment(forwarder obs.ClusterLogForwarder) bool
DeployAsDeployment evaluates the spec to determine if the collector will be deployed as a deployment. Collector is not a daemonset if the only input source is an HTTP receiver Enabled through an annotation
func FilterMap ¶
func FilterMap(spec obs.ClusterLogForwarderSpec) map[string]*obs.FilterSpec
FilterMap returns a map of filter names to FilterSpec.
func IsValidSpec ¶
func IsValidSpec(forwarder obs.ClusterLogForwarder) bool
IsValidSpec evaluates the status conditions to determine if the spec is valid
func NewCondition ¶
func NewConditionFromPrefix ¶
func NewSecretReference ¶
func NewSecretReference(keyName, secretName string) *obs.SecretReference
NewSecretReference returns a SecretReference with the given key name and secret
func OutputTypeUnknown ¶
func OutputTypeUnknown(t obsv1.OutputType) error
func PruneConditions ¶
PruneConditions keeps only those conditions that match names from the spec
func RemoveConditionByType ¶
RemoveCondition removes a condition by type
func SecretReferences ¶
func SecretReferences(o obsv1.OutputSpec) []*obsv1.SecretReference
SecretReferences returns a list of the keys associated with an output. It is possible for a list entry to be nil if it was not specified for the output
func SecretReferencesAsValueReferences ¶
func SecretReferencesAsValueReferences(o obsv1.OutputSpec) (configs []*obsv1.ValueReference)
func SecretsForTLS ¶
SecretsForTLS returns the unique set of secret names for a TLS spec
func SetCondition ¶
SetCondition adds (or updates) the set of conditions with the given condition. It returns a boolean value indicating whether the set condition is new or was a change to the existing condition with the same type.
func ValueReferences ¶
func ValueReferences(t obsv1.TLSSpec) []*obsv1.ValueReference
ValueReferences returns a slice of ValueReferences, converting SecretReferences as necessary
Types ¶
type ConfigMaps ¶
func (ConfigMaps) Names ¶
func (c ConfigMaps) Names() (names []string)
type Filters ¶
type Filters []obs.FilterSpec
type Inputs ¶
func (Inputs) ConfigmapNames ¶
ConfigmapNames returns a unique set of unordered configmap names
func (Inputs) HasAnyAuditSource ¶
func (Inputs) HasAuditSource ¶
func (inputs Inputs) HasAuditSource(logSource obs.AuditSource) bool
func (Inputs) HasContainerSource ¶
func (Inputs) HasJournalSource ¶
func (Inputs) HasReceiverSource ¶
func (Inputs) InputTypes ¶
InputTypes returns a unique set of input types
func (Inputs) SecretNames ¶
SecretNames returns a unique set of unordered secret names
type NameList ¶
type NameList interface {
Names() []string
}
NameList provides a list of names for any resource implementing Names
type Outputs ¶
type Outputs []obsv1.OutputSpec
func (Outputs) ConfigmapNames ¶
ConfigmapNames returns a unique set of unordered configmap names
func (Outputs) Map ¶
func (outputs Outputs) Map() map[string]obsv1.OutputSpec
Map returns a map of output name to output spec
func (Outputs) NeedServiceAccountToken ¶
NeedServiceAccountToken returns true if any output needs to be configured to use the token associated with the service account
func (Outputs) SecretNames ¶
SecretNames returns a unique set of unordered secret names
type Pipelines ¶
type Pipelines []obs.PipelineSpec
type Secrets ¶
Secrets is a map of secrets
func (Secrets) AsString ¶
func (s Secrets) AsString(key *obs.SecretReference) string
AsString returns the value of the given secret with key if it exists or empty
func (Secrets) AsStringFromBearerToken ¶
func (s Secrets) AsStringFromBearerToken(key *obs.BearerToken) string
AsStringFromBearerToken returns the value of the BearerToken if it exists or empty
type Tuning ¶
type Tuning struct { obs.BaseOutputTuningSpec Compression string }
func NewTuning ¶
func NewTuning(spec obs.OutputSpec) Tuning