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
Click to show internal directories.
Click to hide internal directories.