types

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 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 Slash-separated path to the package directory on the filesytem relative to current working directory. 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