Documentation ¶
Index ¶
- func Check(ctx context.Context, parser Parser, nodes []*yaml.Node) error
- func List() []string
- func Pin(ctx context.Context, res resolver.Resolver, parser Parser, nodes []*yaml.Node, ...) error
- func Unpin(ctx context.Context, nodes []*yaml.Node) error
- func Upgrade(ctx context.Context, res resolver.Resolver, parser Parser, nodes []*yaml.Node, ...) error
- type Actions
- type CircleCI
- type CloudBuild
- type Drone
- type GitLabCI
- type Parser
- type RefsList
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, nodes []*yaml.Node, concurrency int64) error
Pin extracts all references from the given YAML document and resolves them using the given resolver, updating the associated YAML nodes.
func Unpin ¶
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{}
Click to show internal directories.
Click to hide internal directories.