compliance

package
v0.0.0-...-3c80372 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_compliance_config_request_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfigRequest

type ConfigRequest struct {
	V1 *ConfigRequest_V1 `protobuf:"bytes,3,opt,name=v1,proto3" json:"v1,omitempty" toml:"v1,omitempty" mapstructure:"v1,omitempty"`
	// contains filtered or unexported fields
}

func DefaultConfigRequest

func DefaultConfigRequest() *ConfigRequest

DefaultConfigRequest returns a new instance of ConfigRequest with default values.

func NewConfigRequest

func NewConfigRequest() *ConfigRequest

NewConfigRequest returns a new instance of ConfigRequest with zero values.

func (*ConfigRequest) BindPort

func (m *ConfigRequest) BindPort(name string, value uint16) error

BindPort sets the port tagged with the given name

func (*ConfigRequest) ConfigureProduct

func (c *ConfigRequest) ConfigureProduct(productConfig *config.ProductConfig)

func (*ConfigRequest) Descriptor deprecated

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

Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.

func (*ConfigRequest) GetPort

func (m *ConfigRequest) GetPort(name string) (uint16, error)

GetPort gets the port tagged with the given name. If the value is not set, it returns 0.

func (*ConfigRequest) GetSecret

func (m *ConfigRequest) GetSecret(name string) *wrappers.StringValue

GetSecret gets a secret by name. Returns nil if it is not set

func (*ConfigRequest) GetV1

func (x *ConfigRequest) GetV1() *ConfigRequest_V1

func (*ConfigRequest) ListPorts

func (m *ConfigRequest) ListPorts() []a2conf.PortInfo

ListPorts lists all the ports exposed by the config

func (*ConfigRequest) ListSecrets

func (m *ConfigRequest) ListSecrets() []a2conf.SecretInfo

ListSecrets lists all the secrets exposed by the config

func (*ConfigRequest) PrepareSystemConfig

func (c *ConfigRequest) PrepareSystemConfig(creds *config.TLSCredentials) (config.PreparedSystemConfig, error)

PrepareSystemConfig returns a system configuration that can be used to start the service.

func (*ConfigRequest) ProtoMessage

func (*ConfigRequest) ProtoMessage()

func (*ConfigRequest) ProtoReflect

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

func (*ConfigRequest) Reset

func (x *ConfigRequest) Reset()

func (*ConfigRequest) ServiceName

func (m *ConfigRequest) ServiceName() string

ServiceName returns the name of the service this config belongs to

func (*ConfigRequest) SetGlobalConfig

func (c *ConfigRequest) SetGlobalConfig(g *config.GlobalConfig)

SetGlobalConfig imports settings from the global configuration

func (*ConfigRequest) SetSecret

func (m *ConfigRequest) SetSecret(name string, value *wrappers.StringValue) error

SetSecret sets a secret by name. Returns ErrSecretNotFound if the secret does not exist

func (*ConfigRequest) String

func (x *ConfigRequest) String() string

func (*ConfigRequest) Validate

func (c *ConfigRequest) Validate() error

Validate validates that the config is sufficient to start the Service. If validation succeeds it will return nil, if it fails it will return a new instance of config.InvalidConfigError that has the missing keys and invalid fields populated.

type ConfigRequest_V1

type ConfigRequest_V1 struct {
	Sys *ConfigRequest_V1_System  `protobuf:"bytes,1,opt,name=sys,proto3" json:"sys,omitempty" toml:"sys,omitempty" mapstructure:"sys,omitempty"`
	Svc *ConfigRequest_V1_Service `protobuf:"bytes,2,opt,name=svc,proto3" json:"svc,omitempty" toml:"svc,omitempty" mapstructure:"svc,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1) GetSvc

func (*ConfigRequest_V1) GetSys

func (*ConfigRequest_V1) ProtoMessage

func (*ConfigRequest_V1) ProtoMessage()

func (*ConfigRequest_V1) ProtoReflect

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

func (*ConfigRequest_V1) Reset

func (x *ConfigRequest_V1) Reset()

func (*ConfigRequest_V1) String

func (x *ConfigRequest_V1) String() string

type ConfigRequest_V1_Service

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

func (*ConfigRequest_V1_Service) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_Service.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_Service) ProtoMessage

func (*ConfigRequest_V1_Service) ProtoMessage()

func (*ConfigRequest_V1_Service) ProtoReflect

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

func (*ConfigRequest_V1_Service) Reset

func (x *ConfigRequest_V1_Service) Reset()

func (*ConfigRequest_V1_Service) String

func (x *ConfigRequest_V1_Service) String() string

type ConfigRequest_V1_System

type ConfigRequest_V1_System struct {
	Mlsa     *shared.Mlsa                      `protobuf:"bytes,1,opt,name=mlsa,proto3" json:"mlsa,omitempty" toml:"mlsa,omitempty" mapstructure:"mlsa,omitempty"`
	Service  *ConfigRequest_V1_System_Service  `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty" toml:"service,omitempty" mapstructure:"service,omitempty"`
	Tls      *shared.TLSCredentials            `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"`
	Profiles *ConfigRequest_V1_System_Profiles `` /* 129-byte string literal not displayed */
	Storage  *ConfigRequest_V1_System_Storage  `protobuf:"bytes,5,opt,name=storage,proto3" json:"storage,omitempty" toml:"storage,omitempty" mapstructure:"storage,omitempty"`
	Logger   *ConfigRequest_V1_System_Logger   `protobuf:"bytes,6,opt,name=logger,proto3" json:"logger,omitempty" toml:"logger,omitempty" mapstructure:"logger,omitempty"`
	// NOTE: retention is no longer configurable via config and is now
	// managed with gRPC endpoints. The field is not reserved so we can
	// migrate the initial values from config to to the purge cereal
	// workflows.
	// Setting retention values is prevented in the Validate() callback.
	//
	// Deprecated: Do not use.
	Retention *ConfigRequest_V1_System_Retention `` /* 133-byte string literal not displayed */
	Agent     *ConfigRequest_V1_System_Agent     `protobuf:"bytes,10,opt,name=agent,proto3" json:"agent,omitempty" toml:"agent,omitempty" mapstructure:"agent,omitempty"`
	Proxy     *ConfigRequest_V1_System_Proxy     `protobuf:"bytes,11,opt,name=proxy,proto3" json:"proxy,omitempty" toml:"proxy,omitempty" mapstructure:"proxy,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System) GetAgent

func (*ConfigRequest_V1_System) GetLogger

func (*ConfigRequest_V1_System) GetMlsa

func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa

func (*ConfigRequest_V1_System) GetProfiles

func (*ConfigRequest_V1_System) GetProxy

func (*ConfigRequest_V1_System) GetRetention deprecated

Deprecated: Do not use.

func (*ConfigRequest_V1_System) GetService

func (*ConfigRequest_V1_System) GetStorage

func (*ConfigRequest_V1_System) GetTls

func (*ConfigRequest_V1_System) ProtoMessage

func (*ConfigRequest_V1_System) ProtoMessage()

func (*ConfigRequest_V1_System) ProtoReflect

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

func (*ConfigRequest_V1_System) Reset

func (x *ConfigRequest_V1_System) Reset()

func (*ConfigRequest_V1_System) String

func (x *ConfigRequest_V1_System) String() string

type ConfigRequest_V1_System_Agent

type ConfigRequest_V1_System_Agent struct {
	Workers             *wrapperspb.Int32Value  `protobuf:"bytes,1,opt,name=workers,proto3" json:"workers,omitempty" toml:"workers,omitempty" mapstructure:"workers,omitempty"`
	BufferSize          *wrapperspb.Int32Value  `` /* 157-byte string literal not displayed */
	RemoteInspecVersion *wrapperspb.StringValue `` /* 206-byte string literal not displayed */
	ResultMessageLimit  *wrapperspb.Int32Value  `` /* 201-byte string literal not displayed */
	ControlResultsLimit *wrapperspb.Int32Value  `` /* 206-byte string literal not displayed */
	RunTimeLimit        *wrapperspb.FloatValue  `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Agent) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System_Agent.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Agent) GetBufferSize

func (*ConfigRequest_V1_System_Agent) GetControlResultsLimit

func (x *ConfigRequest_V1_System_Agent) GetControlResultsLimit() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Agent) GetRemoteInspecVersion

func (x *ConfigRequest_V1_System_Agent) GetRemoteInspecVersion() *wrapperspb.StringValue

func (*ConfigRequest_V1_System_Agent) GetResultMessageLimit

func (x *ConfigRequest_V1_System_Agent) GetResultMessageLimit() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Agent) GetRunTimeLimit

func (x *ConfigRequest_V1_System_Agent) GetRunTimeLimit() *wrapperspb.FloatValue

func (*ConfigRequest_V1_System_Agent) GetWorkers

func (*ConfigRequest_V1_System_Agent) ProtoMessage

func (*ConfigRequest_V1_System_Agent) ProtoMessage()

func (*ConfigRequest_V1_System_Agent) ProtoReflect

func (*ConfigRequest_V1_System_Agent) Reset

func (x *ConfigRequest_V1_System_Agent) Reset()

func (*ConfigRequest_V1_System_Agent) String

type ConfigRequest_V1_System_Logger

type ConfigRequest_V1_System_Logger struct {
	Format *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty" toml:"format,omitempty" mapstructure:"format,omitempty"`
	Level  *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty" toml:"level,omitempty" mapstructure:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Logger) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System_Logger.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Logger) GetFormat

func (*ConfigRequest_V1_System_Logger) GetLevel

func (*ConfigRequest_V1_System_Logger) ProtoMessage

func (*ConfigRequest_V1_System_Logger) ProtoMessage()

func (*ConfigRequest_V1_System_Logger) ProtoReflect

func (*ConfigRequest_V1_System_Logger) Reset

func (x *ConfigRequest_V1_System_Logger) Reset()

func (*ConfigRequest_V1_System_Logger) String

type ConfigRequest_V1_System_Profiles

type ConfigRequest_V1_System_Profiles struct {
	InstallMarketProfiles *wrapperspb.BoolValue `` /* 216-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Profiles) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System_Profiles.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Profiles) GetInstallMarketProfiles

func (x *ConfigRequest_V1_System_Profiles) GetInstallMarketProfiles() *wrapperspb.BoolValue

func (*ConfigRequest_V1_System_Profiles) ProtoMessage

func (*ConfigRequest_V1_System_Profiles) ProtoMessage()

func (*ConfigRequest_V1_System_Profiles) ProtoReflect

func (*ConfigRequest_V1_System_Profiles) Reset

func (*ConfigRequest_V1_System_Profiles) String

type ConfigRequest_V1_System_Proxy

type ConfigRequest_V1_System_Proxy struct {
	ConnectionString *wrapperspb.StringValue `` /* 187-byte string literal not displayed */
	NoProxyString    *wrapperspb.StringValue `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Proxy) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System_Proxy.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Proxy) GetConnectionString

func (x *ConfigRequest_V1_System_Proxy) GetConnectionString() *wrapperspb.StringValue

func (*ConfigRequest_V1_System_Proxy) GetNoProxyString

func (x *ConfigRequest_V1_System_Proxy) GetNoProxyString() *wrapperspb.StringValue

func (*ConfigRequest_V1_System_Proxy) ProtoMessage

func (*ConfigRequest_V1_System_Proxy) ProtoMessage()

func (*ConfigRequest_V1_System_Proxy) ProtoReflect

func (*ConfigRequest_V1_System_Proxy) Reset

func (x *ConfigRequest_V1_System_Proxy) Reset()

func (*ConfigRequest_V1_System_Proxy) String

type ConfigRequest_V1_System_Retention

type ConfigRequest_V1_System_Retention struct {
	ComplianceReportDays *wrapperspb.Int32Value `` /* 211-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Retention) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System_Retention.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Retention) GetComplianceReportDays

func (x *ConfigRequest_V1_System_Retention) GetComplianceReportDays() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Retention) ProtoMessage

func (*ConfigRequest_V1_System_Retention) ProtoMessage()

func (*ConfigRequest_V1_System_Retention) ProtoReflect

func (*ConfigRequest_V1_System_Retention) Reset

func (*ConfigRequest_V1_System_Retention) String

type ConfigRequest_V1_System_Service

type ConfigRequest_V1_System_Service struct {

	// Deprecated: Do not use.
	Host                              *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty" toml:"host,omitempty" mapstructure:"host,omitempty"` // The listen host is no longer setable(localhost only)
	Port                              *wrapperspb.Int32Value  `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"`
	ExternalFqdn                      *wrapperspb.StringValue `` /* 167-byte string literal not displayed */
	MessageBufferSize                 *wrapperspb.Int32Value  `` /* 196-byte string literal not displayed */
	EnableLargeReporting              *wrapperspb.BoolValue   `` /* 211-byte string literal not displayed */
	LcrOpenSearchRequests             *wrapperspb.Int32Value  `` /* 221-byte string literal not displayed */
	EnableEnhancedComplianceReporting *wrapperspb.BoolValue   `` /* 281-byte string literal not displayed */
	ControlDataPopulatorsCount        *wrapperspb.Int32Value  `` /* 246-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Service) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System_Service.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Service) GetControlDataPopulatorsCount

func (x *ConfigRequest_V1_System_Service) GetControlDataPopulatorsCount() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Service) GetEnableEnhancedComplianceReporting

func (x *ConfigRequest_V1_System_Service) GetEnableEnhancedComplianceReporting() *wrapperspb.BoolValue

func (*ConfigRequest_V1_System_Service) GetEnableLargeReporting

func (x *ConfigRequest_V1_System_Service) GetEnableLargeReporting() *wrapperspb.BoolValue

func (*ConfigRequest_V1_System_Service) GetExternalFqdn

func (*ConfigRequest_V1_System_Service) GetHost deprecated

Deprecated: Do not use.

func (*ConfigRequest_V1_System_Service) GetLcrOpenSearchRequests

func (x *ConfigRequest_V1_System_Service) GetLcrOpenSearchRequests() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Service) GetMessageBufferSize

func (x *ConfigRequest_V1_System_Service) GetMessageBufferSize() *wrapperspb.Int32Value

func (*ConfigRequest_V1_System_Service) GetPort

func (*ConfigRequest_V1_System_Service) ProtoMessage

func (*ConfigRequest_V1_System_Service) ProtoMessage()

func (*ConfigRequest_V1_System_Service) ProtoReflect

func (*ConfigRequest_V1_System_Service) Reset

func (*ConfigRequest_V1_System_Service) String

type ConfigRequest_V1_System_Storage

type ConfigRequest_V1_System_Storage struct {
	Database *wrapperspb.StringValue `` /* 129-byte string literal not displayed */
	User     *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" toml:"user,omitempty" mapstructure:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigRequest_V1_System_Storage) Descriptor deprecated

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

Deprecated: Use ConfigRequest_V1_System_Storage.ProtoReflect.Descriptor instead.

func (*ConfigRequest_V1_System_Storage) GetDatabase

func (*ConfigRequest_V1_System_Storage) GetUser

func (*ConfigRequest_V1_System_Storage) ProtoMessage

func (*ConfigRequest_V1_System_Storage) ProtoMessage()

func (*ConfigRequest_V1_System_Storage) ProtoReflect

func (*ConfigRequest_V1_System_Storage) Reset

func (*ConfigRequest_V1_System_Storage) String

Jump to

Keyboard shortcuts

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