mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 07:01:09 +02:00
212 lines
8.4 KiB
Go
212 lines
8.4 KiB
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.5
|
|
// protoc (unknown)
|
|
// source: sdk/logical/observation.proto
|
|
|
|
package logical
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// ObservationPluginInfo contains data related to the plugin that generated an event.
|
|
type ObservationPluginInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The type of plugin this observation originated from, i.e., "auth" or "secrets".
|
|
MountClass string `protobuf:"bytes,1,opt,name=mount_class,json=mountClass,proto3" json:"mount_class,omitempty"`
|
|
// Unique ID of the mount entry, e.g., "kv_957bb7d8"
|
|
MountAccessor string `protobuf:"bytes,2,opt,name=mount_accessor,json=mountAccessor,proto3" json:"mount_accessor,omitempty"`
|
|
// Mount path of the plugin this observation originated from, e.g., "secret/"
|
|
MountPath string `protobuf:"bytes,3,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
|
|
// Plugin name that this observation originated from, e.g., "kv"
|
|
Plugin string `protobuf:"bytes,4,opt,name=plugin,proto3" json:"plugin,omitempty"`
|
|
// Plugin version of the plugin this observation originated from, e.g., "v0.13.3+builtin"
|
|
PluginVersion string `protobuf:"bytes,5,opt,name=plugin_version,json=pluginVersion,proto3" json:"plugin_version,omitempty"`
|
|
// Running plugin version of the plugin this observation originated from, e.g., "v0.13.3+builtin"
|
|
RunningPluginVersion string `protobuf:"bytes,6,opt,name=running_plugin_version,json=runningPluginVersion,proto3" json:"running_plugin_version,omitempty"`
|
|
// Mount version (i.e. from mount options) that this observation originated from, i.e., if KVv2, then "2". Usually empty
|
|
Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
|
|
// Whether or not the mount is local
|
|
Local bool `protobuf:"varint,8,opt,name=local,proto3" json:"local,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) Reset() {
|
|
*x = ObservationPluginInfo{}
|
|
mi := &file_sdk_logical_observation_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ObservationPluginInfo) ProtoMessage() {}
|
|
|
|
func (x *ObservationPluginInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sdk_logical_observation_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ObservationPluginInfo.ProtoReflect.Descriptor instead.
|
|
func (*ObservationPluginInfo) Descriptor() ([]byte, []int) {
|
|
return file_sdk_logical_observation_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetMountClass() string {
|
|
if x != nil {
|
|
return x.MountClass
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetMountAccessor() string {
|
|
if x != nil {
|
|
return x.MountAccessor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetMountPath() string {
|
|
if x != nil {
|
|
return x.MountPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetPlugin() string {
|
|
if x != nil {
|
|
return x.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetPluginVersion() string {
|
|
if x != nil {
|
|
return x.PluginVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetRunningPluginVersion() string {
|
|
if x != nil {
|
|
return x.RunningPluginVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ObservationPluginInfo) GetLocal() bool {
|
|
if x != nil {
|
|
return x.Local
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_sdk_logical_observation_proto protoreflect.FileDescriptor
|
|
|
|
var file_sdk_logical_observation_proto_rawDesc = string([]byte{
|
|
0x0a, 0x1d, 0x73, 0x64, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2f, 0x6f, 0x62,
|
|
0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
0x07, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x22, 0xa3, 0x02, 0x0a, 0x15, 0x4f, 0x62, 0x73,
|
|
0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x6e,
|
|
0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x61, 0x73,
|
|
0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6c,
|
|
0x61, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x63,
|
|
0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x6f, 0x75,
|
|
0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f,
|
|
0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
|
0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x75,
|
|
0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69,
|
|
0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73,
|
|
0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x6c, 0x75, 0x67, 0x69,
|
|
0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x75, 0x6e, 0x6e,
|
|
0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
|
|
0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e,
|
|
0x67, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18,
|
|
0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x63, 0x61,
|
|
0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x28,
|
|
0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73,
|
|
0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x73, 0x64, 0x6b,
|
|
0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
})
|
|
|
|
var (
|
|
file_sdk_logical_observation_proto_rawDescOnce sync.Once
|
|
file_sdk_logical_observation_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_sdk_logical_observation_proto_rawDescGZIP() []byte {
|
|
file_sdk_logical_observation_proto_rawDescOnce.Do(func() {
|
|
file_sdk_logical_observation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_sdk_logical_observation_proto_rawDesc), len(file_sdk_logical_observation_proto_rawDesc)))
|
|
})
|
|
return file_sdk_logical_observation_proto_rawDescData
|
|
}
|
|
|
|
var file_sdk_logical_observation_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_sdk_logical_observation_proto_goTypes = []any{
|
|
(*ObservationPluginInfo)(nil), // 0: logical.ObservationPluginInfo
|
|
}
|
|
var file_sdk_logical_observation_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_sdk_logical_observation_proto_init() }
|
|
func file_sdk_logical_observation_proto_init() {
|
|
if File_sdk_logical_observation_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_sdk_logical_observation_proto_rawDesc), len(file_sdk_logical_observation_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_sdk_logical_observation_proto_goTypes,
|
|
DependencyIndexes: file_sdk_logical_observation_proto_depIdxs,
|
|
MessageInfos: file_sdk_logical_observation_proto_msgTypes,
|
|
}.Build()
|
|
File_sdk_logical_observation_proto = out.File
|
|
file_sdk_logical_observation_proto_goTypes = nil
|
|
file_sdk_logical_observation_proto_depIdxs = nil
|
|
}
|