 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package hook is the 1.0.0 hook configuration structure.
Index ¶
Constants ¶
      View Source
      
  const Version = "1.0.0"
    Version is the hook configuration version defined in this package.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
	Version string     `json:"version"`
	Hook    rspec.Hook `json:"hook"`
	When    When       `json:"when"`
	Stages  []string   `json:"stages"`
}
    Hook is the hook configuration structure.
type When ¶
type When struct {
	Always        *bool             `json:"always,omitempty"`
	Annotations   map[string]string `json:"annotations,omitempty"`
	Commands      []string          `json:"commands,omitempty"`
	HasBindMounts *bool             `json:"hasBindMounts,omitempty"`
	// Or enables any-of matching.
	//
	// Deprecated: this property is for is backwards-compatibility with
	// 0.1.0 hooks.  It will be removed when we drop support for them.
	Or bool `json:"-"`
}
    When holds hook-injection conditions.
 Click to show internal directories. 
   Click to hide internal directories.