verifiers

package
v0.0.0-...-8e3f0bd Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyPolicy

func VerifyPolicy(statement *ita.Statement, policy *models.Policy, rule_name string) error

Types

type Allow

type Allow struct {
	Pattern string `"ALLOW" @String`
}

type ArtifactRule

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

type Disallow

type Disallow struct {
	Pattern string `"DISALLOW" @String`
}

type Match

type Match struct {
	Pattern           string  `"MATCH" @String`
	SourcePrefix      *string `("IN" @String)?`
	Field             string  `"WITH" @String`
	DestinationPrefix *string `("IN" @String)?`
}

type Mismatch

type Mismatch struct {
	Pattern           string  `"MISMATCH" @String`
	SourcePrefix      *string `("IN" @String)?`
	Field             string  `"WITH" @String`
	DestinationPrefix *string `("IN" @String)?`
}

type Require

type Require struct {
	Pattern string `"REQUIRE" @String`
}

Jump to

Keyboard shortcuts

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