Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDecoder ¶
type FileDecoder struct {
// contains filtered or unexported fields
}
func NewFileDecoder ¶
func NewFileDecoder(path string) *FileDecoder
func (FileDecoder) Decode ¶
func (d FileDecoder) Decode(out interface{}) (err error)
Decode - Decode a file
type HTTPDecoder ¶
type HTTPDecoder struct {
// contains filtered or unexported fields
}
func NewHTTPDecoder ¶
func NewHTTPDecoder(url string) *HTTPDecoder
NewHTTPDecoder - Creates new HTTP decoder
func (HTTPDecoder) Decode ¶
func (d HTTPDecoder) Decode(out interface{}) (err error)
Decode - decode HTTP
type Shape ¶
type Shape struct { // Schema - String of authorization model. Schema string `yaml:"schema"` // Tuples - Authorization data Tuples []string `yaml:"relationships"` // Assertions - // can user:1 push repository:2 => true Assertions []map[string]bool `yaml:"assertions"` }
Shape - Is a file shape.
Click to show internal directories.
Click to hide internal directories.