resourcehandler

package
v1.0.132 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	YAML_PREFIX = []string{".yaml", ".yml"}
	JSON_PREFIX = []string{".json"}
)

Functions

func ScanRepository

func ScanRepository(command string, branchOptional string) ([]string, error)

Types

type EmptySelector added in v1.0.110

type EmptySelector struct {
}

func (*EmptySelector) GetNamespacesSelector added in v1.0.110

func (es *EmptySelector) GetNamespacesSelector(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) GetNamespacesSelector added in v1.0.110

func (es *ExcludeSelector) GetNamespacesSelector(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, error)

type GitHubRepository

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

func NewGitHubRepository

func NewGitHubRepository(rep string) *GitHubRepository

type IFieldSelector added in v1.0.110

type IFieldSelector interface {
	GetNamespacesSelector(*schema.GroupVersionResource) string
}

type IRepository

type IRepository interface {
	// contains filtered or unexported methods
}

type IResourceHandler

type IResourceHandler interface {
	GetResources(frameworks []reporthandling.Framework, designator *armotypes.PortalDesignator) (*cautils.K8SResources, 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) GetNamespacesSelector added in v1.0.110

func (is *IncludeSelector) GetNamespacesSelector(resource *schema.GroupVersionResource) string

type K8sResourceHandler

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

func NewK8sResourceHandler

func NewK8sResourceHandler(k8s *k8sinterface.KubernetesApi, fieldSelector IFieldSelector) *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, error)

Jump to

Keyboard shortcuts

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