Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶ added in v0.1.2
Check iterates over all references in the yaml and checks if they are pinned to an absolute reference. It ignores "ratchet:exclude" nodes from the lookup.
func Pin ¶
func Pin(ctx context.Context, res resolver.Resolver, parser Parser, m *yaml.Node, concurrency uint64) error
Pin extracts all references from the given YAML document and resolves them using the given resolver, updating the associated YAML nodes.
func Unpin ¶
func Unpin(m *yaml.Node) error
Unpin removes any pinned references and updates the actual YAML to be the original reference, leaving any other comment intact. This effectively replaces the YAML with the cached comment, which could result in losing the current pin.
This function does not make any outbound network calls and relies solely on information in the document.
Types ¶
type CloudBuild ¶
type CloudBuild struct{}
func (*CloudBuild) Parse ¶
func (c *CloudBuild) Parse(m *yaml.Node) (*RefsList, error)
Parse pulls the Google Cloud Buidl refs from the document.