publicname

package
v0.9.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForChild

func ForChild(parent kclient.Object, childName string) string

func Get

func Get(obj kclient.Object) string

func Split

func Split(name string) (string, string)

func SplitPodContainerName

func SplitPodContainerName(name string) (string, string)

Types

type Translator

type Translator struct {
	// contains filtered or unexported fields
}

func (*Translator) FromPublic

func (p *Translator) FromPublic(ctx context.Context, obj runtime.Object) (types.Object, error)

func (*Translator) FromPublicName

func (p *Translator) FromPublicName(ctx context.Context, namespace, name string) (string, string, error)

func (*Translator) ListOpts

func (p *Translator) ListOpts(ctx context.Context, namespace string, opts storage.ListOptions) (string, storage.ListOptions, error)

func (*Translator) NewPublic

func (p *Translator) NewPublic() types.Object

func (*Translator) NewPublicList

func (p *Translator) NewPublicList() types.ObjectList

func (*Translator) ToPublic

func (p *Translator) ToPublic(ctx context.Context, objs ...runtime.Object) (result []types.Object, _ error)

Jump to

Keyboard shortcuts

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