types

package
v1.0.0-beta.58 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package types defines the basic types used by the kpt codebase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisplayPath

type DisplayPath string

DisplayPath represents os-agnostic Slash-separated path to the package directory on the filesystem relative to parent directory of root package on which the command is invoked. root package is defined as the package on which the command is invoked by user This is not guaranteed to be unique (e.g. in presence of symlinks) and should only be used for display purposes and is subject to change.

func (DisplayPath) Empty

func (u DisplayPath) Empty() bool

Empty returns true if the DisplayPath is empty

type UniquePath

type UniquePath string

UniquePath represents absolute unique OS-defined path to the package directory on the filesystem.

func (UniquePath) Empty

func (u UniquePath) Empty() bool

Empty returns true if the UniquePath is empty

func (UniquePath) RelativePath

func (u UniquePath) RelativePath() (string, error)

RelativePath returns the relative path to current working directory.

func (UniquePath) String

func (u UniquePath) String() string

String returns the absolute path in string format.

Jump to

Keyboard shortcuts

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