model

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFResource

type CFResource struct {
	GUID      string     `json:"guid"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt *time.Time `json:"updated_at"`
	Metadata  Metadata   `json:"metadata"`
}

type CFResourceState

type CFResourceState int
const (
	CFResourceStateUnknown CFResourceState = iota
	CFResourceStateReady
)

type IncludedResource

type IncludedResource struct {
	Type     string
	Resource any
}

func (IncludedResource) SelectJSONPaths

func (r IncludedResource) SelectJSONPaths(paths ...string) (IncludedResource, error)

type Metadata

type Metadata struct {
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Relationship

type Relationship struct {
	GUID string `json:"guid"`
}

type ToOneRelationship

type ToOneRelationship struct {
	//+kubebuilder:validation:Optional
	Data Relationship `json:"data"`
}

Directories

Path Synopsis
Package services contains models for the CF Services API
Package services contains models for the CF Services API

Jump to

Keyboard shortcuts

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