Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSettingsPluginServer(s grpc.ServiceRegistrar, srv SettingsPluginServer)
- type CommitSettingsRequest
- func (*CommitSettingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommitSettingsRequest) GetPersisted() bool
- func (x *CommitSettingsRequest) GetPhase() isCommitSettingsRequest_Phase
- func (x *CommitSettingsRequest) GetProposal() *SettingsValues
- func (*CommitSettingsRequest) ProtoMessage()
- func (x *CommitSettingsRequest) ProtoReflect() protoreflect.Message
- func (x *CommitSettingsRequest) Reset()
- func (x *CommitSettingsRequest) String() string
- type CommitSettingsRequest_Persisted
- type CommitSettingsRequest_Proposal
- type CommitSettingsResponse
- func (*CommitSettingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommitSettingsResponse) GetPhase() isCommitSettingsResponse_Phase
- func (x *CommitSettingsResponse) GetPrepared() *SettingsValues
- func (x *CommitSettingsResponse) GetResult() *CommitSettingsResult
- func (*CommitSettingsResponse) ProtoMessage()
- func (x *CommitSettingsResponse) ProtoReflect() protoreflect.Message
- func (x *CommitSettingsResponse) Reset()
- func (x *CommitSettingsResponse) String() string
- type CommitSettingsResponse_Prepared
- type CommitSettingsResponse_Result
- type CommitSettingsResult
- func (*CommitSettingsResult) Descriptor() ([]byte, []int)deprecated
- func (x *CommitSettingsResult) GetApplied() bool
- func (x *CommitSettingsResult) GetCommitted() bool
- func (x *CommitSettingsResult) GetUncertain() bool
- func (*CommitSettingsResult) ProtoMessage()
- func (x *CommitSettingsResult) ProtoReflect() protoreflect.Message
- func (x *CommitSettingsResult) Reset()
- func (x *CommitSettingsResult) String() string
- type GetSettingRequest
- type GetSettingValueRequest
- func (*GetSettingValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSettingValueRequest) GetId() string
- func (*GetSettingValueRequest) ProtoMessage()
- func (x *GetSettingValueRequest) ProtoReflect() protoreflect.Message
- func (x *GetSettingValueRequest) Reset()
- func (x *GetSettingValueRequest) String() string
- type GetSettingValueResponse
- func (*GetSettingValueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSettingValueResponse) GetValue() *anypb.Any
- func (*GetSettingValueResponse) ProtoMessage()
- func (x *GetSettingValueResponse) ProtoReflect() protoreflect.Message
- func (x *GetSettingValueResponse) Reset()
- func (x *GetSettingValueResponse) String() string
- type ListSettingsResponse
- func (*ListSettingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSettingsResponse) GetSettings() map[string]*Setting
- func (*ListSettingsResponse) ProtoMessage()
- func (x *ListSettingsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSettingsResponse) Reset()
- func (x *ListSettingsResponse) String() string
- type Setting
- func (*Setting) Descriptor() ([]byte, []int)deprecated
- func (x *Setting) GetDefault() *anypb.Any
- func (x *Setting) GetDescription() string
- func (x *Setting) GetDevOnly() bool
- func (x *Setting) GetFileSelection() *SettingFileSelection
- func (x *Setting) GetId() string
- func (x *Setting) GetLabel() string
- func (x *Setting) GetOptions() []*SettingOption
- func (x *Setting) GetPendingRestart() bool
- func (x *Setting) GetRequiresRestart() bool
- func (x *Setting) GetSensitive() bool
- func (x *Setting) GetType() SettingType
- func (x *Setting) GetValue() *anypb.Any
- func (*Setting) ProtoMessage()
- func (x *Setting) ProtoReflect() protoreflect.Message
- func (x *Setting) Reset()
- func (x *Setting) String() string
- type SettingFileSelection
- func (*SettingFileSelection) Descriptor() ([]byte, []int)deprecated
- func (x *SettingFileSelection) GetAllowFolders() bool
- func (x *SettingFileSelection) GetDefaultPath() string
- func (x *SettingFileSelection) GetEnabled() bool
- func (x *SettingFileSelection) GetExtensions() []string
- func (x *SettingFileSelection) GetMultiple() bool
- func (x *SettingFileSelection) GetRelative() bool
- func (*SettingFileSelection) ProtoMessage()
- func (x *SettingFileSelection) ProtoReflect() protoreflect.Message
- func (x *SettingFileSelection) Reset()
- func (x *SettingFileSelection) String() string
- type SettingOption
- func (*SettingOption) Descriptor() ([]byte, []int)deprecated
- func (x *SettingOption) GetDescription() string
- func (x *SettingOption) GetLabel() string
- func (x *SettingOption) GetValue() *anypb.Any
- func (*SettingOption) ProtoMessage()
- func (x *SettingOption) ProtoReflect() protoreflect.Message
- func (x *SettingOption) Reset()
- func (x *SettingOption) String() string
- type SettingType
- func (SettingType) Descriptor() protoreflect.EnumDescriptor
- func (x SettingType) Enum() *SettingType
- func (SettingType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SettingType) Number() protoreflect.EnumNumber
- func (x SettingType) String() string
- func (SettingType) Type() protoreflect.EnumType
- type SettingsCategory
- func (*SettingsCategory) Descriptor() ([]byte, []int)deprecated
- func (x *SettingsCategory) GetDescription() string
- func (x *SettingsCategory) GetIcon() string
- func (x *SettingsCategory) GetId() string
- func (x *SettingsCategory) GetLabel() string
- func (x *SettingsCategory) GetSettings() map[string]*Setting
- func (*SettingsCategory) ProtoMessage()
- func (x *SettingsCategory) ProtoReflect() protoreflect.Message
- func (x *SettingsCategory) Reset()
- func (x *SettingsCategory) String() string
- type SettingsPluginClient
- type SettingsPluginServer
- type SettingsPlugin_CommitSettingsClient
- type SettingsPlugin_CommitSettingsServer
- type SettingsValues
- type UnimplementedSettingsPluginServer
- func (UnimplementedSettingsPluginServer) CommitSettings(SettingsPlugin_CommitSettingsServer) error
- func (UnimplementedSettingsPluginServer) GetSetting(context.Context, *GetSettingRequest) (*Setting, error)
- func (UnimplementedSettingsPluginServer) GetSettingValue(context.Context, *GetSettingValueRequest) (*GetSettingValueResponse, error)
- func (UnimplementedSettingsPluginServer) ListSettings(context.Context, *emptypb.Empty) (*ListSettingsResponse, error)
- func (UnimplementedSettingsPluginServer) ValidateSetting(context.Context, *ValidateSettingRequest) (*ValidateSettingResponse, error)
- type UnsafeSettingsPluginServer
- type ValidateSettingRequest
- func (*ValidateSettingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateSettingRequest) GetId() string
- func (x *ValidateSettingRequest) GetValue() *anypb.Any
- func (*ValidateSettingRequest) ProtoMessage()
- func (x *ValidateSettingRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateSettingRequest) Reset()
- func (x *ValidateSettingRequest) String() string
- type ValidateSettingResponse
- func (*ValidateSettingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateSettingResponse) GetCode() string
- func (x *ValidateSettingResponse) GetMessage() string
- func (x *ValidateSettingResponse) GetValid() bool
- func (*ValidateSettingResponse) ProtoMessage()
- func (x *ValidateSettingResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateSettingResponse) Reset()
- func (x *ValidateSettingResponse) String() string
- type VisualComponentList
- func (*VisualComponentList) Descriptor() ([]byte, []int)deprecated
- func (x *VisualComponentList) GetResource() []*VisualResourceComponent
- func (*VisualComponentList) ProtoMessage()
- func (x *VisualComponentList) ProtoReflect() protoreflect.Message
- func (x *VisualComponentList) Reset()
- func (x *VisualComponentList) String() string
- type VisualResourceComponent
- func (*VisualResourceComponent) Descriptor() ([]byte, []int)deprecated
- func (x *VisualResourceComponent) GetId() string
- func (x *VisualResourceComponent) GetPlugin() string
- func (x *VisualResourceComponent) GetResources() []string
- func (x *VisualResourceComponent) GetType() VisualResourceComponent_ComponentType
- func (*VisualResourceComponent) ProtoMessage()
- func (x *VisualResourceComponent) ProtoReflect() protoreflect.Message
- func (x *VisualResourceComponent) Reset()
- func (x *VisualResourceComponent) String() string
- type VisualResourceComponent_ComponentType
- func (VisualResourceComponent_ComponentType) Descriptor() protoreflect.EnumDescriptor
- func (x VisualResourceComponent_ComponentType) Enum() *VisualResourceComponent_ComponentType
- func (VisualResourceComponent_ComponentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x VisualResourceComponent_ComponentType) Number() protoreflect.EnumNumber
- func (x VisualResourceComponent_ComponentType) String() string
- func (VisualResourceComponent_ComponentType) Type() protoreflect.EnumType
Constants ¶
const ( SettingsPlugin_ListSettings_FullMethodName = "/omniview.sdk.settings.v1.SettingsPlugin/ListSettings" SettingsPlugin_GetSetting_FullMethodName = "/omniview.sdk.settings.v1.SettingsPlugin/GetSetting" SettingsPlugin_GetSettingValue_FullMethodName = "/omniview.sdk.settings.v1.SettingsPlugin/GetSettingValue" SettingsPlugin_ValidateSetting_FullMethodName = "/omniview.sdk.settings.v1.SettingsPlugin/ValidateSetting" SettingsPlugin_CommitSettings_FullMethodName = "/omniview.sdk.settings.v1.SettingsPlugin/CommitSettings" )
Variables ¶
var ( SettingType_name = map[int32]string{ 0: "SETTING_TYPE_TEXT", 1: "SETTING_TYPE_SELECT", 2: "SETTING_TYPE_MULTI_SELECT", 3: "SETTING_TYPE_INTEGER", 4: "SETTING_TYPE_FLOAT", 5: "SETTING_TYPE_TOGGLE", 6: "SETTING_TYPE_COLOR", 7: "SETTING_TYPE_DATETIME", 8: "SETTING_TYPE_PASSWORD", } SettingType_value = map[string]int32{ "SETTING_TYPE_TEXT": 0, "SETTING_TYPE_SELECT": 1, "SETTING_TYPE_MULTI_SELECT": 2, "SETTING_TYPE_INTEGER": 3, "SETTING_TYPE_FLOAT": 4, "SETTING_TYPE_TOGGLE": 5, "SETTING_TYPE_COLOR": 6, "SETTING_TYPE_DATETIME": 7, "SETTING_TYPE_PASSWORD": 8, } )
Enum value maps for SettingType.
var ( VisualResourceComponent_ComponentType_name = map[int32]string{ 0: "SIDEBAR", 1: "TABLE", 2: "TABLE_ROW", 3: "TABLE_CELL", } VisualResourceComponent_ComponentType_value = map[string]int32{ "SIDEBAR": 0, "TABLE": 1, "TABLE_ROW": 2, "TABLE_CELL": 3, } )
Enum value maps for VisualResourceComponent_ComponentType.
var File_proto_v1_settings_settings_proto protoreflect.FileDescriptor
var SettingsPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "omniview.sdk.settings.v1.SettingsPlugin", HandlerType: (*SettingsPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSettings", Handler: _SettingsPlugin_ListSettings_Handler, }, { MethodName: "GetSetting", Handler: _SettingsPlugin_GetSetting_Handler, }, { MethodName: "GetSettingValue", Handler: _SettingsPlugin_GetSettingValue_Handler, }, { MethodName: "ValidateSetting", Handler: _SettingsPlugin_ValidateSetting_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "CommitSettings", Handler: _SettingsPlugin_CommitSettings_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/v1/settings/settings.proto", }
SettingsPlugin_ServiceDesc is the grpc.ServiceDesc for SettingsPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSettingsPluginServer ¶
func RegisterSettingsPluginServer(s grpc.ServiceRegistrar, srv SettingsPluginServer)
Types ¶
type CommitSettingsRequest ¶ added in v0.10.0
type CommitSettingsRequest struct {
// Types that are valid to be assigned to Phase:
//
// *CommitSettingsRequest_Proposal
// *CommitSettingsRequest_Persisted
Phase isCommitSettingsRequest_Phase `protobuf_oneof:"phase"`
// contains filtered or unexported fields
}
First request proposes values; second request acknowledges durable persistence.
func (*CommitSettingsRequest) Descriptor
deprecated
added in
v0.10.0
func (*CommitSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommitSettingsRequest.ProtoReflect.Descriptor instead.
func (*CommitSettingsRequest) GetPersisted ¶ added in v0.10.0
func (x *CommitSettingsRequest) GetPersisted() bool
func (*CommitSettingsRequest) GetPhase ¶ added in v0.10.0
func (x *CommitSettingsRequest) GetPhase() isCommitSettingsRequest_Phase
func (*CommitSettingsRequest) GetProposal ¶ added in v0.10.0
func (x *CommitSettingsRequest) GetProposal() *SettingsValues
func (*CommitSettingsRequest) ProtoMessage ¶ added in v0.10.0
func (*CommitSettingsRequest) ProtoMessage()
func (*CommitSettingsRequest) ProtoReflect ¶ added in v0.10.0
func (x *CommitSettingsRequest) ProtoReflect() protoreflect.Message
func (*CommitSettingsRequest) Reset ¶ added in v0.10.0
func (x *CommitSettingsRequest) Reset()
func (*CommitSettingsRequest) String ¶ added in v0.10.0
func (x *CommitSettingsRequest) String() string
type CommitSettingsRequest_Persisted ¶ added in v0.10.0
type CommitSettingsRequest_Persisted struct {
Persisted bool `protobuf:"varint,2,opt,name=persisted,proto3,oneof"`
}
type CommitSettingsRequest_Proposal ¶ added in v0.10.0
type CommitSettingsRequest_Proposal struct {
Proposal *SettingsValues `protobuf:"bytes,1,opt,name=proposal,proto3,oneof"`
}
type CommitSettingsResponse ¶ added in v0.10.0
type CommitSettingsResponse struct {
// Types that are valid to be assigned to Phase:
//
// *CommitSettingsResponse_Prepared
// *CommitSettingsResponse_Result
Phase isCommitSettingsResponse_Phase `protobuf_oneof:"phase"`
// contains filtered or unexported fields
}
func (*CommitSettingsResponse) Descriptor
deprecated
added in
v0.10.0
func (*CommitSettingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommitSettingsResponse.ProtoReflect.Descriptor instead.
func (*CommitSettingsResponse) GetPhase ¶ added in v0.10.0
func (x *CommitSettingsResponse) GetPhase() isCommitSettingsResponse_Phase
func (*CommitSettingsResponse) GetPrepared ¶ added in v0.10.0
func (x *CommitSettingsResponse) GetPrepared() *SettingsValues
func (*CommitSettingsResponse) GetResult ¶ added in v0.10.0
func (x *CommitSettingsResponse) GetResult() *CommitSettingsResult
func (*CommitSettingsResponse) ProtoMessage ¶ added in v0.10.0
func (*CommitSettingsResponse) ProtoMessage()
func (*CommitSettingsResponse) ProtoReflect ¶ added in v0.10.0
func (x *CommitSettingsResponse) ProtoReflect() protoreflect.Message
func (*CommitSettingsResponse) Reset ¶ added in v0.10.0
func (x *CommitSettingsResponse) Reset()
func (*CommitSettingsResponse) String ¶ added in v0.10.0
func (x *CommitSettingsResponse) String() string
type CommitSettingsResponse_Prepared ¶ added in v0.10.0
type CommitSettingsResponse_Prepared struct {
Prepared *SettingsValues `protobuf:"bytes,1,opt,name=prepared,proto3,oneof"`
}
type CommitSettingsResponse_Result ¶ added in v0.10.0
type CommitSettingsResponse_Result struct {
Result *CommitSettingsResult `protobuf:"bytes,2,opt,name=result,proto3,oneof"`
}
type CommitSettingsResult ¶ added in v0.10.0
type CommitSettingsResult struct {
Committed bool `protobuf:"varint,1,opt,name=committed,proto3" json:"committed,omitempty"`
Applied bool `protobuf:"varint,2,opt,name=applied,proto3" json:"applied,omitempty"`
Uncertain bool `protobuf:"varint,3,opt,name=uncertain,proto3" json:"uncertain,omitempty"`
// contains filtered or unexported fields
}
func (*CommitSettingsResult) Descriptor
deprecated
added in
v0.10.0
func (*CommitSettingsResult) Descriptor() ([]byte, []int)
Deprecated: Use CommitSettingsResult.ProtoReflect.Descriptor instead.
func (*CommitSettingsResult) GetApplied ¶ added in v0.10.0
func (x *CommitSettingsResult) GetApplied() bool
func (*CommitSettingsResult) GetCommitted ¶ added in v0.10.0
func (x *CommitSettingsResult) GetCommitted() bool
func (*CommitSettingsResult) GetUncertain ¶ added in v0.10.0
func (x *CommitSettingsResult) GetUncertain() bool
func (*CommitSettingsResult) ProtoMessage ¶ added in v0.10.0
func (*CommitSettingsResult) ProtoMessage()
func (*CommitSettingsResult) ProtoReflect ¶ added in v0.10.0
func (x *CommitSettingsResult) ProtoReflect() protoreflect.Message
func (*CommitSettingsResult) Reset ¶ added in v0.10.0
func (x *CommitSettingsResult) Reset()
func (*CommitSettingsResult) String ¶ added in v0.10.0
func (x *CommitSettingsResult) String() string
type GetSettingRequest ¶
type GetSettingRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetSettingRequest) Descriptor
deprecated
func (*GetSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSettingRequest.ProtoReflect.Descriptor instead.
func (*GetSettingRequest) GetId ¶
func (x *GetSettingRequest) GetId() string
func (*GetSettingRequest) ProtoMessage ¶
func (*GetSettingRequest) ProtoMessage()
func (*GetSettingRequest) ProtoReflect ¶
func (x *GetSettingRequest) ProtoReflect() protoreflect.Message
func (*GetSettingRequest) Reset ¶
func (x *GetSettingRequest) Reset()
func (*GetSettingRequest) String ¶
func (x *GetSettingRequest) String() string
type GetSettingValueRequest ¶
type GetSettingValueRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetSettingValueRequest) Descriptor
deprecated
func (*GetSettingValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSettingValueRequest.ProtoReflect.Descriptor instead.
func (*GetSettingValueRequest) GetId ¶
func (x *GetSettingValueRequest) GetId() string
func (*GetSettingValueRequest) ProtoMessage ¶
func (*GetSettingValueRequest) ProtoMessage()
func (*GetSettingValueRequest) ProtoReflect ¶
func (x *GetSettingValueRequest) ProtoReflect() protoreflect.Message
func (*GetSettingValueRequest) Reset ¶
func (x *GetSettingValueRequest) Reset()
func (*GetSettingValueRequest) String ¶
func (x *GetSettingValueRequest) String() string
type GetSettingValueResponse ¶
type GetSettingValueResponse struct {
Value *anypb.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*GetSettingValueResponse) Descriptor
deprecated
func (*GetSettingValueResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSettingValueResponse.ProtoReflect.Descriptor instead.
func (*GetSettingValueResponse) GetValue ¶
func (x *GetSettingValueResponse) GetValue() *anypb.Any
func (*GetSettingValueResponse) ProtoMessage ¶
func (*GetSettingValueResponse) ProtoMessage()
func (*GetSettingValueResponse) ProtoReflect ¶
func (x *GetSettingValueResponse) ProtoReflect() protoreflect.Message
func (*GetSettingValueResponse) Reset ¶
func (x *GetSettingValueResponse) Reset()
func (*GetSettingValueResponse) String ¶
func (x *GetSettingValueResponse) String() string
type ListSettingsResponse ¶
type ListSettingsResponse struct {
Settings map[string]*Setting `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ListSettingsResponse) Descriptor
deprecated
func (*ListSettingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSettingsResponse.ProtoReflect.Descriptor instead.
func (*ListSettingsResponse) GetSettings ¶
func (x *ListSettingsResponse) GetSettings() map[string]*Setting
func (*ListSettingsResponse) ProtoMessage ¶
func (*ListSettingsResponse) ProtoMessage()
func (*ListSettingsResponse) ProtoReflect ¶
func (x *ListSettingsResponse) ProtoReflect() protoreflect.Message
func (*ListSettingsResponse) Reset ¶
func (x *ListSettingsResponse) Reset()
func (*ListSettingsResponse) String ¶
func (x *ListSettingsResponse) String() string
type Setting ¶
type Setting struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Type SettingType `protobuf:"varint,4,opt,name=type,proto3,enum=omniview.sdk.settings.v1.SettingType" json:"type,omitempty"`
Value *anypb.Any `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
Default *anypb.Any `protobuf:"bytes,6,opt,name=default,proto3" json:"default,omitempty"`
Options []*SettingOption `protobuf:"bytes,7,rep,name=options,proto3" json:"options,omitempty"`
FileSelection *SettingFileSelection `protobuf:"bytes,8,opt,name=file_selection,json=fileSelection,proto3,oneof" json:"file_selection,omitempty"`
DevOnly bool `protobuf:"varint,9,opt,name=dev_only,json=devOnly,proto3" json:"dev_only,omitempty"`
// Presence is required: absent legacy metadata is not evidence of public data.
// Password settings remain sensitive even when a sender explicitly sends false.
Sensitive *bool `protobuf:"varint,10,opt,name=sensitive,proto3,oneof" json:"sensitive,omitempty"`
RequiresRestart bool `protobuf:"varint,11,opt,name=requires_restart,json=requiresRestart,proto3" json:"requires_restart,omitempty"`
PendingRestart bool `protobuf:"varint,12,opt,name=pending_restart,json=pendingRestart,proto3" json:"pending_restart,omitempty"`
// contains filtered or unexported fields
}
func (*Setting) Descriptor
deprecated
func (*Setting) GetDefault ¶
func (*Setting) GetDescription ¶
func (*Setting) GetDevOnly ¶ added in v0.4.1
func (*Setting) GetFileSelection ¶
func (x *Setting) GetFileSelection() *SettingFileSelection
func (*Setting) GetOptions ¶
func (x *Setting) GetOptions() []*SettingOption
func (*Setting) GetPendingRestart ¶ added in v0.10.0
func (*Setting) GetRequiresRestart ¶ added in v0.10.0
func (*Setting) GetSensitive ¶ added in v0.6.0
func (*Setting) GetType ¶
func (x *Setting) GetType() SettingType
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
func (*Setting) ProtoReflect ¶
func (x *Setting) ProtoReflect() protoreflect.Message
type SettingFileSelection ¶
type SettingFileSelection struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
AllowFolders bool `protobuf:"varint,2,opt,name=allow_folders,json=allowFolders,proto3" json:"allow_folders,omitempty"`
Extensions []string `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
Multiple bool `protobuf:"varint,4,opt,name=multiple,proto3" json:"multiple,omitempty"`
Relative bool `protobuf:"varint,5,opt,name=relative,proto3" json:"relative,omitempty"`
DefaultPath string `protobuf:"bytes,6,opt,name=default_path,json=defaultPath,proto3" json:"default_path,omitempty"`
// contains filtered or unexported fields
}
func (*SettingFileSelection) Descriptor
deprecated
func (*SettingFileSelection) Descriptor() ([]byte, []int)
Deprecated: Use SettingFileSelection.ProtoReflect.Descriptor instead.
func (*SettingFileSelection) GetAllowFolders ¶
func (x *SettingFileSelection) GetAllowFolders() bool
func (*SettingFileSelection) GetDefaultPath ¶
func (x *SettingFileSelection) GetDefaultPath() string
func (*SettingFileSelection) GetEnabled ¶
func (x *SettingFileSelection) GetEnabled() bool
func (*SettingFileSelection) GetExtensions ¶
func (x *SettingFileSelection) GetExtensions() []string
func (*SettingFileSelection) GetMultiple ¶
func (x *SettingFileSelection) GetMultiple() bool
func (*SettingFileSelection) GetRelative ¶
func (x *SettingFileSelection) GetRelative() bool
func (*SettingFileSelection) ProtoMessage ¶
func (*SettingFileSelection) ProtoMessage()
func (*SettingFileSelection) ProtoReflect ¶
func (x *SettingFileSelection) ProtoReflect() protoreflect.Message
func (*SettingFileSelection) Reset ¶
func (x *SettingFileSelection) Reset()
func (*SettingFileSelection) String ¶
func (x *SettingFileSelection) String() string
type SettingOption ¶
type SettingOption struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Value *anypb.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*SettingOption) Descriptor
deprecated
func (*SettingOption) Descriptor() ([]byte, []int)
Deprecated: Use SettingOption.ProtoReflect.Descriptor instead.
func (*SettingOption) GetDescription ¶
func (x *SettingOption) GetDescription() string
func (*SettingOption) GetLabel ¶
func (x *SettingOption) GetLabel() string
func (*SettingOption) GetValue ¶
func (x *SettingOption) GetValue() *anypb.Any
func (*SettingOption) ProtoMessage ¶
func (*SettingOption) ProtoMessage()
func (*SettingOption) ProtoReflect ¶
func (x *SettingOption) ProtoReflect() protoreflect.Message
func (*SettingOption) Reset ¶
func (x *SettingOption) Reset()
func (*SettingOption) String ¶
func (x *SettingOption) String() string
type SettingType ¶
type SettingType int32
const ( SettingType_SETTING_TYPE_TEXT SettingType = 0 SettingType_SETTING_TYPE_SELECT SettingType = 1 SettingType_SETTING_TYPE_MULTI_SELECT SettingType = 2 SettingType_SETTING_TYPE_INTEGER SettingType = 3 SettingType_SETTING_TYPE_FLOAT SettingType = 4 SettingType_SETTING_TYPE_TOGGLE SettingType = 5 SettingType_SETTING_TYPE_COLOR SettingType = 6 SettingType_SETTING_TYPE_DATETIME SettingType = 7 SettingType_SETTING_TYPE_PASSWORD SettingType = 8 )
func (SettingType) Descriptor ¶
func (SettingType) Descriptor() protoreflect.EnumDescriptor
func (SettingType) Enum ¶
func (x SettingType) Enum() *SettingType
func (SettingType) EnumDescriptor
deprecated
func (SettingType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SettingType.Descriptor instead.
func (SettingType) Number ¶
func (x SettingType) Number() protoreflect.EnumNumber
func (SettingType) String ¶
func (x SettingType) String() string
func (SettingType) Type ¶
func (SettingType) Type() protoreflect.EnumType
type SettingsCategory ¶
type SettingsCategory struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
Settings map[string]*Setting `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SettingsCategory) Descriptor
deprecated
func (*SettingsCategory) Descriptor() ([]byte, []int)
Deprecated: Use SettingsCategory.ProtoReflect.Descriptor instead.
func (*SettingsCategory) GetDescription ¶
func (x *SettingsCategory) GetDescription() string
func (*SettingsCategory) GetIcon ¶
func (x *SettingsCategory) GetIcon() string
func (*SettingsCategory) GetId ¶
func (x *SettingsCategory) GetId() string
func (*SettingsCategory) GetLabel ¶
func (x *SettingsCategory) GetLabel() string
func (*SettingsCategory) GetSettings ¶
func (x *SettingsCategory) GetSettings() map[string]*Setting
func (*SettingsCategory) ProtoMessage ¶
func (*SettingsCategory) ProtoMessage()
func (*SettingsCategory) ProtoReflect ¶
func (x *SettingsCategory) ProtoReflect() protoreflect.Message
func (*SettingsCategory) Reset ¶
func (x *SettingsCategory) Reset()
func (*SettingsCategory) String ¶
func (x *SettingsCategory) String() string
type SettingsPluginClient ¶
type SettingsPluginClient interface {
ListSettings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSettingsResponse, error)
GetSetting(ctx context.Context, in *GetSettingRequest, opts ...grpc.CallOption) (*Setting, error)
GetSettingValue(ctx context.Context, in *GetSettingValueRequest, opts ...grpc.CallOption) (*GetSettingValueResponse, error)
ValidateSetting(ctx context.Context, in *ValidateSettingRequest, opts ...grpc.CallOption) (*ValidateSettingResponse, error)
CommitSettings(ctx context.Context, opts ...grpc.CallOption) (SettingsPlugin_CommitSettingsClient, error)
}
SettingsPluginClient is the client API for SettingsPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSettingsPluginClient ¶
func NewSettingsPluginClient(cc grpc.ClientConnInterface) SettingsPluginClient
type SettingsPluginServer ¶
type SettingsPluginServer interface {
ListSettings(context.Context, *emptypb.Empty) (*ListSettingsResponse, error)
GetSetting(context.Context, *GetSettingRequest) (*Setting, error)
GetSettingValue(context.Context, *GetSettingValueRequest) (*GetSettingValueResponse, error)
ValidateSetting(context.Context, *ValidateSettingRequest) (*ValidateSettingResponse, error)
CommitSettings(SettingsPlugin_CommitSettingsServer) error
}
SettingsPluginServer is the server API for SettingsPlugin service. All implementations should embed UnimplementedSettingsPluginServer for forward compatibility
type SettingsPlugin_CommitSettingsClient ¶ added in v0.10.0
type SettingsPlugin_CommitSettingsClient interface {
Send(*CommitSettingsRequest) error
Recv() (*CommitSettingsResponse, error)
grpc.ClientStream
}
type SettingsPlugin_CommitSettingsServer ¶ added in v0.10.0
type SettingsPlugin_CommitSettingsServer interface {
Send(*CommitSettingsResponse) error
Recv() (*CommitSettingsRequest, error)
grpc.ServerStream
}
type SettingsValues ¶ added in v0.10.0
type SettingsValues struct {
Values map[string]*anypb.Any `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SettingsValues) Descriptor
deprecated
added in
v0.10.0
func (*SettingsValues) Descriptor() ([]byte, []int)
Deprecated: Use SettingsValues.ProtoReflect.Descriptor instead.
func (*SettingsValues) GetValues ¶ added in v0.10.0
func (x *SettingsValues) GetValues() map[string]*anypb.Any
func (*SettingsValues) ProtoMessage ¶ added in v0.10.0
func (*SettingsValues) ProtoMessage()
func (*SettingsValues) ProtoReflect ¶ added in v0.10.0
func (x *SettingsValues) ProtoReflect() protoreflect.Message
func (*SettingsValues) Reset ¶ added in v0.10.0
func (x *SettingsValues) Reset()
func (*SettingsValues) String ¶ added in v0.10.0
func (x *SettingsValues) String() string
type UnimplementedSettingsPluginServer ¶
type UnimplementedSettingsPluginServer struct {
}
UnimplementedSettingsPluginServer should be embedded to have forward compatible implementations.
func (UnimplementedSettingsPluginServer) CommitSettings ¶ added in v0.10.0
func (UnimplementedSettingsPluginServer) CommitSettings(SettingsPlugin_CommitSettingsServer) error
func (UnimplementedSettingsPluginServer) GetSetting ¶
func (UnimplementedSettingsPluginServer) GetSetting(context.Context, *GetSettingRequest) (*Setting, error)
func (UnimplementedSettingsPluginServer) GetSettingValue ¶
func (UnimplementedSettingsPluginServer) GetSettingValue(context.Context, *GetSettingValueRequest) (*GetSettingValueResponse, error)
func (UnimplementedSettingsPluginServer) ListSettings ¶
func (UnimplementedSettingsPluginServer) ListSettings(context.Context, *emptypb.Empty) (*ListSettingsResponse, error)
func (UnimplementedSettingsPluginServer) ValidateSetting ¶ added in v0.7.0
func (UnimplementedSettingsPluginServer) ValidateSetting(context.Context, *ValidateSettingRequest) (*ValidateSettingResponse, error)
type UnsafeSettingsPluginServer ¶
type UnsafeSettingsPluginServer interface {
// contains filtered or unexported methods
}
UnsafeSettingsPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SettingsPluginServer will result in compilation errors.
type ValidateSettingRequest ¶ added in v0.7.0
type ValidateSettingRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateSettingRequest) Descriptor
deprecated
added in
v0.7.0
func (*ValidateSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateSettingRequest.ProtoReflect.Descriptor instead.
func (*ValidateSettingRequest) GetId ¶ added in v0.7.0
func (x *ValidateSettingRequest) GetId() string
func (*ValidateSettingRequest) GetValue ¶ added in v0.7.0
func (x *ValidateSettingRequest) GetValue() *anypb.Any
func (*ValidateSettingRequest) ProtoMessage ¶ added in v0.7.0
func (*ValidateSettingRequest) ProtoMessage()
func (*ValidateSettingRequest) ProtoReflect ¶ added in v0.7.0
func (x *ValidateSettingRequest) ProtoReflect() protoreflect.Message
func (*ValidateSettingRequest) Reset ¶ added in v0.7.0
func (x *ValidateSettingRequest) Reset()
func (*ValidateSettingRequest) String ¶ added in v0.7.0
func (x *ValidateSettingRequest) String() string
type ValidateSettingResponse ¶ added in v0.7.0
type ValidateSettingResponse struct {
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateSettingResponse) Descriptor
deprecated
added in
v0.7.0
func (*ValidateSettingResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateSettingResponse.ProtoReflect.Descriptor instead.
func (*ValidateSettingResponse) GetCode ¶ added in v0.7.0
func (x *ValidateSettingResponse) GetCode() string
func (*ValidateSettingResponse) GetMessage ¶ added in v0.7.0
func (x *ValidateSettingResponse) GetMessage() string
func (*ValidateSettingResponse) GetValid ¶ added in v0.7.0
func (x *ValidateSettingResponse) GetValid() bool
func (*ValidateSettingResponse) ProtoMessage ¶ added in v0.7.0
func (*ValidateSettingResponse) ProtoMessage()
func (*ValidateSettingResponse) ProtoReflect ¶ added in v0.7.0
func (x *ValidateSettingResponse) ProtoReflect() protoreflect.Message
func (*ValidateSettingResponse) Reset ¶ added in v0.7.0
func (x *ValidateSettingResponse) Reset()
func (*ValidateSettingResponse) String ¶ added in v0.7.0
func (x *ValidateSettingResponse) String() string
type VisualComponentList ¶
type VisualComponentList struct {
Resource []*VisualResourceComponent `protobuf:"bytes,1,rep,name=resource,proto3" json:"resource,omitempty"`
// contains filtered or unexported fields
}
VisualComponentList is a list of all the visual components provided by the plugin, grouped by the section they are applicable to.
func (*VisualComponentList) Descriptor
deprecated
func (*VisualComponentList) Descriptor() ([]byte, []int)
Deprecated: Use VisualComponentList.ProtoReflect.Descriptor instead.
func (*VisualComponentList) GetResource ¶
func (x *VisualComponentList) GetResource() []*VisualResourceComponent
func (*VisualComponentList) ProtoMessage ¶
func (*VisualComponentList) ProtoMessage()
func (*VisualComponentList) ProtoReflect ¶
func (x *VisualComponentList) ProtoReflect() protoreflect.Message
func (*VisualComponentList) Reset ¶
func (x *VisualComponentList) Reset()
func (*VisualComponentList) String ¶
func (x *VisualComponentList) String() string
type VisualResourceComponent ¶
type VisualResourceComponent struct {
// The unique identifier of the component.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The plugin for which this component is applicable.
Plugin string `protobuf:"bytes,2,opt,name=plugin,proto3" json:"plugin,omitempty"`
// The type of the component.
Type VisualResourceComponent_ComponentType `` /* 130-byte string literal not displayed */
// The resources for which this component is applicable.
Resources []string `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"`
// contains filtered or unexported fields
}
VisualResourceComponent is a visual component that can be displayed in the UI within a resource.
func (*VisualResourceComponent) Descriptor
deprecated
func (*VisualResourceComponent) Descriptor() ([]byte, []int)
Deprecated: Use VisualResourceComponent.ProtoReflect.Descriptor instead.
func (*VisualResourceComponent) GetId ¶
func (x *VisualResourceComponent) GetId() string
func (*VisualResourceComponent) GetPlugin ¶
func (x *VisualResourceComponent) GetPlugin() string
func (*VisualResourceComponent) GetResources ¶
func (x *VisualResourceComponent) GetResources() []string
func (*VisualResourceComponent) GetType ¶
func (x *VisualResourceComponent) GetType() VisualResourceComponent_ComponentType
func (*VisualResourceComponent) ProtoMessage ¶
func (*VisualResourceComponent) ProtoMessage()
func (*VisualResourceComponent) ProtoReflect ¶
func (x *VisualResourceComponent) ProtoReflect() protoreflect.Message
func (*VisualResourceComponent) Reset ¶
func (x *VisualResourceComponent) Reset()
func (*VisualResourceComponent) String ¶
func (x *VisualResourceComponent) String() string
type VisualResourceComponent_ComponentType ¶
type VisualResourceComponent_ComponentType int32
const ( VisualResourceComponent_SIDEBAR VisualResourceComponent_ComponentType = 0 VisualResourceComponent_TABLE VisualResourceComponent_ComponentType = 1 VisualResourceComponent_TABLE_ROW VisualResourceComponent_ComponentType = 2 VisualResourceComponent_TABLE_CELL VisualResourceComponent_ComponentType = 3 )
func (VisualResourceComponent_ComponentType) Descriptor ¶
func (VisualResourceComponent_ComponentType) Descriptor() protoreflect.EnumDescriptor
func (VisualResourceComponent_ComponentType) EnumDescriptor
deprecated
func (VisualResourceComponent_ComponentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use VisualResourceComponent_ComponentType.Descriptor instead.
func (VisualResourceComponent_ComponentType) Number ¶
func (x VisualResourceComponent_ComponentType) Number() protoreflect.EnumNumber
func (VisualResourceComponent_ComponentType) String ¶
func (x VisualResourceComponent_ComponentType) String() string
func (VisualResourceComponent_ComponentType) Type ¶
func (VisualResourceComponent_ComponentType) Type() protoreflect.EnumType