types

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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