SYMBOL INDEX (537 symbols across 90 files) FILE: cmd/help/main.go function init (line 36) | func init() { function main (line 40) | func main() { FILE: internal/sbom/sbom.go function modulePackageName (line 26) | func modulePackageName(mod *debug.Module) string { function goRef (line 32) | func goRef(mod *debug.Module) string { function massageGoVersionM (line 53) | func massageGoVersionM(b []byte) ([]byte, error) { FILE: internal/sbom/spdx.go type qualifier (line 36) | type qualifier struct function ociRef (line 43) | func ociRef(path string, imgDigest v1.Hash, qual ...qualifier) string { function h1ToSHA256 (line 56) | func h1ToSHA256(s string) string { constant dateFormat (line 67) | dateFormat = "2006-01-02T15:04:05Z" function GenerateImageSPDX (line 69) | func GenerateImageSPDX(koVersion string, mod []byte, img oci.SignedImage... function extractDate (line 202) | func extractDate(sii oci.SignedImageIndex) (*time.Time, error) { function GenerateIndexSPDX (line 229) | func GenerateIndexSPDX(koVersion string, sii oci.SignedImageIndex) ([]by... function ociPackageName (line 359) | func ociPackageName(d v1.Hash) string { function starterDocument (line 363) | func starterDocument(koVersion string, date time.Time, d v1.Hash) (Docum... function addBaseImage (line 379) | func addBaseImage(doc *Document, annotations map[string]string, h v1.Has... constant NOASSERTION (line 462) | NOASSERTION = "NOASSERTION" constant Version (line 463) | Version = "SPDX-2.3" type Document (line 466) | type Document struct type CreationInfo (line 480) | type CreationInfo struct type Package (line 486) | type Package struct type PackageVerificationCode (line 506) | type PackageVerificationCode struct type File (line 511) | type File struct type Checksum (line 523) | type Checksum struct type ExternalRef (line 528) | type ExternalRef struct type Relationship (line 534) | type Relationship struct type ExternalDocumentRef (line 540) | type ExternalDocumentRef struct FILE: main.go function main (line 26) | func main() { FILE: pkg/build/build.go type Interface (line 26) | type Interface interface type Result (line 48) | type Result interface FILE: pkg/build/cache.go type diffIDToDescriptor (line 34) | type diffIDToDescriptor type buildIDToDiffID (line 35) | type buildIDToDiffID type layerCache (line 37) | type layerCache struct method get (line 45) | func (c *layerCache) get(ctx context.Context, file string, miss layerF... method getMeta (line 72) | func (c *layerCache) getMeta(ctx context.Context, file string) (*v1.Ha... method put (line 109) | func (c *layerCache) put(ctx context.Context, file string, layer v1.La... method readDiffToDesc (line 164) | func (c *layerCache) readDiffToDesc(file string) (diffIDToDescriptor, ... method readBuildToDiff (line 183) | func (c *layerCache) readBuildToDiff(file string) (buildIDToDiffID, er... type layerFactory (line 43) | type layerFactory function getBuildID (line 202) | func getBuildID(ctx context.Context, file string) (string, error) { FILE: pkg/build/config.go type StringArray (line 24) | type StringArray method UnmarshalYAML (line 27) | func (a *StringArray) UnmarshalYAML(unmarshal func(any) error) error { type FlagArray (line 42) | type FlagArray method UnmarshalYAML (line 45) | func (a *FlagArray) UnmarshalYAML(unmarshal func(any) error) error { type Config (line 64) | type Config struct FILE: pkg/build/future.go function newFuture (line 21) | func newFuture(work func() (Result, error)) *future { type result (line 40) | type result struct type future (line 45) | type future struct method Get (line 53) | func (f *future) Get() (Result, error) { FILE: pkg/build/future_test.go function makeImage (line 23) | func makeImage() (Result, error) { function digest (line 27) | func digest(t *testing.T, img Result) string { function TestSameFutureSameImage (line 35) | func TestSameFutureSameImage(t *testing.T) { function TestDiffFutureDiffImage (line 55) | func TestDiffFutureDiffImage(t *testing.T) { FILE: pkg/build/gobuild.go constant defaultAppFilename (line 59) | defaultAppFilename = "ko-app" constant defaultGoBin (line 61) | defaultGoBin = "go" constant goBinPathEnv (line 62) | goBinPathEnv = "KO_GO_PATH" type GetBase (line 66) | type GetBase type buildContext (line 69) | type buildContext struct type builder (line 79) | type builder type sbomber (line 81) | type sbomber type platformMatcher (line 83) | type platformMatcher struct method matches (line 1469) | func (pm *platformMatcher) matches(base *v1.Platform) bool { type gobuild (line 88) | type gobuild struct method qualifyLocalImport (line 203) | func (g *gobuild) qualifyLocalImport(importpath string) (string, error) { method QualifyImport (line 223) | func (g *gobuild) QualifyImport(importpath string) (string, error) { method IsSupportedReference (line 241) | func (g *gobuild) IsSupportedReference(s string) error { method kodataPath (line 669) | func (g *gobuild) kodataPath(ref reference) (string, error) { method tarKoData (line 791) | func (g *gobuild) tarKoData(ref reference, platform *v1.Platform) (*by... method configForImportPath (line 936) | func (g *gobuild) configForImportPath(ip string) Config { method useDebugging (line 963) | func (g gobuild) useDebugging(platform v1.Platform) bool { method buildOne (line 967) | func (g *gobuild) buildOne(ctx context.Context, refStr string, base v1... method Build (line 1273) | func (g *gobuild) Build(ctx context.Context, s string) (Result, error) { method buildAll (line 1321) | func (g *gobuild) buildAll(ctx context.Context, ref string, baseRef na... type Option (line 114) | type Option type gobuildOpener (line 116) | type gobuildOpener struct method Open (line 139) | func (gbo *gobuildOpener) Open() (Interface, error) { function NewGo (line 187) | func NewGo(ctx context.Context, dir string, options ...Option) (Interfac... function getGoarm (line 263) | func getGoarm(platform v1.Platform) (string, error) { function getGoBinary (line 283) | func getGoBinary() string { function doesPlatformSupportDebugging (line 290) | func doesPlatformSupportDebugging(platform v1.Platform) bool { function getDelve (line 300) | func getDelve(ctx context.Context, platform v1.Platform) (string, error) { function build (line 363) | func build(ctx context.Context, buildCtx buildContext) (string, error) { function goenv (line 425) | func goenv(ctx context.Context) (map[string]string, error) { function goversionm (line 461) | func goversionm(ctx context.Context, file string, appPath string, appFil... function spdx (line 492) | func spdx(version string) sbomber { function writeSBOM (line 530) | func writeSBOM(sbom []byte, appFileName, dir, ext string) error { function buildEnv (line 546) | func buildEnv(platform v1.Platform, osEnv, buildEnv []string) ([]string,... function appFilename (line 575) | func appFilename(importpath string) string { constant userOwnerAndGroupSID (line 591) | userOwnerAndGroupSID = "AQAAgBQAAAAkAAAAAAAAAAAAAAABAgAAAAAABSAAAAAhAgAA... function tarBinary (line 593) | func tarBinary(name, binary string, platform *v1.Platform, opts *layerOp... constant kodataRoot (line 688) | kodataRoot = "/var/run/ko" function writeDirToTar (line 691) | func writeDirToTar(tw *tar.Writer, name string, modTime time.Time) error { function writeFileToTar (line 704) | func writeFileToTar(tw *tar.Writer, name, evalPath string, size int64, m... function walkRecursive (line 740) | func walkRecursive(tw *tar.Writer, root, chroot string, creationTime v1.... function createTemplateData (line 832) | func createTemplateData(ctx context.Context, buildCtx buildContext) (map... function applyTemplating (line 878) | func applyTemplating(list []string, data map[string]any) ([]string, erro... function createBuildArgs (line 897) | func createBuildArgs(ctx context.Context, buildCtx buildContext) ([]stri... type layerOptions (line 1235) | type layerOptions struct function buildLayer (line 1239) | func buildLayer(appPath, file string, platform *v1.Platform, layerMediaT... function updatePath (line 1253) | func updatePath(cf *v1.ConfigFile, appPath string) { function parseSpec (line 1451) | func parseSpec(spec []string) (*platformMatcher, error) { FILE: pkg/build/gobuild_test.go function repoRootDir (line 46) | func repoRootDir() (string, error) { function TestGoBuildQualifyImport (line 56) | func TestGoBuildQualifyImport(t *testing.T) { function TestGoBuildIsSupportedRef (line 142) | func TestGoBuildIsSupportedRef(t *testing.T) { function TestGoBuildIsSupportedRefWithModules (line 177) | func TestGoBuildIsSupportedRefWithModules(t *testing.T) { function TestBuildEnv (line 218) | func TestBuildEnv(t *testing.T) { function TestGoEnv (line 303) | func TestGoEnv(t *testing.T) { function TestCreateTemplateData (line 312) | func TestCreateTemplateData(t *testing.T) { function TestBuildConfig (line 427) | func TestBuildConfig(t *testing.T) { function nilGetBase (line 557) | func nilGetBase(context.Context, string) (name.Reference, Result, error) { constant wantSBOM (line 561) | wantSBOM = "This is our fake SBOM" function fauxSBOM (line 564) | func fauxSBOM(context.Context, string, string, string, oci.SignedEntity,... function writeTempFile (line 569) | func writeTempFile(_ context.Context, buildCtx buildContext) (string, er... function TestGoBuildNoKoData (line 586) | func TestGoBuildNoKoData(t *testing.T) { function validateImage (line 681) | func validateImage(t *testing.T, img oci.SignedImage, baseLayers int64, ... function TestGoBuild (line 915) | func TestGoBuild(t *testing.T) { function TestGoBuild_Defaults (line 1026) | func TestGoBuild_Defaults(t *testing.T) { function TestGoBuild_ConfigOverrideDefaults (line 1071) | func TestGoBuild_ConfigOverrideDefaults(t *testing.T) { function TestGoBuildWithKOCACHE (line 1120) | func TestGoBuildWithKOCACHE(t *testing.T) { function TestGoBuildWithoutSBOM (line 1159) | func TestGoBuildWithoutSBOM(t *testing.T) { function TestGoBuildIndex (line 1197) | func TestGoBuildIndex(t *testing.T) { function TestNestedIndex (line 1269) | func TestNestedIndex(t *testing.T) { function TestGoarm (line 1303) | func TestGoarm(t *testing.T) { function TestMatchesPlatformSpec (line 1370) | func TestMatchesPlatformSpec(t *testing.T) { function TestGoBuildConsistentMediaTypes (line 1506) | func TestGoBuildConsistentMediaTypes(t *testing.T) { function TestDebugger (line 1580) | func TestDebugger(t *testing.T) { FILE: pkg/build/gobuilds.go type gobuilds (line 26) | type gobuilds struct method QualifyImport (line 72) | func (g *gobuilds) QualifyImport(importpath string) (string, error) { method IsSupportedReference (line 85) | func (g *gobuilds) IsSupportedReference(importpath string) error { method Build (line 90) | func (g *gobuilds) Build(ctx context.Context, importpath string) (Resu... method builder (line 96) | func (g *gobuilds) builder(importpath string) builderWithConfig { type builderWithConfig (line 38) | type builderWithConfig struct function NewGobuilds (line 44) | func NewGobuilds(ctx context.Context, workingDirectory string, buildConf... function relativePath (line 138) | func relativePath(baseDir string, importpath string) (string, error) { FILE: pkg/build/gobuilds_test.go function Test_gobuilds (line 25) | func Test_gobuilds(t *testing.T) { function Test_relativePath (line 132) | func Test_relativePath(t *testing.T) { FILE: pkg/build/layer.go type lazyLayer (line 25) | type lazyLayer struct method Digest (line 36) | func (l *lazyLayer) Digest() (v1.Hash, error) { method DiffID (line 40) | func (l *lazyLayer) DiffID() (v1.Hash, error) { method Size (line 44) | func (l *lazyLayer) Size() (int64, error) { method MediaType (line 48) | func (l *lazyLayer) MediaType() (types.MediaType, error) { method Compressed (line 53) | func (l *lazyLayer) Compressed() (io.ReadCloser, error) { method Uncompressed (line 62) | func (l *lazyLayer) Uncompressed() (io.ReadCloser, error) { method compute (line 70) | func (l *lazyLayer) compute() (v1.Layer, error) { FILE: pkg/build/limit.go type Limiter (line 24) | type Limiter struct method QualifyImport (line 33) | func (l *Limiter) QualifyImport(ip string) (string, error) { method IsSupportedReference (line 38) | func (l *Limiter) IsSupportedReference(ip string) error { method Build (line 43) | func (l *Limiter) Build(ctx context.Context, ip string) (Result, error) { function NewLimiter (line 55) | func NewLimiter(b Interface, n int) *Limiter { FILE: pkg/build/limit_test.go type sleeper (line 25) | type sleeper struct method QualifyImport (line 30) | func (*sleeper) QualifyImport(ip string) (string, error) { method IsSupportedReference (line 35) | func (*sleeper) IsSupportedReference(_ string) error { method Build (line 40) | func (*sleeper) Build(_ context.Context, _ string) (Result, error) { function TestLimiter (line 45) | func TestLimiter(t *testing.T) { FILE: pkg/build/options.go function WithBaseImages (line 25) | func WithBaseImages(gb GetBase) Option { function WithCreationTime (line 34) | func WithCreationTime(t v1.Time) Option { function WithKoDataCreationTime (line 43) | func WithKoDataCreationTime(t v1.Time) Option { function WithDisabledOptimizations (line 52) | func WithDisabledOptimizations() Option { function WithDisabledSBOM (line 60) | func WithDisabledSBOM() Option { function WithTrimpath (line 69) | func WithTrimpath(v bool) Option { function WithConfig (line 81) | func WithConfig(buildConfigs map[string]Config) Option { function WithDefaultEnv (line 90) | func WithDefaultEnv(env []string) Option { function WithDefaultFlags (line 98) | func WithDefaultFlags(flags []string) Option { function WithDefaultLdflags (line 106) | func WithDefaultLdflags(ldflags []string) Option { function WithPlatforms (line 123) | func WithPlatforms(platforms ...string) Option { function WithLabel (line 135) | func WithLabel(k, v string) Option { function WithAnnotation (line 146) | func WithAnnotation(k, v string) Option { function WithUser (line 157) | func WithUser(user string) Option { function withBuilder (line 166) | func withBuilder(b builder) Option { function WithSPDX (line 175) | func WithSPDX(version string) Option { function withSBOMber (line 184) | func withSBOMber(sbom sbomber) Option { function WithJobs (line 192) | func WithJobs(jobs int) Option { function WithSBOMDir (line 200) | func WithSBOMDir(dir string) Option { function WithDebugger (line 207) | func WithDebugger() Option { FILE: pkg/build/recorder.go type Recorder (line 23) | type Recorder struct method QualifyImport (line 33) | func (r *Recorder) QualifyImport(ip string) (string, error) { method IsSupportedReference (line 38) | func (r *Recorder) IsSupportedReference(ip string) error { method Build (line 43) | func (r *Recorder) Build(ctx context.Context, ip string) (Result, erro... FILE: pkg/build/recorder_test.go type fake (line 24) | type fake struct method QualifyImport (line 32) | func (r *fake) QualifyImport(ip string) (string, error) { return ip, n... method IsSupportedReference (line 35) | func (r *fake) IsSupportedReference(ip string) error { return r.isr(ip) } method Build (line 38) | func (r *fake) Build(_ context.Context, ip string) (Result, error) { r... function TestISRPassThrough (line 40) | func TestISRPassThrough(t *testing.T) { function TestBuildRecording (line 74) | func TestBuildRecording(t *testing.T) { FILE: pkg/build/shared.go type Caching (line 25) | type Caching struct method Build (line 45) | func (c *Caching) Build(ctx context.Context, ip string) (Result, error) { method QualifyImport (line 68) | func (c *Caching) QualifyImport(ip string) (string, error) { method IsSupportedReference (line 73) | func (c *Caching) IsSupportedReference(ip string) error { method Invalidate (line 78) | func (c *Caching) Invalidate(ip string) { function NewCaching (line 37) | func NewCaching(inner Interface) (*Caching, error) { FILE: pkg/build/shared_test.go type slowbuild (line 25) | type slowbuild struct method QualifyImport (line 32) | func (sb *slowbuild) QualifyImport(ip string) (string, error) { return... method IsSupportedReference (line 34) | func (sb *slowbuild) IsSupportedReference(string) error { return nil } method Build (line 36) | func (sb *slowbuild) Build(context.Context, string) (Result, error) { function TestCaching (line 41) | func TestCaching(t *testing.T) { FILE: pkg/build/strict.go constant StrictScheme (line 21) | StrictScheme = "ko://" type reference (line 23) | type reference struct method IsStrict (line 35) | func (r reference) IsStrict() bool { method Path (line 39) | func (r reference) Path() string { method String (line 43) | func (r reference) String() string { function newRef (line 28) | func newRef(s string) reference { FILE: pkg/build/strict_test.go function TestStrictReference (line 19) | func TestStrictReference(t *testing.T) { FILE: pkg/caps/caps.go type Mask (line 28) | type Mask function Parse (line 36) | func Parse(s string) (Mask, error) { function allKnownCaps (line 51) | func allKnownCaps() Mask { type Flags (line 105) | type Flags constant FlagEffective (line 110) | FlagEffective Flags = 1 function XattrBytes (line 116) | func XattrBytes(permitted, inheritable Mask, flags Flags) ([]byte, error) { type FileCaps (line 143) | type FileCaps struct method ToXattrBytes (line 211) | func (fc *FileCaps) ToXattrBytes() ([]byte, error) { function NewFileCaps (line 151) | func NewFileCaps(terms ...string) (*FileCaps, error) { FILE: pkg/caps/caps_test.go function TestParse (line 23) | func TestParse(t *testing.T) { type ddTest (line 55) | type ddTest struct function TestDd (line 61) | func TestDd(t *testing.T) { FILE: pkg/caps/new_file_caps_test.go function TestNewFileCaps (line 23) | func TestNewFileCaps(t *testing.T) { FILE: pkg/commands/apply.go function addApply (line 29) | func addApply(topLevel *cobra.Command) { FILE: pkg/commands/build.go function addBuild (line 25) | func addBuild(topLevel *cobra.Command) { FILE: pkg/commands/cache.go type imageCache (line 38) | type imageCache struct method get (line 69) | func (i *imageCache) get(ctx context.Context, ref name.Reference, miss... method newLazyIndex (line 220) | func (i *imageCache) newLazyIndex(ref name.Reference, idx v1.ImageInde... method newLazyImage (line 240) | func (i *imageCache) newLazyImage(ref name.Reference, img v1.Image, mi... function newCache (line 50) | func newCache(puller *remote.Puller) (*imageCache, error) { type lazyIndex (line 272) | type lazyIndex struct method MediaType (line 281) | func (i *lazyIndex) MediaType() (types.MediaType, error) { method Digest (line 285) | func (i *lazyIndex) Digest() (v1.Hash, error) { method Size (line 289) | func (i *lazyIndex) Size() (int64, error) { method IndexManifest (line 293) | func (i *lazyIndex) IndexManifest() (*v1.IndexManifest, error) { method RawManifest (line 297) | func (i *lazyIndex) RawManifest() ([]byte, error) { method Image (line 301) | func (i *lazyIndex) Image(h v1.Hash) (v1.Image, error) { method ImageIndex (line 315) | func (i *lazyIndex) ImageIndex(h v1.Hash) (v1.ImageIndex, error) { type lazyImage (line 329) | type lazyImage struct method Layers (line 342) | func (i *lazyImage) Layers() ([]v1.Layer, error) { method MediaType (line 366) | func (i *lazyImage) MediaType() (types.MediaType, error) { method Digest (line 370) | func (i *lazyImage) Digest() (v1.Hash, error) { method Size (line 374) | func (i *lazyImage) Size() (int64, error) { method ConfigName (line 378) | func (i *lazyImage) ConfigName() (v1.Hash, error) { method ConfigFile (line 382) | func (i *lazyImage) ConfigFile() (*v1.ConfigFile, error) { method RawConfigFile (line 386) | func (i *lazyImage) RawConfigFile() ([]byte, error) { method Manifest (line 390) | func (i *lazyImage) Manifest() (*v1.Manifest, error) { method RawManifest (line 394) | func (i *lazyImage) RawManifest() ([]byte, error) { method LayerByDigest (line 398) | func (i *lazyImage) LayerByDigest(h v1.Hash) (v1.Layer, error) { method LayerByDiffID (line 422) | func (i *lazyImage) LayerByDiffID(h v1.Hash) (v1.Layer, error) { type lazyLayer (line 431) | type lazyLayer struct method Digest (line 440) | func (l *lazyLayer) Digest() (v1.Hash, error) { method DiffID (line 444) | func (l *lazyLayer) DiffID() (v1.Hash, error) { method Size (line 448) | func (l *lazyLayer) Size() (int64, error) { method MediaType (line 452) | func (l *lazyLayer) MediaType() (types.MediaType, error) { method Compressed (line 456) | func (l *lazyLayer) Compressed() (io.ReadCloser, error) { method Uncompressed (line 470) | func (l *lazyLayer) Uncompressed() (io.ReadCloser, error) { FILE: pkg/commands/commands.go function AddKubeCommands (line 27) | func AddKubeCommands(topLevel *cobra.Command) { function isKubectlAvailable (line 38) | func isKubectlAvailable() bool { FILE: pkg/commands/config.go function getBaseImage (line 55) | func getBaseImage(bo *options.BuildOptions) build.GetBase { function getTimeFromEnv (line 147) | func getTimeFromEnv(env string) (*v1.Time, error) { function getCreationTime (line 160) | func getCreationTime() (*v1.Time, error) { function getKoDataCreationTime (line 164) | func getKoDataCreationTime() (*v1.Time, error) { type baseFactory (line 168) | type baseFactory FILE: pkg/commands/config_test.go function TestOverrideDefaultBaseImageUsingBuildOption (line 27) | func TestOverrideDefaultBaseImageUsingBuildOption(t *testing.T) { FILE: pkg/commands/create.go function addCreate (line 29) | func addCreate(topLevel *cobra.Command) { FILE: pkg/commands/delete.go type runCmd (line 26) | type runCmd function passthru (line 30) | func passthru(command string) runCmd { function addDelete (line 55) | func addDelete(topLevel *cobra.Command) { FILE: pkg/commands/options/build.go constant configDefaultBaseImage (line 34) | configDefaultBaseImage = "cgr.dev/chainguard/static:latest" type BuildOptions (line 38) | type BuildOptions struct method LoadConfig (line 110) | func (bo *BuildOptions) LoadConfig() error { function AddBuildOptions (line 87) | func AddBuildOptions(cmd *cobra.Command, bo *BuildOptions) { function yamlUnmarshallerHookFunc (line 208) | func yamlUnmarshallerHookFunc(_ reflect.Type, to reflect.Type, data any)... function createBuildConfigMap (line 235) | func createBuildConfigMap(workingDirectory string, configs []build.Confi... FILE: pkg/commands/options/build_test.go function TestDefaultBaseImage (line 28) | func TestDefaultBaseImage(t *testing.T) { function TestDefaultPlatformsAll (line 43) | func TestDefaultPlatformsAll(t *testing.T) { function TestDefaultEnv (line 71) | func TestDefaultEnv(t *testing.T) { function TestDefaultFlags (line 80) | func TestDefaultFlags(t *testing.T) { function TestDefaultLdFlags (line 89) | func TestDefaultLdFlags(t *testing.T) { function TestBuildConfigWithWorkingDirectoryAndDirAndMain (line 98) | func TestBuildConfigWithWorkingDirectoryAndDirAndMain(t *testing.T) { function TestCreateBuildConfigs (line 116) | func TestCreateBuildConfigs(t *testing.T) { function TestAddBuildOptionsSetsDefaultsForNonFlagOptions (line 151) | func TestAddBuildOptionsSetsDefaultsForNonFlagOptions(t *testing.T) { function TestOverrideConfigPath (line 160) | func TestOverrideConfigPath(t *testing.T) { FILE: pkg/commands/options/filestuff.go type FilenameOptions (line 26) | type FilenameOptions struct function AddFileArg (line 31) | func AddFileArg(cmd *cobra.Command, fo *FilenameOptions) { function EnumerateFiles (line 40) | func EnumerateFiles(fo *FilenameOptions) chan string { FILE: pkg/commands/options/namer_test.go function TestMakeNamer (line 24) | func TestMakeNamer(t *testing.T) { function foreachTestCaseMakeNamer (line 37) | func foreachTestCaseMakeNamer(fn func(tc testMakeNamerCase)) { function testMakeNamerCases (line 43) | func testMakeNamerCases() []testMakeNamerCase { type testMakeNamerCase (line 68) | type testMakeNamerCase struct FILE: pkg/commands/options/publish.go type PublishOptions (line 29) | type PublishOptions struct function AddPublishArg (line 75) | func AddPublishArg(cmd *cobra.Command, po *PublishOptions) { function packageWithMD5 (line 109) | func packageWithMD5(base, importpath string) string { function preserveImportPath (line 115) | func preserveImportPath(base, importpath string) string { function baseImportPaths (line 119) | func baseImportPaths(base, importpath string) string { function bareDockerRepo (line 123) | func bareDockerRepo(base, _ string) string { function MakeNamer (line 127) | func MakeNamer(po *PublishOptions) publish.Namer { FILE: pkg/commands/options/selector.go type SelectorOptions (line 22) | type SelectorOptions struct function AddSelectorArg (line 26) | func AddSelectorArg(cmd *cobra.Command, so *SelectorOptions) { FILE: pkg/commands/options/testdata/paths/app/cmd/foo/main.go function main (line 19) | func main() { FILE: pkg/commands/options/validate.go constant bareBaseFlagsWarning (line 24) | bareBaseFlagsWarning = `WARNING! constant localFlagsWarning (line 34) | localFlagsWarning = `WARNING! function Validate (line 44) | func Validate(po *PublishOptions, bo *BuildOptions) error { FILE: pkg/commands/publisher.go function PublishImages (line 27) | func PublishImages(ctx context.Context, importpaths []string, pub publis... function publishImages (line 31) | func publishImages(ctx context.Context, importpaths []string, pub publis... FILE: pkg/commands/publisher_test.go function TestPublishImages (line 29) | func TestPublishImages(t *testing.T) { function sampleAppRelDir (line 98) | func sampleAppRelDir() (string, error) { FILE: pkg/commands/resolve.go function addResolve (line 26) | func addResolve(topLevel *cobra.Command) { FILE: pkg/commands/resolver.go function ua (line 40) | func ua() string { function gobuildOptions (line 47) | func gobuildOptions(bo *options.BuildOptions) ([]build.Option, error) { function NewBuilder (line 146) | func NewBuilder(ctx context.Context, bo *options.BuildOptions) (build.In... function makeBuilder (line 150) | func makeBuilder(ctx context.Context, bo *options.BuildOptions) (*build.... function NewPublisher (line 180) | func NewPublisher(po *options.PublishOptions) (publish.Interface, error) { function makePublisher (line 184) | func makePublisher(po *options.PublishOptions) (publish.Interface, error) { type nopPublisher (line 289) | type nopPublisher struct method Publish (line 296) | func (n nopPublisher) Publish(_ context.Context, br build.Result, s st... method Close (line 315) | func (n nopPublisher) Close() error { return nil } type resolvedFuture (line 318) | type resolvedFuture function ResolveFilesToWriter (line 320) | func ResolveFilesToWriter( function resolveFile (line 415) | func resolveFile( function unique (line 487) | func unique(ss []string) []string { FILE: pkg/commands/resolver_test.go type erroringClient (line 67) | type erroringClient struct method Ping (line 74) | func (m *erroringClient) Ping(context.Context, client.PingOptions) (cl... method ImageLoad (line 77) | func (m *erroringClient) ImageLoad(context.Context, io.Reader, ...clie... method ImageTag (line 80) | func (m *erroringClient) ImageTag(context.Context, client.ImageTagOpti... method ImageInspect (line 84) | func (m *erroringClient) ImageInspect(_ context.Context, _ string, _ .... function TestResolveMultiDocumentYAMLs (line 88) | func TestResolveMultiDocumentYAMLs(t *testing.T) { function TestResolveMultiDocumentYAMLsWithSelector (line 142) | func TestResolveMultiDocumentYAMLsWithSelector(t *testing.T) { function TestNewBuilder (line 172) | func TestNewBuilder(t *testing.T) { function TestNewPublisherCanPublish (line 243) | func TestNewPublisherCanPublish(t *testing.T) { function registryServerWithImage (line 329) | func registryServerWithImage(namespace string) (*httptest.Server, error) { function mustRepository (line 342) | func mustRepository(s string) name.Repository { function mustDigest (line 350) | func mustDigest(img v1.Image) v1.Hash { function mustRandom (line 358) | func mustRandom() v1.Image { function yamlToTmpFile (line 366) | func yamlToTmpFile(t *testing.T, yaml []byte) string { FILE: pkg/commands/root.go function New (line 28) | func New() *cobra.Command { FILE: pkg/commands/run.go function addRun (line 31) | func addRun(topLevel *cobra.Command) { function unparsedDashes (line 153) | func unparsedDashes() int { FILE: pkg/commands/version.go function addVersion (line 28) | func addVersion(topLevel *cobra.Command) { function version (line 43) | func version() string { FILE: pkg/internal/git/clone.go function Clone (line 46) | func Clone(ctx context.Context, dir string, repoURL string) error { FILE: pkg/internal/git/errors.go type ErrDirty (line 58) | type ErrDirty struct method Error (line 62) | func (e ErrDirty) Error() string { FILE: pkg/internal/git/git.go type runConfig (line 47) | type runConfig struct function run (line 54) | func run(ctx context.Context, cfg runConfig) (string, error) { function clean (line 80) | func clean(output string, err error) (string, error) { function cleanAllLines (line 89) | func cleanAllLines(output string, err error) ([]string, error) { FILE: pkg/internal/git/info.go type Info (line 50) | type Info struct method TemplateValue (line 60) | func (i Info) TemplateValue() map[string]any { function GetInfo (line 80) | func GetInfo(ctx context.Context, dir string) (Info, error) { function isRepo (line 132) | func isRepo(ctx context.Context, dir string) bool { function checkDirty (line 141) | func checkDirty(ctx context.Context, dir string) error { function getBranch (line 152) | func getBranch(ctx context.Context, dir string) (string, error) { function getCommitDate (line 159) | func getCommitDate(ctx context.Context, dir string) (time.Time, error) { function getShortCommit (line 178) | func getShortCommit(ctx context.Context, dir string) (string, error) { function getFullCommit (line 185) | func getFullCommit(ctx context.Context, dir string) (string, error) { function getTag (line 192) | func getTag(ctx context.Context, dir string, excluding []string) (string... function gitDescribe (line 203) | func gitDescribe(ctx context.Context, dir, ref string, excluding []strin... function filterOut (line 219) | func filterOut(tags []string, exclude []string) string { FILE: pkg/internal/git/info_test.go constant fakeGitURL (line 50) | fakeGitURL = "git@github.com:foo/bar.git" function TestNotAGitFolder (line 52) | func TestNotAGitFolder(t *testing.T) { function TestSingleCommit (line 61) | func TestSingleCommit(t *testing.T) { function TestBranch (line 82) | func TestBranch(t *testing.T) { function TestNewRepository (line 104) | func TestNewRepository(t *testing.T) { function TestNoTags (line 115) | func TestNoTags(t *testing.T) { function TestDirty (line 135) | func TestDirty(t *testing.T) { function TestValidState (line 161) | func TestValidState(t *testing.T) { function TestGitNotInPath (line 176) | func TestGitNotInPath(t *testing.T) { function requireEmpty (line 185) | func requireEmpty(t *testing.T, tpl map[string]any) { FILE: pkg/internal/gittesting/git.go function GitInit (line 49) | func GitInit(t *testing.T, dir string) { function GitRemoteAdd (line 60) | func GitRemoteAdd(t *testing.T, dir, url string) { function GitCommit (line 68) | func GitCommit(t *testing.T, dir, msg string) { function GitTag (line 76) | func GitTag(t *testing.T, dir, tag string) { function GitAdd (line 84) | func GitAdd(t *testing.T, dir string) { function fakeGit (line 91) | func fakeGit(dir string, args ...string) (string, error) { function GitCheckoutBranch (line 104) | func GitCheckoutBranch(t *testing.T, dir, name string) { function gitRun (line 111) | func gitRun(dir string, args ...string) (string, error) { FILE: pkg/internal/gittesting/git_test.go function TestGit (line 41) | func TestGit(t *testing.T) { FILE: pkg/internal/testing/daemon.go type MockDaemon (line 26) | type MockDaemon struct method Ping (line 34) | func (m *MockDaemon) Ping(context.Context, client.PingOptions) (client... method ImageLoad (line 37) | func (m *MockDaemon) ImageLoad(context.Context, io.Reader, ...client.I... method ImageTag (line 41) | func (m *MockDaemon) ImageTag(_ context.Context, opt client.ImageTagOp... method ImageInspect (line 49) | func (m *MockDaemon) ImageInspect(context.Context, string, ...client.I... FILE: pkg/internal/testing/fixed.go type fixedBuild (line 29) | type fixedBuild struct method QualifyImport (line 40) | func (f *fixedBuild) QualifyImport(ip string) (string, error) { method IsSupportedReference (line 45) | func (f *fixedBuild) IsSupportedReference(s string) error { method Build (line 54) | func (f *fixedBuild) Build(_ context.Context, s string) (build.Result,... function NewFixedBuild (line 35) | func NewFixedBuild(entries map[string]build.Result) build.Interface { type fixedPublish (line 62) | type fixedPublish struct method Publish (line 74) | func (f *fixedPublish) Publish(_ context.Context, _ build.Result, s st... method Close (line 87) | func (f *fixedPublish) Close() error { function NewFixedPublish (line 69) | func NewFixedPublish(base name.Repository, entries map[string]v1.Hash) p... function ComputeDigest (line 91) | func ComputeDigest(base name.Repository, ref string, h v1.Hash) string { FILE: pkg/internal/testing/fixed_test.go function TestFixedPublish (line 27) | func TestFixedPublish(t *testing.T) { function TestFixedBuild (line 64) | func TestFixedBuild(t *testing.T) { FILE: pkg/publish/daemon.go constant LocalDomain (line 32) | LocalDomain = "ko.local" type demon (line 37) | type demon struct method getOpts (line 82) | func (d *demon) getOpts(ctx context.Context) []daemon.Option { method Publish (line 90) | func (d *demon) Publish(ctx context.Context, br build.Result, s string... method Close (line 168) | func (d *demon) Close() error { type DaemonOption (line 45) | type DaemonOption function WithLocalDomain (line 48) | func WithLocalDomain(domain string) DaemonOption { function WithDockerClient (line 58) | func WithDockerClient(client daemon.Client) DaemonOption { function NewDaemon (line 68) | func NewDaemon(namer Namer, tags []string, opts ...DaemonOption) (Interf... FILE: pkg/publish/daemon_test.go function TestDaemon (line 28) | func TestDaemon(t *testing.T) { function TestDaemonTags (line 48) | func TestDaemonTags(t *testing.T) { function TestDaemonDomain (line 81) | func TestDaemonDomain(t *testing.T) { FILE: pkg/publish/default.go type defalt (line 41) | type defalt struct method pushResult (line 149) | func (d *defalt) pushResult(ctx context.Context, tag name.Tag, br buil... method Publish (line 226) | func (d *defalt) Publish(ctx context.Context, br build.Result, s strin... method Close (line 283) | func (d *defalt) Close() error { type Option (line 54) | type Option type defaultOpener (line 56) | type defaultOpener struct method Open (line 84) | func (do *defaultOpener) Open() (Interface, error) { type Namer (line 71) | type Namer function identity (line 78) | func identity(base, in string) string { return path.Join(base, in) } constant latestTag (line 82) | latestTag = "latest" function NewDefault (line 124) | func NewDefault(base string, options ...Option) (Interface, error) { FILE: pkg/publish/default_test.go function TestDefault (line 45) | func TestDefault(t *testing.T) { function md5Hash (line 88) | func md5Hash(base, s string) string { function TestDefaultWithCustomNamer (line 95) | func TestDefaultWithCustomNamer(t *testing.T) { function TestDefaultWithTags (line 128) | func TestDefaultWithTags(t *testing.T) { function TestDefaultWithReleaseTag (line 176) | func TestDefaultWithReleaseTag(t *testing.T) { FILE: pkg/publish/future.go function newFuture (line 23) | func newFuture(work func() (name.Reference, error)) *future { type result (line 42) | type result struct type future (line 47) | type future struct method Get (line 55) | func (f *future) Get() (name.Reference, error) { FILE: pkg/publish/future_test.go function makeRef (line 25) | func makeRef() (name.Reference, error) { function TestSameFutureSameReference (line 37) | func TestSameFutureSameReference(t *testing.T) { function TestDiffFutureDiffReference (line 57) | func TestDiffFutureDiffReference(t *testing.T) { FILE: pkg/publish/kind.go constant KindDomain (line 32) | KindDomain = "kind.local" type kindPublisher (line 35) | type kindPublisher struct method Publish (line 51) | func (t *kindPublisher) Publish(ctx context.Context, br build.Result, ... method Close (line 128) | func (t *kindPublisher) Close() error { function NewKindPublisher (line 42) | func NewKindPublisher(base string, namer Namer, tags []string) Interface { FILE: pkg/publish/kind/write.go constant clusterNameEnvKey (line 35) | clusterNameEnvKey = "KIND_CLUSTER_NAME" type provider (line 38) | type provider interface function Tag (line 48) | func Tag(ctx context.Context, src, dest name.Tag) error { function Write (line 62) | func Write(ctx context.Context, tag name.Tag, img v1.Image) error { function onEachNode (line 88) | func onEachNode(f func(nodes.Node) error) error { function getNodes (line 104) | func getNodes() ([]nodes.Node, error) { FILE: pkg/publish/kind/write_test.go function TestWrite (line 31) | func TestWrite(t *testing.T) { function TestTag (line 66) | func TestTag(t *testing.T) { function TestFailWithNoNodes (line 101) | func TestFailWithNoNodes(t *testing.T) { function TestFailCommands (line 130) | func TestFailCommands(t *testing.T) { type fakeProvider (line 164) | type fakeProvider struct method ListInternalNodes (line 168) | func (f *fakeProvider) ListInternalNodes(string) ([]nodes.Node, error) { type fakeNode (line 172) | type fakeNode struct method CommandContext (line 177) | func (f *fakeNode) CommandContext(_ context.Context, cmd string, args ... method String (line 186) | func (f *fakeNode) String() string { method Command (line 191) | func (f *fakeNode) Command(string, ...string) exec.Cmd { return nil } method Role (line 192) | func (f *fakeNode) Role() (string, error) { return "", nil } method IP (line 193) | func (f *fakeNode) IP() (string, string, error) { return "", ""... method SerialLogs (line 194) | func (f *fakeNode) SerialLogs(io.Writer) error { return nil } type fakeCmd (line 196) | type fakeCmd struct method Run (line 202) | func (f *fakeCmd) Run() error { method SetStdin (line 210) | func (f *fakeCmd) SetStdin(stdin io.Reader) exec.Cmd { method SetEnv (line 216) | func (f *fakeCmd) SetEnv(...string) exec.Cmd { return f } method SetStdout (line 217) | func (f *fakeCmd) SetStdout(io.Writer) exec.Cmd { return f } method SetStderr (line 218) | func (f *fakeCmd) SetStderr(io.Writer) exec.Cmd { return f } FILE: pkg/publish/layout.go type LayoutPublisher (line 30) | type LayoutPublisher struct method writeResult (line 39) | func (l *LayoutPublisher) writeResult(br build.Result) (layout.Path, e... method Publish (line 78) | func (l *LayoutPublisher) Publish(_ context.Context, br build.Result, ... method Close (line 99) | func (l *LayoutPublisher) Close() error { function NewLayout (line 35) | func NewLayout(p string) Interface { FILE: pkg/publish/layout_test.go function TestLayout (line 26) | func TestLayout(t *testing.T) { FILE: pkg/publish/multi.go function MultiPublisher (line 30) | func MultiPublisher(publishers ...Interface) Interface { type multiPublisher (line 34) | type multiPublisher struct method Publish (line 39) | func (p *multiPublisher) Publish(ctx context.Context, br build.Result,... method Close (line 53) | func (p *multiPublisher) Close() (err error) { FILE: pkg/publish/multi_test.go function TestMulti (line 27) | func TestMulti(t *testing.T) { function TestMulti_Zero (line 63) | func TestMulti_Zero(t *testing.T) { FILE: pkg/publish/options.go type staticKeychain (line 24) | type staticKeychain struct method Resolve (line 28) | func (s staticKeychain) Resolve(authn.Resource) (authn.Authenticator, ... function WithTransport (line 34) | func WithTransport(t http.RoundTripper) Option { function WithUserAgent (line 43) | func WithUserAgent(ua string) Option { function WithAuth (line 52) | func WithAuth(a authn.Authenticator) Option { function WithAuthFromKeychain (line 61) | func WithAuthFromKeychain(keys authn.Keychain) Option { function WithNamer (line 70) | func WithNamer(n Namer) Option { function WithTags (line 78) | func WithTags(tags []string) Option { function WithTagOnly (line 86) | func WithTagOnly(tagOnly bool) Option { function Insecure (line 93) | func Insecure(b bool) Option { function WithJobs (line 112) | func WithJobs(jobs int) Option { FILE: pkg/publish/publish.go type Interface (line 25) | type Interface interface FILE: pkg/publish/recorder.go type recorder (line 32) | type recorder struct method Publish (line 51) | func (r *recorder) Publish(ctx context.Context, br build.Result, ref s... method Close (line 90) | func (r *recorder) Close() error { function NewRecorder (line 43) | func NewRecorder(inner Interface, name string) (Interface, error) { FILE: pkg/publish/recorder_test.go type cbPublish (line 30) | type cbPublish struct method Publish (line 36) | func (sp *cbPublish) Publish(ctx context.Context, br build.Result, ref... method Close (line 40) | func (sp *cbPublish) Close() error { function TestRecorder (line 44) | func TestRecorder(t *testing.T) { FILE: pkg/publish/shared.go type caching (line 27) | type caching struct method Publish (line 54) | func (c *caching) Publish(ctx context.Context, br build.Result, ref st... method Close (line 79) | func (c *caching) Close() error { type entry (line 36) | type entry struct function NewCaching (line 46) | func NewCaching(inner Interface) (Interface, error) { FILE: pkg/publish/shared_test.go type slowpublish (line 27) | type slowpublish struct method Publish (line 34) | func (sp *slowpublish) Publish(context.Context, build.Result, string) ... method Close (line 39) | func (sp *slowpublish) Close() error { function TestCaching (line 43) | func TestCaching(t *testing.T) { FILE: pkg/publish/tarball.go type tar (line 29) | type tar struct method Publish (line 49) | func (t *tar) Publish(_ context.Context, br build.Result, s string) (n... method Close (line 95) | func (t *tar) Close() error { function NewTarball (line 38) | func NewTarball(file, base string, namer Namer, tags []string) Interface { FILE: pkg/publish/tarball_test.go function TestTarball (line 29) | func TestTarball(t *testing.T) { FILE: pkg/resolve/resolve.go function ImageReferences (line 34) | func ImageReferences(ctx context.Context, docs []*yaml.Node, builder bui... function refsFromDoc (line 89) | func refsFromDoc(doc *yaml.Node) yit.Iterator { FILE: pkg/resolve/resolve_test.go function TestYAMLArrays (line 54) | func TestYAMLArrays(t *testing.T) { function TestYAMLMaps (line 121) | func TestYAMLMaps(t *testing.T) { type object (line 189) | type object struct function TestYAMLObject (line 196) | func TestYAMLObject(t *testing.T) { function TestStrict (line 253) | func TestStrict(t *testing.T) { function TestIsSupportedReferenceError (line 275) | func TestIsSupportedReferenceError(t *testing.T) { function mustRandom (line 295) | func mustRandom() build.Result { function mustRepository (line 303) | func mustRepository(s string) name.Repository { function mustDigest (line 311) | func mustDigest(img build.Result) v1.Hash { FILE: pkg/resolve/selector.go function MatchesSelector (line 31) | func MatchesSelector(doc *yaml.Node, selector labels.Selector) (bool, er... function docKind (line 52) | func docKind(doc *yaml.Node) (string, error) { function objMatchesSelector (line 82) | func objMatchesSelector(doc *yaml.Node, selector labels.Selector) bool { function listMatchesSelector (line 110) | func listMatchesSelector(doc *yaml.Node, selector labels.Selector) (bool... type labelsNode (line 145) | type labelsNode struct method Get (line 151) | func (n labelsNode) Get(label string) (value string) { method Has (line 160) | func (n labelsNode) Has(label string) bool { method Lookup (line 169) | func (n labelsNode) Lookup(label string) (value string, exists bool) { FILE: pkg/resolve/selector_test.go constant webPod (line 35) | webPod = `apiVersion: v1 constant dbPod (line 43) | dbPod = `apiVersion: v1 constant podNoLabel (line 51) | podNoLabel = `apiVersion: v1 constant podList (line 56) | podList = `apiVersion: v1 constant webPodList (line 75) | webPodList = `apiVersion: v1 constant dbPodList (line 88) | dbPodList = `apiVersion: v1 constant podListNoLabel (line 101) | podListNoLabel = `apiVersion: v1 function TestMatchesSelector (line 118) | func TestMatchesSelector(t *testing.T) { function TestSelectorFailure (line 225) | func TestSelectorFailure(t *testing.T) { function selector (line 264) | func selector(s string) labels.Selector { function normalizeYAML (line 272) | func normalizeYAML(t *testing.T, yuml string) string { function yamlToStr (line 277) | func yamlToStr(t *testing.T, node *yaml.Node) string { function strToYAML (line 286) | func strToYAML(t *testing.T, yuml string) *yaml.Node { function TestLabelsNode (line 297) | func TestLabelsNode(t *testing.T) { FILE: test/build-configs/bar/cmd/main.go function main (line 19) | func main() { FILE: test/build-configs/caps/cmd/main.go function permittedCaps (line 25) | func permittedCaps() (uint64, error) { function main (line 39) | func main() { FILE: test/build-configs/foo/cmd/main.go function main (line 19) | func main() { FILE: test/build-configs/toolexec/cmd/main.go function main (line 19) | func main() { FILE: test/main.go function main (line 40) | func main() {