Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
Tags Tags
}
func EmptyFilter ¶ added in v0.0.3
func EmptyFilter() Filter
func (Filter) MarshalLogObject ¶ added in v0.0.3
func (f Filter) MarshalLogObject(enc zapcore.ObjectEncoder) error
func (Filter) TagsExclude ¶ added in v0.0.3
TagsExclude returns the tags to exclude
func (Filter) TagsInclude ¶ added in v0.0.3
TagIncludes returns the tags to include
type Properties ¶ added in v0.0.3
type Properties []Property
func (Properties) Clean ¶ added in v0.0.3
func (p Properties) Clean() Properties
func (Properties) MarshalLogArray ¶ added in v0.0.3
func (p Properties) MarshalLogArray(enc zapcore.ArrayEncoder) error
type Property ¶
type Property struct {
ResourceId string `json:"-" gorm:"primaryKey"`
Name string `json:"name" gorm:"primaryKey"`
Value string `json:"value"`
}
func (Property) MarshalLogObject ¶ added in v0.0.3
func (p Property) MarshalLogObject(enc zapcore.ObjectEncoder) error
type Resource ¶
type Resource struct {
Id string `json:"id" gorm:"primaryKey"`
Region string `json:"region"`
Type string `json:"type"`
Tags Tags `json:"tags"`
Properties Properties `json:"properties"`
}
TODO store provider info in resource (needed when we can have more than one provider)
func (Resource) MarshalLogObject ¶ added in v0.0.3
func (r Resource) MarshalLogObject(enc zapcore.ObjectEncoder) error
type Tag ¶
type Tag struct {
ResourceId string `json:"-" gorm:"primaryKey"`
Key string `json:"key" gorm:"primaryKey"`
Value string `json:"value"`
//when used as a filter indicates to look for resources without this tag
Exclude bool `json:"-"`
}
func (Tag) MarshalLogObject ¶ added in v0.0.3
func (t Tag) MarshalLogObject(enc zapcore.ObjectEncoder) error
type Tags ¶ added in v0.0.3
type Tags []Tag
func (Tags) DistinctKeys ¶ added in v0.0.3
DistinctKeys returns number of distinct keys - if one tag is specified with two values - it counts as 1 distinct
func (Tags) MarshalLogArray ¶ added in v0.0.3
func (t Tags) MarshalLogArray(enc zapcore.ArrayEncoder) error
Click to show internal directories.
Click to hide internal directories.