Documentation ¶
Index ¶
- func CreateFSKey(filesystem fs.FS) string
- func NewRange(filename string, startLine int, endLine int, sourcePrefix string, srcFS fs.FS) baseRange
- func NewRangeWithFSKey(filename string, startLine int, endLine int, sourcePrefix string, fsKey string, ...) baseRange
- func NewRangeWithLogicalSource(filename string, startLine int, endLine int, sourcePrefix string, srcFS fs.FS) baseRange
- type BaseAttribute
- type BoolValue
- type BytesValue
- type FakeReference
- type IntValue
- type MapValue
- type Metadata
- func (m Metadata) GetMetadata() Metadata
- func (m Metadata) GetRawValue() interface{}
- func (m Metadata) IsDefault() bool
- func (m Metadata) IsExplicit() bool
- func (m Metadata) IsManaged() bool
- func (m Metadata) IsMultiLine() bool
- func (m Metadata) IsResolvable() bool
- func (m Metadata) IsUnmanaged() bool
- func (m Metadata) Parent() *Metadata
- func (m Metadata) Range() Range
- func (m Metadata) Reference() Reference
- func (m Metadata) String() string
- func (m *Metadata) ToRego() interface{}
- func (m Metadata) WithParent(p Metadata) Metadata
- type NamedReference
- type Range
- type Reference
- type Source
- type StringEqualityOption
- type StringValue
- type StringValueList
- type TimeValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFSKey ¶
func NewRangeWithFSKey ¶
Types ¶
type BaseAttribute ¶
type BaseAttribute struct {
// contains filtered or unexported fields
}
func (BaseAttribute) GetMetadata ¶
func (b BaseAttribute) GetMetadata() Metadata
type BoolValue ¶
type BoolValue interface { Value() bool IsTrue() bool IsFalse() bool // contains filtered or unexported methods }
func BoolDefault ¶
func BoolExplicit ¶
func BoolUnresolvable ¶
type BytesValue ¶
func Bytes ¶
func Bytes(value []byte, m Metadata) BytesValue
func BytesDefault ¶
func BytesDefault(value []byte, m Metadata) BytesValue
func BytesExplicit ¶
func BytesExplicit(value []byte, m Metadata) BytesValue
func BytesUnresolvable ¶
func BytesUnresolvable(m Metadata) BytesValue
type FakeReference ¶
type FakeReference struct { }
func (*FakeReference) LogicalID ¶
func (f *FakeReference) LogicalID() string
func (*FakeReference) RefersTo ¶
func (f *FakeReference) RefersTo(r Reference) bool
func (*FakeReference) String ¶
func (f *FakeReference) String() string
type IntValue ¶
type IntValue interface { Value() int EqualTo(i int) bool NotEqualTo(i int) bool LessThan(i int) bool GreaterThan(i int) bool // contains filtered or unexported methods }
func IntDefault ¶
func IntExplicit ¶
func IntUnresolvable ¶
type MapValue ¶
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
func NewExplicitMetadata ¶
func NewMetadata ¶
func NewTestMetadata ¶
func NewTestMetadata() Metadata
func NewUnmanagedMetadata ¶
func NewUnmanagedMetadata() Metadata
func NewUnresolvableMetadata ¶
func (Metadata) GetMetadata ¶
func (Metadata) GetRawValue ¶
func (m Metadata) GetRawValue() interface{}
func (Metadata) IsExplicit ¶
func (Metadata) IsMultiLine ¶
func (Metadata) IsResolvable ¶
func (Metadata) IsUnmanaged ¶
func (Metadata) WithParent ¶
type NamedReference ¶
type NamedReference struct {
// contains filtered or unexported fields
}
func (*NamedReference) LogicalID ¶
func (f *NamedReference) LogicalID() string
func (*NamedReference) RefersTo ¶
func (f *NamedReference) RefersTo(r Reference) bool
func (*NamedReference) String ¶
func (f *NamedReference) String() string
type Reference ¶
func NewNamedReference ¶
type Source ¶
type Source string
const ( SourceTerraform Source = "terraform" SourceDockerfile Source = "dockerfile" SourceKubernetes Source = "kubernetes" SourceRbac Source = "rbac" SourceCloudFormation Source = "cloudformation" SourceAnsible Source = "ansible" SourceDefsec Source = "defsec" SourceYAML Source = "yaml" SourceJSON Source = "json" SourceTOML Source = "toml" )
type StringEqualityOption ¶
type StringEqualityOption int
const ( IgnoreCase StringEqualityOption = iota IsPallindrome )
type StringValue ¶
type StringValue interface { Value() string IsEmpty() bool IsNotEmpty() bool IsOneOf(values ...string) bool EqualTo(value string, equalityOptions ...StringEqualityOption) bool NotEqualTo(value string, equalityOptions ...StringEqualityOption) bool StartsWith(prefix string, equalityOptions ...StringEqualityOption) bool EndsWith(suffix string, equalityOptions ...StringEqualityOption) bool Contains(value string, equalityOptions ...StringEqualityOption) bool // contains filtered or unexported methods }
func String ¶
func String(str string, m Metadata) StringValue
func StringDefault ¶
func StringDefault(value string, m Metadata) StringValue
func StringExplicit ¶
func StringExplicit(value string, m Metadata) StringValue
func StringUnresolvable ¶
func StringUnresolvable(m Metadata) StringValue
type StringValueList ¶
type StringValueList []StringValue
func (StringValueList) AsStrings ¶
func (l StringValueList) AsStrings() (output []string)
Click to show internal directories.
Click to hide internal directories.