trn

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidStringFormat invalid TRN string format
	ErrInvalidStringFormat = errors.New("invalid TRN string format")
)

Functions

This section is empty.

Types

type TRN

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

TRN is a Torpedo Resource Name

func New

func New(kind, name, id string) *TRN

New creates a new TRN instance

func NewFromString

func NewFromString(trn string) (*TRN, error)

NewFromString returns a TRN instance from the given string representation

func (*TRN) Equals

func (a *TRN) Equals(comp TRN) bool

Equals returns true if the given TRN is equals

func (*TRN) ID

func (a *TRN) ID() string

ID returns the resource id

func (*TRN) JSON

func (a *TRN) JSON() string

JSON returns the TRN json representation

func (*TRN) Kind

func (a *TRN) Kind() string

Kind returns the resource type

func (*TRN) Name

func (a *TRN) Name() string

Name returns the resource name

func (*TRN) String

func (a *TRN) String() string

String returns the TRN string representation

Jump to

Keyboard shortcuts

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