json_merge_patch

package
v0.0.0-...-3d8ba93 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const JsonMergePatchType = "json-merge-patch"

Variables

This section is empty.

Functions

func FromTrait

func FromTrait(from common.ApplicationTrait) (apis.Trait, error)

Types

type JSONMergePatchTrait

type JSONMergePatchTrait struct {
	Base       apis.TraitBase
	Properties JsonMergePatchSpec
}

func JsonMergePatch

func JsonMergePatch() *JSONMergePatchTrait

func (*JSONMergePatchTrait) Build

func (*JSONMergePatchTrait) DefType

func (j *JSONMergePatchTrait) DefType() string

func (*JSONMergePatchTrait) FromTrait

func (*JSONMergePatchTrait) Validate

func (o *JSONMergePatchTrait) Validate() error

Validate validates this JsonMergePatchSpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type JsonMergePatchSpec

type JsonMergePatchSpec struct {
}

JsonMergePatchSpec struct for JsonMergePatchSpec

func NewJsonMergePatchSpec

func NewJsonMergePatchSpec() *JsonMergePatchSpec

NewJsonMergePatchSpec is short for NewJsonMergePatchSpecWithDefault which instantiates a new JsonMergePatchSpec object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewJsonMergePatchSpecEmpty

func NewJsonMergePatchSpecEmpty() *JsonMergePatchSpec

NewJsonMergePatchSpecEmpty instantiates a new JsonMergePatchSpec object with no properties set. This constructor will not assign any default values to properties.

func NewJsonMergePatchSpecList

func NewJsonMergePatchSpecList(ps ...*JsonMergePatchSpec) []JsonMergePatchSpec

NewJsonMergePatchSpecs converts a list JsonMergePatchSpec pointers to objects. This is helpful when the SetJsonMergePatchSpec requires a list of objects

func NewJsonMergePatchSpecWith

func NewJsonMergePatchSpecWith() *JsonMergePatchSpec

NewJsonMergePatchSpecWith instantiates a new JsonMergePatchSpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewJsonMergePatchSpecWithDefault

func NewJsonMergePatchSpecWithDefault() *JsonMergePatchSpec

NewJsonMergePatchSpecWithDefault instantiates a new JsonMergePatchSpec object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (JsonMergePatchSpec) MarshalJSON

func (o JsonMergePatchSpec) MarshalJSON() ([]byte, error)

func (JsonMergePatchSpec) ToMap

func (o JsonMergePatchSpec) ToMap() (map[string]interface{}, error)

type NullableJsonMergePatchSpec

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

func NewNullableJsonMergePatchSpec

func NewNullableJsonMergePatchSpec(val *JsonMergePatchSpec) *NullableJsonMergePatchSpec

func (*NullableJsonMergePatchSpec) Get

func (*NullableJsonMergePatchSpec) IsSet

func (v *NullableJsonMergePatchSpec) IsSet() bool

func (NullableJsonMergePatchSpec) MarshalJSON

func (v NullableJsonMergePatchSpec) MarshalJSON() ([]byte, error)

func (*NullableJsonMergePatchSpec) Set

func (*NullableJsonMergePatchSpec) UnmarshalJSON

func (v *NullableJsonMergePatchSpec) UnmarshalJSON(src []byte) error

func (*NullableJsonMergePatchSpec) Unset

func (v *NullableJsonMergePatchSpec) Unset()

Jump to

Keyboard shortcuts

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