Documentation ¶
Overview ¶
Package spec defines the specification of a blocklist.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V1Output ¶
type V1Output struct {
Destinations []V1OutputDestination `json:"destinations"`
}
type V1OutputDestination ¶
type V1Policy ¶
type V1Policy struct { Allow V1PolicySpec `json:"allow"` Deny V1PolicySpec `json:"deny"` }
type V1PolicySpec ¶
type V1PolicySpec struct { Items []string `json:"items"` Includes []V1PolicySpecSource `json:"includes"` }
type V1PolicySpecSource ¶
type V1Spec ¶
type V1Spec struct { Version int `json:"version"` Kind string `json:"kind"` Policy V1Policy `json:"policy"` Output V1Output `json:"output"` }
func NewV1SpecFromJSONFile ¶
func NewV1SpecFromYAMLFile ¶
Click to show internal directories.
Click to hide internal directories.