...

Package logging

import "google.golang.org/genproto/googleapis/cloud/secretmanager/logging/v1"
Overview
Index

Overview ▾

Variables

Enum value maps for SecretEvent_EventType.

var (
    SecretEvent_EventType_name = map[int32]string{
        0: "EVENT_TYPE_UNSPECIFIED",
        1: "EXPIRES_IN_30_DAYS",
        2: "EXPIRES_IN_7_DAYS",
        3: "EXPIRES_IN_1_DAY",
        4: "EXPIRES_IN_6_HOURS",
        5: "EXPIRES_IN_1_HOUR",
        6: "EXPIRED",
        7: "TOPIC_NOT_FOUND",
        8: "TOPIC_PERMISSION_DENIED",
    }
    SecretEvent_EventType_value = map[string]int32{
        "EVENT_TYPE_UNSPECIFIED":  0,
        "EXPIRES_IN_30_DAYS":      1,
        "EXPIRES_IN_7_DAYS":       2,
        "EXPIRES_IN_1_DAY":        3,
        "EXPIRES_IN_6_HOURS":      4,
        "EXPIRES_IN_1_HOUR":       5,
        "EXPIRED":                 6,
        "TOPIC_NOT_FOUND":         7,
        "TOPIC_PERMISSION_DENIED": 8,
    }
)
var File_google_cloud_secretmanager_logging_v1_secret_event_proto protoreflect.FileDescriptor

type SecretEvent

Logged event relating to a specific secret

type SecretEvent struct {

    // Resource name of the secret in the format `projects/*/secrets/*`
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Type of event that is being logged for the secret
    Type SecretEvent_EventType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.secretmanager.logging.v1.SecretEvent_EventType" json:"type,omitempty"`
    // Human readable message describing the event
    LogMessage string `protobuf:"bytes,3,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
    // contains filtered or unexported fields
}

func (*SecretEvent) Descriptor

func (*SecretEvent) Descriptor() ([]byte, []int)

Deprecated: Use SecretEvent.ProtoReflect.Descriptor instead.

func (*SecretEvent) GetLogMessage

func (x *SecretEvent) GetLogMessage() string

func (*SecretEvent) GetName

func (x *SecretEvent) GetName() string

func (*SecretEvent) GetType

func (x *SecretEvent) GetType() SecretEvent_EventType

func (*SecretEvent) ProtoMessage

func (*SecretEvent) ProtoMessage()

func (*SecretEvent) ProtoReflect

func (x *SecretEvent) ProtoReflect() protoreflect.Message

func (*SecretEvent) Reset

func (x *SecretEvent) Reset()

func (*SecretEvent) String

func (x *SecretEvent) String() string

type SecretEvent_EventType

Describes the type of event that is being logged. All logs have exactly one EventType.

type SecretEvent_EventType int32
const (
    // An unrecognized event type. Should never be used.
    SecretEvent_EVENT_TYPE_UNSPECIFIED SecretEvent_EventType = 0
    // The secret is scheduled to expire in 30 days.
    SecretEvent_EXPIRES_IN_30_DAYS SecretEvent_EventType = 1
    // The secret is scheduled to expire in 7 days.
    SecretEvent_EXPIRES_IN_7_DAYS SecretEvent_EventType = 2
    // The secret is scheduled to expire in 1 day.
    SecretEvent_EXPIRES_IN_1_DAY SecretEvent_EventType = 3
    // The secret is scheduled to expire in 6 hours.
    SecretEvent_EXPIRES_IN_6_HOURS SecretEvent_EventType = 4
    // The secret is scheduled to expire in 1 hour.
    SecretEvent_EXPIRES_IN_1_HOUR SecretEvent_EventType = 5
    // The secret's expire-time has passed and it has expired.
    SecretEvent_EXPIRED SecretEvent_EventType = 6
    // A Pub/Sub topic configured on the secret could not be found.
    SecretEvent_TOPIC_NOT_FOUND SecretEvent_EventType = 7
    // A Pub/Sub topic configured on the secret does not have the needed
    // permissions. The Secret Manager P4SA must be granted
    // 'pubsub.topic.publish' permission (or 'roles/pubsub.publisher') on the
    // topic.
    SecretEvent_TOPIC_PERMISSION_DENIED SecretEvent_EventType = 8
)

func (SecretEvent_EventType) Descriptor

func (SecretEvent_EventType) Descriptor() protoreflect.EnumDescriptor

func (SecretEvent_EventType) Enum

func (x SecretEvent_EventType) Enum() *SecretEvent_EventType

func (SecretEvent_EventType) EnumDescriptor

func (SecretEvent_EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SecretEvent_EventType.Descriptor instead.

func (SecretEvent_EventType) Number

func (x SecretEvent_EventType) Number() protoreflect.EnumNumber

func (SecretEvent_EventType) String

func (x SecretEvent_EventType) String() string

func (SecretEvent_EventType) Type

func (SecretEvent_EventType) Type() protoreflect.EnumType