meta

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package meta provides common meta types for config documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	MetaAPIVersion string `yaml:"apiVersion,omitempty"`
	MetaKind       string `yaml:"kind"`
}

Meta is a shared meta information for config documents.

func (Meta) APIVersion

func (m Meta) APIVersion() string

APIVersion implements config.Document interface.

func (Meta) Kind

func (m Meta) Kind() string

Kind implements config.Document interface.

type URL

type URL struct {
	*url.URL
}

URL wraps the URL with proper YAML marshal/unmarshal.

func (URL) MarshalYAML

func (u URL) MarshalYAML() (any, error)

MarshalYAML is a custom marshaller for `URL`.

func (*URL) UnmarshalYAML

func (u *URL) UnmarshalYAML(unmarshal func(any) error) error

UnmarshalYAML is a custom unmarshaller for `URL`.

Jump to

Keyboard shortcuts

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