Documentation ¶
Index ¶
- Variables
- type BypassPermissions
- type EnabledWarnings
- type MultiplePolicies
- type Namespaces
- type PolicyWithNamespaces
- type ServiceState
- func (s *ServiceState) GetBypassPermissions() *BypassPermissions
- func (s *ServiceState) GetClientId() string
- func (s *ServiceState) GetClusterName() string
- func (s *ServiceState) GetClusterUuid() types.UID
- func (s *ServiceState) GetConfigFromHelm() bool
- func (s *ServiceState) GetEnabledWarnings() EnabledWarnings
- func (s *ServiceState) GetIsEnforceMode() bool
- func (s *ServiceState) GetK8sVersion() string
- func (s *ServiceState) GetLogLevel() zapcore.Level
- func (s *ServiceState) GetMultiplePolicies() *MultiplePolicies
- func (s *ServiceState) GetNoRecord() string
- func (s *ServiceState) GetOutput() string
- func (s *ServiceState) GetPolicyName() string
- func (s *ServiceState) GetServiceVersion() string
- func (s *ServiceState) GetToken() string
- func (s *ServiceState) GetVerbose() string
- func (s *ServiceState) SetBypassPermissions(bypassPermissions *BypassPermissions)
- func (s *ServiceState) SetClusterUuid(clusterUuid types.UID)
- func (s *ServiceState) SetIsEnforceMode(isEnforceMode bool)
- func (s *ServiceState) SetK8sVersion(k8sVersion string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DATREE_CONFIG_FILE_DIR = `/config`
Functions ¶
This section is empty.
Types ¶
type BypassPermissions ¶
type EnabledWarnings ¶
type MultiplePolicies ¶
type MultiplePolicies = []PolicyWithNamespaces
type Namespaces ¶
type PolicyWithNamespaces ¶
type PolicyWithNamespaces struct { Policy string `yaml:"policy" json:"policy"` Namespaces Namespaces `yaml:"namespaces" json:"namespaces"` }
type ServiceState ¶
func New ¶
func New() *ServiceState
func (*ServiceState) GetBypassPermissions ¶
func (s *ServiceState) GetBypassPermissions() *BypassPermissions
func (*ServiceState) GetClientId ¶
func (s *ServiceState) GetClientId() string
func (*ServiceState) GetClusterName ¶
func (s *ServiceState) GetClusterName() string
func (*ServiceState) GetClusterUuid ¶
func (s *ServiceState) GetClusterUuid() types.UID
func (*ServiceState) GetConfigFromHelm ¶
func (s *ServiceState) GetConfigFromHelm() bool
func (*ServiceState) GetEnabledWarnings ¶
func (s *ServiceState) GetEnabledWarnings() EnabledWarnings
func (*ServiceState) GetIsEnforceMode ¶
func (s *ServiceState) GetIsEnforceMode() bool
func (*ServiceState) GetK8sVersion ¶
func (s *ServiceState) GetK8sVersion() string
func (*ServiceState) GetLogLevel ¶
func (s *ServiceState) GetLogLevel() zapcore.Level
func (*ServiceState) GetMultiplePolicies ¶
func (s *ServiceState) GetMultiplePolicies() *MultiplePolicies
func (*ServiceState) GetNoRecord ¶
func (s *ServiceState) GetNoRecord() string
func (*ServiceState) GetOutput ¶
func (s *ServiceState) GetOutput() string
func (*ServiceState) GetPolicyName ¶
func (s *ServiceState) GetPolicyName() string
func (*ServiceState) GetServiceVersion ¶
func (s *ServiceState) GetServiceVersion() string
func (*ServiceState) GetToken ¶
func (s *ServiceState) GetToken() string
func (*ServiceState) GetVerbose ¶
func (s *ServiceState) GetVerbose() string
func (*ServiceState) SetBypassPermissions ¶
func (s *ServiceState) SetBypassPermissions(bypassPermissions *BypassPermissions)
func (*ServiceState) SetClusterUuid ¶
func (s *ServiceState) SetClusterUuid(clusterUuid types.UID)
func (*ServiceState) SetIsEnforceMode ¶
func (s *ServiceState) SetIsEnforceMode(isEnforceMode bool)
SetIsEnforceMode to override when we get cluster config in /prerun
func (*ServiceState) SetK8sVersion ¶
func (s *ServiceState) SetK8sVersion(k8sVersion string)
Click to show internal directories.
Click to hide internal directories.