resources

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package resources contains helpers for audit log source resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSinkName

func GenerateSinkName(s *v1alpha1.CloudAuditLogsSource) string

GenerateSinkName generates a Stackdriver sink resource name for an CloudAuditLogsSource.

func GenerateTopicName

func GenerateTopicName(s *v1alpha1.CloudAuditLogsSource) string

GenerateTopicName generates a topic name for the audit log source. This refers to the underlying Pub/Sub topic, and not our Topic resource.

func GenerateTopicResourceName

func GenerateTopicResourceName(s *v1alpha1.CloudAuditLogsSource) string

Generates the resource name for the topic used by an CloudAuditLogsSource.

Types

type FilterBuilder

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

Stackdriver query builder for querying audit logs. Currently supports querying by the AuditLog serviceName, methodName, and resourceName.

func (*FilterBuilder) GetFilterQuery

func (fb *FilterBuilder) GetFilterQuery() string

func (*FilterBuilder) WithMethodName

func (fb *FilterBuilder) WithMethodName(methodName string) *FilterBuilder

func (*FilterBuilder) WithResourceName

func (fb *FilterBuilder) WithResourceName(resourceName string) *FilterBuilder

func (*FilterBuilder) WithServiceName

func (fb *FilterBuilder) WithServiceName(serviceName string) *FilterBuilder

Jump to

Keyboard shortcuts

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