hcpv2

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Index

Constants

View Source
const (
	GroupName = "hcp"
	Version   = "v2"

	LinkKind           = "Link"
	TelemetryStateKind = "TelemetryState"
)

Variables

View Source
var (
	HcpConfigMarshaler   = &protojson.MarshalOptions{}
	HcpConfigUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	AccessLevel_name = map[int32]string{
		0: "ACCESS_LEVEL_UNSPECIFIED",
		1: "ACCESS_LEVEL_GLOBAL_READ_WRITE",
		2: "ACCESS_LEVEL_GLOBAL_READ_ONLY",
	}
	AccessLevel_value = map[string]int32{
		"ACCESS_LEVEL_UNSPECIFIED":       0,
		"ACCESS_LEVEL_GLOBAL_READ_WRITE": 1,
		"ACCESS_LEVEL_GLOBAL_READ_ONLY":  2,
	}
)

Enum value maps for AccessLevel.

View Source
var (
	LinkMarshaler   = &protojson.MarshalOptions{}
	LinkUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	LinkType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         LinkKind,
	}

	TelemetryStateType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         TelemetryStateKind,
	}
)
View Source
var (
	TelemetryStateMarshaler   = &protojson.MarshalOptions{}
	TelemetryStateUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var File_pbhcp_v2_hcp_config_proto protoreflect.FileDescriptor
View Source
var File_pbhcp_v2_link_proto protoreflect.FileDescriptor
View Source
var File_pbhcp_v2_telemetry_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessLevel

type AccessLevel int32
const (
	AccessLevel_ACCESS_LEVEL_UNSPECIFIED       AccessLevel = 0
	AccessLevel_ACCESS_LEVEL_GLOBAL_READ_WRITE AccessLevel = 1
	AccessLevel_ACCESS_LEVEL_GLOBAL_READ_ONLY  AccessLevel = 2
)

func (AccessLevel) Descriptor

func (AccessLevel) Enum

func (x AccessLevel) Enum() *AccessLevel

func (AccessLevel) EnumDescriptor deprecated

func (AccessLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccessLevel.Descriptor instead.

func (AccessLevel) Number

func (x AccessLevel) Number() protoreflect.EnumNumber

func (AccessLevel) String

func (x AccessLevel) String() string

func (AccessLevel) Type

type HCPConfig

type HCPConfig struct {

	// AuthUrl is the URL which will be used to authenticate.
	AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
	// ApiAddress is the address (<hostname>[:port]) of the HCP api.
	ApiAddress string `protobuf:"bytes,2,opt,name=api_address,json=apiAddress,proto3" json:"api_address,omitempty"`
	// ScadaAddress is the address (<hostname>[:port]) of the HCP SCADA endpoint.
	ScadaAddress string `protobuf:"bytes,3,opt,name=scada_address,json=scadaAddress,proto3" json:"scada_address,omitempty"`
	// TlsInsecureSkipVerify if true will ignore server name verification when making HTTPS requests
	TlsInsecureSkipVerify bool `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

HCPConfig is used to configure the HCP SDK for communicating with the HashiCorp Cloud Platform. All configuration is optional with default values provided by the SDK.

func (*HCPConfig) DeepCopy

func (in *HCPConfig) DeepCopy() *HCPConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPConfig. Required by controller-gen.

func (*HCPConfig) DeepCopyInterface

func (in *HCPConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HCPConfig. Required by controller-gen.

func (*HCPConfig) DeepCopyInto

func (in *HCPConfig) DeepCopyInto(out *HCPConfig)

DeepCopyInto supports using HCPConfig within kubernetes types, where deepcopy-gen is used.

func (*HCPConfig) Descriptor deprecated

func (*HCPConfig) Descriptor() ([]byte, []int)

Deprecated: Use HCPConfig.ProtoReflect.Descriptor instead.

func (*HCPConfig) GetApiAddress

func (x *HCPConfig) GetApiAddress() string

func (*HCPConfig) GetAuthUrl

func (x *HCPConfig) GetAuthUrl() string

func (*HCPConfig) GetScadaAddress

func (x *HCPConfig) GetScadaAddress() string

func (*HCPConfig) GetTlsInsecureSkipVerify

func (x *HCPConfig) GetTlsInsecureSkipVerify() bool

func (*HCPConfig) MarshalBinary

func (msg *HCPConfig) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*HCPConfig) MarshalJSON

func (this *HCPConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HCPConfig

func (*HCPConfig) ProtoMessage

func (*HCPConfig) ProtoMessage()

func (*HCPConfig) ProtoReflect

func (x *HCPConfig) ProtoReflect() protoreflect.Message

func (*HCPConfig) Reset

func (x *HCPConfig) Reset()

func (*HCPConfig) String

func (x *HCPConfig) String() string

func (*HCPConfig) UnmarshalBinary

func (msg *HCPConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*HCPConfig) UnmarshalJSON

func (this *HCPConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HCPConfig

type Link struct {
	ResourceId    string      `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	ClientId      string      `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret  string      `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	HcpClusterUrl string      `protobuf:"bytes,4,opt,name=hcp_cluster_url,json=hcpClusterUrl,proto3" json:"hcp_cluster_url,omitempty"`
	AccessLevel   AccessLevel `` /* 136-byte string literal not displayed */
	HcpConfig     *HCPConfig  `protobuf:"bytes,6,opt,name=hcp_config,json=hcpConfig,proto3" json:"hcp_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) DeepCopy

func (in *Link) DeepCopy() *Link

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Link. Required by controller-gen.

func (*Link) DeepCopyInterface

func (in *Link) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Link. Required by controller-gen.

func (*Link) DeepCopyInto

func (in *Link) DeepCopyInto(out *Link)

DeepCopyInto supports using Link within kubernetes types, where deepcopy-gen is used.

func (*Link) Descriptor deprecated

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetAccessLevel

func (x *Link) GetAccessLevel() AccessLevel

func (*Link) GetClientId

func (x *Link) GetClientId() string

func (*Link) GetClientSecret

func (x *Link) GetClientSecret() string

func (*Link) GetHcpClusterUrl

func (x *Link) GetHcpClusterUrl() string

func (*Link) GetHcpConfig

func (x *Link) GetHcpConfig() *HCPConfig

func (*Link) GetResourceId

func (x *Link) GetResourceId() string

func (*Link) MarshalBinary

func (msg *Link) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Link) MarshalJSON

func (this *Link) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Link

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

func (*Link) UnmarshalBinary

func (msg *Link) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*Link) UnmarshalJSON

func (this *Link) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Link

type MetricsConfig

type MetricsConfig struct {

	// Endpoint is the HTTPS address and path to forward metrics to
	Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// IncludeList contains patterns to match against metric names. Only matched metrics are forwarded.
	IncludeList []string `protobuf:"bytes,2,rep,name=include_list,json=includeList,proto3" json:"include_list,omitempty"`
	// Labels contains key value pairs that are associated with all metrics collected and fowarded.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Disabled toggles metric forwarding. If true, metric forwarding will stop until disabled is set to false.
	Disabled bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

MetricsConfig configures metric specific collection details

func (*MetricsConfig) DeepCopy

func (in *MetricsConfig) DeepCopy() *MetricsConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsConfig. Required by controller-gen.

func (*MetricsConfig) DeepCopyInterface

func (in *MetricsConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new MetricsConfig. Required by controller-gen.

func (*MetricsConfig) DeepCopyInto

func (in *MetricsConfig) DeepCopyInto(out *MetricsConfig)

DeepCopyInto supports using MetricsConfig within kubernetes types, where deepcopy-gen is used.

func (*MetricsConfig) Descriptor deprecated

func (*MetricsConfig) Descriptor() ([]byte, []int)

Deprecated: Use MetricsConfig.ProtoReflect.Descriptor instead.

func (*MetricsConfig) GetDisabled

func (x *MetricsConfig) GetDisabled() bool

func (*MetricsConfig) GetEndpoint

func (x *MetricsConfig) GetEndpoint() string

func (*MetricsConfig) GetIncludeList

func (x *MetricsConfig) GetIncludeList() []string

func (*MetricsConfig) GetLabels

func (x *MetricsConfig) GetLabels() map[string]string

func (*MetricsConfig) MarshalBinary

func (msg *MetricsConfig) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*MetricsConfig) MarshalJSON

func (this *MetricsConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for MetricsConfig

func (*MetricsConfig) ProtoMessage

func (*MetricsConfig) ProtoMessage()

func (*MetricsConfig) ProtoReflect

func (x *MetricsConfig) ProtoReflect() protoreflect.Message

func (*MetricsConfig) Reset

func (x *MetricsConfig) Reset()

func (*MetricsConfig) String

func (x *MetricsConfig) String() string

func (*MetricsConfig) UnmarshalBinary

func (msg *MetricsConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*MetricsConfig) UnmarshalJSON

func (this *MetricsConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for MetricsConfig

type ProxyConfig

type ProxyConfig struct {

	// HttpProxy configures the http proxy to use for HTTP (non-TLS) requests.
	HttpProxy string `protobuf:"bytes,1,opt,name=http_proxy,json=httpProxy,proto3" json:"http_proxy,omitempty"`
	// HttpsProxy configures the http proxy to use for HTTPS (TLS) requests.
	HttpsProxy string `protobuf:"bytes,2,opt,name=https_proxy,json=httpsProxy,proto3" json:"https_proxy,omitempty"`
	// NoProxy can be configured to include domains which should NOT be forwarded through the configured http proxy
	NoProxy []string `protobuf:"bytes,3,rep,name=no_proxy,json=noProxy,proto3" json:"no_proxy,omitempty"`
	// contains filtered or unexported fields
}

ProxyConfig describes configuration for forwarding requests through an http proxy

func (*ProxyConfig) DeepCopy

func (in *ProxyConfig) DeepCopy() *ProxyConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyConfig. Required by controller-gen.

func (*ProxyConfig) DeepCopyInterface

func (in *ProxyConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ProxyConfig. Required by controller-gen.

func (*ProxyConfig) DeepCopyInto

func (in *ProxyConfig) DeepCopyInto(out *ProxyConfig)

DeepCopyInto supports using ProxyConfig within kubernetes types, where deepcopy-gen is used.

func (*ProxyConfig) Descriptor deprecated

func (*ProxyConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.

func (*ProxyConfig) GetHttpProxy

func (x *ProxyConfig) GetHttpProxy() string

func (*ProxyConfig) GetHttpsProxy

func (x *ProxyConfig) GetHttpsProxy() string

func (*ProxyConfig) GetNoProxy

func (x *ProxyConfig) GetNoProxy() []string

func (*ProxyConfig) MarshalBinary

func (msg *ProxyConfig) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*ProxyConfig) MarshalJSON

func (this *ProxyConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ProxyConfig

func (*ProxyConfig) ProtoMessage

func (*ProxyConfig) ProtoMessage()

func (*ProxyConfig) ProtoReflect

func (x *ProxyConfig) ProtoReflect() protoreflect.Message

func (*ProxyConfig) Reset

func (x *ProxyConfig) Reset()

func (*ProxyConfig) String

func (x *ProxyConfig) String() string

func (*ProxyConfig) UnmarshalBinary

func (msg *ProxyConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*ProxyConfig) UnmarshalJSON

func (this *ProxyConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ProxyConfig

type TelemetryState

type TelemetryState struct {

	// ResourceId is the identifier for the cluster linked with HCP.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// ClientId is the oauth client identifier for cluster.
	// This client has capabilities limited to writing telemetry data for this cluster.
	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// ClientSecret is the oauth secret used to authenticate requests to send telemetry data to HCP.
	ClientSecret string         `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	HcpConfig    *HCPConfig     `protobuf:"bytes,4,opt,name=hcp_config,json=hcpConfig,proto3" json:"hcp_config,omitempty"`
	Proxy        *ProxyConfig   `protobuf:"bytes,5,opt,name=proxy,proto3" json:"proxy,omitempty"`
	Metrics      *MetricsConfig `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

TelemetryState describes configuration required to forward telemetry to the HashiCorp Cloud Platform. This resource is managed internally and is only written if the cluster is linked to HCP. Any manual changes to the resource will be reconciled and overwritten with the internally computed state.

func (*TelemetryState) DeepCopy

func (in *TelemetryState) DeepCopy() *TelemetryState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TelemetryState. Required by controller-gen.

func (*TelemetryState) DeepCopyInterface

func (in *TelemetryState) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TelemetryState. Required by controller-gen.

func (*TelemetryState) DeepCopyInto

func (in *TelemetryState) DeepCopyInto(out *TelemetryState)

DeepCopyInto supports using TelemetryState within kubernetes types, where deepcopy-gen is used.

func (*TelemetryState) Descriptor deprecated

func (*TelemetryState) Descriptor() ([]byte, []int)

Deprecated: Use TelemetryState.ProtoReflect.Descriptor instead.

func (*TelemetryState) GetClientId

func (x *TelemetryState) GetClientId() string

func (*TelemetryState) GetClientSecret

func (x *TelemetryState) GetClientSecret() string

func (*TelemetryState) GetHcpConfig

func (x *TelemetryState) GetHcpConfig() *HCPConfig

func (*TelemetryState) GetMetrics

func (x *TelemetryState) GetMetrics() *MetricsConfig

func (*TelemetryState) GetProxy

func (x *TelemetryState) GetProxy() *ProxyConfig

func (*TelemetryState) GetResourceId

func (x *TelemetryState) GetResourceId() string

func (*TelemetryState) MarshalBinary

func (msg *TelemetryState) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*TelemetryState) MarshalJSON

func (this *TelemetryState) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TelemetryState

func (*TelemetryState) ProtoMessage

func (*TelemetryState) ProtoMessage()

func (*TelemetryState) ProtoReflect

func (x *TelemetryState) ProtoReflect() protoreflect.Message

func (*TelemetryState) Reset

func (x *TelemetryState) Reset()

func (*TelemetryState) String

func (x *TelemetryState) String() string

func (*TelemetryState) UnmarshalBinary

func (msg *TelemetryState) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*TelemetryState) UnmarshalJSON

func (this *TelemetryState) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TelemetryState

Jump to

Keyboard shortcuts

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