urn

package
v0.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Namespace = "opni"

Variables

View Source
var ErrInvalidURN = errors.New("invalid URN")

Functions

This section is empty.

Types

type OpniURN

type OpniURN struct {
	Namespace string
	Type      UpdateType
	Strategy  string
	Component string
}

func NewOpniURN

func NewOpniURN(updateType UpdateType, strategy, component string) OpniURN

func ParseString

func ParseString(urn string) (OpniURN, error)

func (OpniURN) String

func (u OpniURN) String() string

func (OpniURN) Validate

func (u OpniURN) Validate() error

type UpdateType

type UpdateType string
const (
	Plugin UpdateType = "plugin"
	Agent  UpdateType = "agent"
)

func AllUpdateTypes

func AllUpdateTypes() []UpdateType

Jump to

Keyboard shortcuts

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