extras

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 3 Imported by: 0

README

Influx CLI - extra files supporting HTTP client

The .go files in this module are generated using OpenAPITools/openapi-generator, based off of our public API documentation.

See https://github.com/OpenAPITools/openapi-generator/issues/2360 - enums are not generated by default if they are defined inline. Even if they were generated by default, there appears to be no way to turn off the validation, which would be bad if the client started receiving new string values that were unrecognized (using an old client with a newer InfluxDB instance).

So the go files in this directory are generated from some enums where we want to know the list of 'known' valid values, but we don't want to always validate on marshal/unmarshal.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

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

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

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

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

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

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

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

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

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

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

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

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

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

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

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

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

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

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableResourceEnumCloud

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

func NewNullableResourceEnumCloud

func NewNullableResourceEnumCloud(val *ResourceEnumCloud) *NullableResourceEnumCloud

func (NullableResourceEnumCloud) Get

func (NullableResourceEnumCloud) IsSet

func (v NullableResourceEnumCloud) IsSet() bool

func (NullableResourceEnumCloud) MarshalJSON

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

func (*NullableResourceEnumCloud) Set

func (*NullableResourceEnumCloud) UnmarshalJSON

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

func (*NullableResourceEnumCloud) Unset

func (v *NullableResourceEnumCloud) Unset()

type NullableResourceEnumOSS

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

func NewNullableResourceEnumOSS

func NewNullableResourceEnumOSS(val *ResourceEnumOSS) *NullableResourceEnumOSS

func (NullableResourceEnumOSS) Get

func (NullableResourceEnumOSS) IsSet

func (v NullableResourceEnumOSS) IsSet() bool

func (NullableResourceEnumOSS) MarshalJSON

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

func (*NullableResourceEnumOSS) Set

func (*NullableResourceEnumOSS) UnmarshalJSON

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

func (*NullableResourceEnumOSS) Unset

func (v *NullableResourceEnumOSS) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

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

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

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

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type ResourceEnumCloud

type ResourceEnumCloud string

ResourceEnumCloud The type of resource. In a `permission`, applies the permission to all resources of this type.

const (
	RESOURCEENUMCLOUD_AUTHORIZATIONS         ResourceEnumCloud = "authorizations"
	RESOURCEENUMCLOUD_BUCKETS                ResourceEnumCloud = "buckets"
	RESOURCEENUMCLOUD_DASHBOARDS             ResourceEnumCloud = "dashboards"
	RESOURCEENUMCLOUD_ORGS                   ResourceEnumCloud = "orgs"
	RESOURCEENUMCLOUD_TASKS                  ResourceEnumCloud = "tasks"
	RESOURCEENUMCLOUD_TELEGRAFS              ResourceEnumCloud = "telegrafs"
	RESOURCEENUMCLOUD_USERS                  ResourceEnumCloud = "users"
	RESOURCEENUMCLOUD_VARIABLES              ResourceEnumCloud = "variables"
	RESOURCEENUMCLOUD_SECRETS                ResourceEnumCloud = "secrets"
	RESOURCEENUMCLOUD_LABELS                 ResourceEnumCloud = "labels"
	RESOURCEENUMCLOUD_VIEWS                  ResourceEnumCloud = "views"
	RESOURCEENUMCLOUD_DOCUMENTS              ResourceEnumCloud = "documents"
	RESOURCEENUMCLOUD_NOTIFICATION_RULES     ResourceEnumCloud = "notificationRules"
	RESOURCEENUMCLOUD_NOTIFICATION_ENDPOINTS ResourceEnumCloud = "notificationEndpoints"
	RESOURCEENUMCLOUD_CHECKS                 ResourceEnumCloud = "checks"
	RESOURCEENUMCLOUD_DBRP                   ResourceEnumCloud = "dbrp"
	RESOURCEENUMCLOUD_ANNOTATIONS            ResourceEnumCloud = "annotations"
	RESOURCEENUMCLOUD_FLOWS                  ResourceEnumCloud = "flows"
	RESOURCEENUMCLOUD_FUNCTIONS              ResourceEnumCloud = "functions"
	RESOURCEENUMCLOUD_SUBSCRIPTIONS          ResourceEnumCloud = "subscriptions"
)

List of ResourceEnumCloud

func ResourceEnumCloudValues

func ResourceEnumCloudValues() []ResourceEnumCloud

func (ResourceEnumCloud) Ptr

Ptr returns reference to ResourceEnumCloud value

func (*ResourceEnumCloud) UnmarshalJSON

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

type ResourceEnumOSS

type ResourceEnumOSS string

ResourceEnumOSS The type of resource. In a `permission`, applies the permission to all resources of this type.

const (
	RESOURCEENUMOSS_AUTHORIZATIONS         ResourceEnumOSS = "authorizations"
	RESOURCEENUMOSS_BUCKETS                ResourceEnumOSS = "buckets"
	RESOURCEENUMOSS_DASHBOARDS             ResourceEnumOSS = "dashboards"
	RESOURCEENUMOSS_ORGS                   ResourceEnumOSS = "orgs"
	RESOURCEENUMOSS_TASKS                  ResourceEnumOSS = "tasks"
	RESOURCEENUMOSS_TELEGRAFS              ResourceEnumOSS = "telegrafs"
	RESOURCEENUMOSS_USERS                  ResourceEnumOSS = "users"
	RESOURCEENUMOSS_VARIABLES              ResourceEnumOSS = "variables"
	RESOURCEENUMOSS_SECRETS                ResourceEnumOSS = "secrets"
	RESOURCEENUMOSS_LABELS                 ResourceEnumOSS = "labels"
	RESOURCEENUMOSS_VIEWS                  ResourceEnumOSS = "views"
	RESOURCEENUMOSS_DOCUMENTS              ResourceEnumOSS = "documents"
	RESOURCEENUMOSS_NOTIFICATION_RULES     ResourceEnumOSS = "notificationRules"
	RESOURCEENUMOSS_NOTIFICATION_ENDPOINTS ResourceEnumOSS = "notificationEndpoints"
	RESOURCEENUMOSS_CHECKS                 ResourceEnumOSS = "checks"
	RESOURCEENUMOSS_DBRP                   ResourceEnumOSS = "dbrp"
	RESOURCEENUMOSS_ANNOTATIONS            ResourceEnumOSS = "annotations"
	RESOURCEENUMOSS_SOURCES                ResourceEnumOSS = "sources"
	RESOURCEENUMOSS_SCRAPERS               ResourceEnumOSS = "scrapers"
	RESOURCEENUMOSS_NOTEBOOKS              ResourceEnumOSS = "notebooks"
	RESOURCEENUMOSS_REMOTES                ResourceEnumOSS = "remotes"
	RESOURCEENUMOSS_REPLICATIONS           ResourceEnumOSS = "replications"
	RESOURCEENUMOSS_INSTANCE               ResourceEnumOSS = "instance"
)

List of ResourceEnumOSS

func ResourceEnumOSSValues

func ResourceEnumOSSValues() []ResourceEnumOSS

func (ResourceEnumOSS) Ptr

Ptr returns reference to ResourceEnumOSS value

func (*ResourceEnumOSS) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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