Documentation
¶
Index ¶
- func CheckAction(t interface{}, targets ...Action) (_ bool, err error)
- func CheckActor(t interface{}, targets ...Actor) (_ bool, err error)
- func CheckResource(t interface{}, targets ...Resource) (_ bool, err error)
- func CheckSource(s interface{}, targets ...Source) (_ bool, err error)
- func CheckStatus(s interface{}, targets ...Status) (_ bool, err error)
- func ValidAction(t interface{}) bool
- func ValidActor(t interface{}) bool
- func ValidProtocol(s interface{}) bool
- func ValidResource(t interface{}) bool
- func ValidSource(s interface{}) bool
- func ValidStatus(s interface{}) bool
- type Action
- type Actor
- type Direction
- type Protocol
- type Resource
- type Source
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAction ¶ added in v1.1.0
Returns true if the action is equal to one of the target actions. Any parse errors for the action are returned.
func CheckActor ¶ added in v1.1.0
Returns true if the actor is equal to one of the target actors. Any parse errors for the actor are returned.
func CheckResource ¶ added in v1.1.0
Returns true if the resource is equal to one of the target resources. Any parse errors for the resource are returned.
func CheckSource ¶
func CheckStatus ¶
func ValidAction ¶ added in v1.1.0
func ValidAction(t interface{}) bool
Returns true if the provided action is valid (e.g. parseable), false otherwise.
func ValidActor ¶ added in v1.1.0
func ValidActor(t interface{}) bool
Returns true if the provided actor is valid (e.g. parseable), false otherwise.
func ValidProtocol ¶
func ValidProtocol(s interface{}) bool
func ValidResource ¶ added in v1.1.0
func ValidResource(t interface{}) bool
Returns true if the provided resource is valid (e.g. parseable), false otherwise.
func ValidSource ¶
func ValidSource(s interface{}) bool
func ValidStatus ¶
func ValidStatus(s interface{}) bool
Types ¶
type Action ¶ added in v1.1.0
type Action uint8
Action is the type of change made in the database for a ComplianceAuditLog
func ParseAction ¶ added in v1.1.0
Parse the action from the provided value.
func (Action) MarshalJSON ¶ added in v1.1.0
func (*Action) UnmarshalJSON ¶ added in v1.1.0
type Actor ¶ added in v1.1.0
type Actor uint8
Actor allows us to decode the ActorID in a ComplianceAuditLog and is human-readable
func ParseActor ¶ added in v1.1.0
Parse the actor from the provided value.
func (Actor) MarshalJSON ¶ added in v1.1.0
func (*Actor) UnmarshalJSON ¶ added in v1.1.0
type Direction ¶
type Direction uint8
func ParseDirection ¶
func (Direction) MarshalJSON ¶
func (*Direction) UnmarshalJSON ¶
type Protocol ¶
type Protocol uint8
func ParseProtocol ¶
func (Protocol) MarshalJSON ¶
func (*Protocol) UnmarshalJSON ¶
type Resource ¶ added in v1.1.0
type Resource uint8
Resource allows us to decode the ResourceID in a ComplianceAuditLog and is human-readable
func ParseResource ¶ added in v1.1.0
Parse the resource from the provided value.
func (Resource) MarshalJSON ¶ added in v1.1.0
func (*Resource) UnmarshalJSON ¶ added in v1.1.0
type Source ¶
type Source uint8
func ParseSource ¶
func (Source) MarshalJSON ¶
func (*Source) UnmarshalJSON ¶
type Status ¶
type Status uint8