Documentation ¶
Index ¶
- Variables
- func ConvertMapListToMeta(resourceMap []map[string]interface{}) []workloadinterface.IMetadata
- func ScanRepository(command string, branchOptional string) ([]string, error)
- type EKSProviderContext
- type EKSProviderEnvVar
- type EmptyCloudProvider
- type EmptySelector
- type ExcludeSelector
- type FileFormat
- type FileResourceHandler
- type GKEProviderContext
- type GKEProviderEnvVar
- type GitHubRepository
- type ICloudProvider
- type IFieldSelector
- type IRepository
- type IResourceHandler
- type IncludeSelector
- type K8sResourceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KS_KUBE_CLUSTER_ENV_VAR = "KS_KUBE_CLUSTER" KS_CLOUD_PROVIDER_ENV_VAR = "KS_CLOUD_PROVIDER" KS_CLOUD_REGION_ENV_VAR = "KS_CLOUD_REGION" KS_GKE_PROJECT_ENV_VAR = "KS_GKE_PROJECT" )
View Source
var ( YAML_PREFIX = []string{".yaml", ".yml"} JSON_PREFIX = []string{".json"} )
Functions ¶
func ConvertMapListToMeta ¶ added in v1.0.133
func ConvertMapListToMeta(resourceMap []map[string]interface{}) []workloadinterface.IMetadata
Types ¶
type EKSProviderContext ¶ added in v1.0.163
type EKSProviderContext struct { }
func NewEKSProviderContext ¶ added in v1.0.163
func NewEKSProviderContext() *EKSProviderContext
type EKSProviderEnvVar ¶ added in v1.0.163
type EKSProviderEnvVar struct { }
func NewEKSProviderEnvVar ¶ added in v1.0.163
func NewEKSProviderEnvVar() *EKSProviderEnvVar
type EmptyCloudProvider ¶ added in v1.0.163
type EmptyCloudProvider struct { }
func NewEmptyCloudProvider ¶ added in v1.0.163
func NewEmptyCloudProvider() *EmptyCloudProvider
type EmptySelector ¶ added in v1.0.110
type EmptySelector struct { }
func (*EmptySelector) GetNamespacesSelectors ¶ added in v1.0.133
func (es *EmptySelector) GetNamespacesSelectors(resource *schema.GroupVersionResource) []string
type ExcludeSelector ¶ added in v1.0.110
type ExcludeSelector struct {
// contains filtered or unexported fields
}
func NewExcludeSelector ¶ added in v1.0.110
func NewExcludeSelector(ns string) *ExcludeSelector
func (*ExcludeSelector) GetNamespacesSelectors ¶ added in v1.0.133
func (es *ExcludeSelector) GetNamespacesSelectors(resource *schema.GroupVersionResource) []string
type FileFormat ¶
type FileFormat string
const ( YAML_FILE_FORMAT FileFormat = "yaml" JSON_FILE_FORMAT FileFormat = "json" )
type FileResourceHandler ¶
type FileResourceHandler struct {
// contains filtered or unexported fields
}
FileResourceHandler handle resources from files and URLs
func NewFileResourceHandler ¶
func NewFileResourceHandler(inputPatterns []string) *FileResourceHandler
func (*FileResourceHandler) GetClusterAPIServerInfo ¶
func (fileHandler *FileResourceHandler) GetClusterAPIServerInfo() *version.Info
func (*FileResourceHandler) GetResources ¶
func (fileHandler *FileResourceHandler) GetResources(frameworks []reporthandling.Framework, designator *armotypes.PortalDesignator) (*cautils.K8SResources, map[string]workloadinterface.IMetadata, error)
type GKEProviderContext ¶ added in v1.0.163
type GKEProviderContext struct { }
func NewGKEProviderContext ¶ added in v1.0.163
func NewGKEProviderContext() *GKEProviderContext
type GKEProviderEnvVar ¶ added in v1.0.163
type GKEProviderEnvVar struct { }
func NewGKEProviderEnvVar ¶ added in v1.0.163
func NewGKEProviderEnvVar() *GKEProviderEnvVar
type GitHubRepository ¶
type GitHubRepository struct {
// contains filtered or unexported fields
}
func NewGitHubRepository ¶
func NewGitHubRepository(rep string) *GitHubRepository
type ICloudProvider ¶ added in v1.0.163
type ICloudProvider interface {
// contains filtered or unexported methods
}
type IFieldSelector ¶ added in v1.0.110
type IFieldSelector interface {
GetNamespacesSelectors(*schema.GroupVersionResource) []string
}
type IRepository ¶
type IRepository interface {
// contains filtered or unexported methods
}
type IResourceHandler ¶
type IResourceHandler interface { GetResources([]reporthandling.Framework, *armotypes.PortalDesignator) (*cautils.K8SResources, map[string]workloadinterface.IMetadata, error) GetClusterAPIServerInfo() *version.Info }
type IncludeSelector ¶ added in v1.0.110
type IncludeSelector struct {
// contains filtered or unexported fields
}
func NewIncludeSelector ¶ added in v1.0.110
func NewIncludeSelector(ns string) *IncludeSelector
func (*IncludeSelector) GetNamespacesSelectors ¶ added in v1.0.133
func (is *IncludeSelector) GetNamespacesSelectors(resource *schema.GroupVersionResource) []string
type K8sResourceHandler ¶
type K8sResourceHandler struct {
// contains filtered or unexported fields
}
func NewK8sResourceHandler ¶
func NewK8sResourceHandler(k8s *k8sinterface.KubernetesApi, fieldSelector IFieldSelector, hostSensorHandler hostsensorutils.IHostSensor, rbacObjects *cautils.RBACObjects) *K8sResourceHandler
func (*K8sResourceHandler) GetClusterAPIServerInfo ¶
func (k8sHandler *K8sResourceHandler) GetClusterAPIServerInfo() *version.Info
func (*K8sResourceHandler) GetResources ¶
func (k8sHandler *K8sResourceHandler) GetResources(frameworks []reporthandling.Framework, designator *armotypes.PortalDesignator) (*cautils.K8SResources, map[string]workloadinterface.IMetadata, error)
Click to show internal directories.
Click to hide internal directories.