assetdata

package
v1.30.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

This directory contains hashes for well-known dependencies of kubernetes / a kOps cluster.

We store the hashes here, rather than downloading them every time - it is a little more secure, and it is more efficient.

The yaml file structure is intended to mirror the asset structure used by the k8s project, e.g. by kpromo. However, this should be treated as an implementation detail.

Currently many hash files are manually curated. Some of them can be automatically generated, and we have scripts named generate-<foo>.sh to generate them.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHash

func GetHash(canonicalURL *url.URL) (*hashing.Hash, bool, error)

GetHash returns the stored hash for the well-known asset, looking it up by the canonicalURL. If found, it returns (hash, true, nil) If not found, it returns (nil, false, nil)

Types

This section is empty.

Directories

Path Synopsis
tools

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL