types

package
v0.0.0-...-0bc4b66 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	UID      string                 `json:"uid"`
	From     string                 `json:"from"`
	To       string                 `json:"to"`
	Relation string                 `json:"relation"`
	Metadata map[string]interface{} `json:"metadata,omitempty"`
}

Link is an API link

type Object

type Object struct {
	UID       string                 `json:"uid"`
	Name      string                 `json:"name"`
	Namespace string                 `json:"namespace"`
	Resource  Resource               `json:"resource"`
	Links     []Link                 `json:"links"`
	Metadata  map[string]interface{} `json:"metadata,omitempty"`
}

Object is an API object

type Resource

type Resource struct {
	Name       string                 `json:"name"`
	Kind       string                 `json:"kind"`
	Group      string                 `json:"group"`
	Version    string                 `json:"version"`
	Namespaced bool                   `json:"namespaced"`
	Metadata   map[string]interface{} `json:"metadata,omitempty"`
}

Resource is an API resource

Jump to

Keyboard shortcuts

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