Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Policy ¶
type Policy struct { Source Source `json:"source"` Destination Destination `json:"destination"` }
type PolicyMapper ¶
type PolicyMapper interface { AsStorePolicy([]byte) ([]store.Policy, error) // marshal AsBytes([]store.Policy) ([]byte, error) // unmarshal }
func NewMapper ¶
func NewMapper(unmarshaler marshal.Unmarshaler, marshaler marshal.Marshaler, validator validator) PolicyMapper
type PolicySlice ¶
type PolicySlice []Policy
func (PolicySlice) Len ¶
func (s PolicySlice) Len() int
func (PolicySlice) Less ¶
func (s PolicySlice) Less(i, j int) bool
func (PolicySlice) Swap ¶
func (s PolicySlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.