Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func Run(opts *RunOptions) error
 - func SetDebug(debug bool)
 - func SetLogger(logger log_Logger)
 - type Check
 - type ContentValue
 - func (c *ContentValue) Attr(name string) (Value, error)
 - func (c *ContentValue) AttrNames() []string
 - func (c *ContentValue) Freeze()
 - func (c *ContentValue) Hash() (uint32, error)
 - func (c *ContentValue) List(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (Value, error)
 - func (c *ContentValue) Read(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (Value, error)
 - func (c *ContentValue) RealPath(path string, what Check) (string, error)
 - func (c *ContentValue) String() string
 - func (c *ContentValue) Truth() starlark.Bool
 - func (c *ContentValue) Type() string
 - func (c *ContentValue) Write(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (Value, error)
 
- type RunOptions
 - type Value
 
Constants ¶
      View Source
      
  
const ( CheckNone = 0 CheckRead = 1 << iota CheckWrite )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(opts *RunOptions) error
Types ¶
type ContentValue ¶
type ContentValue struct {
	RootDir    string
	CheckRead  func(path string) error
	CheckWrite func(path string) error
	// OnWrite has to be called after a successful write with the entry resulting
	// from the write.
	OnWrite func(entry *fsutil.Entry) error
}
    func (*ContentValue) AttrNames ¶
func (c *ContentValue) AttrNames() []string
func (*ContentValue) Freeze ¶
func (c *ContentValue) Freeze()
func (*ContentValue) Hash ¶
func (c *ContentValue) Hash() (uint32, error)
func (*ContentValue) RealPath ¶
func (c *ContentValue) RealPath(path string, what Check) (string, error)
func (*ContentValue) String ¶
func (c *ContentValue) String() string
func (*ContentValue) Truth ¶
func (c *ContentValue) Truth() starlark.Bool
func (*ContentValue) Type ¶
func (c *ContentValue) Type() string
 Click to show internal directories. 
   Click to hide internal directories.