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
- Variables
- type AccessLevel
- func (AccessLevel) Descriptor() protoreflect.EnumDescriptor
- func (x AccessLevel) Enum() *AccessLevel
- func (AccessLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccessLevel) Number() protoreflect.EnumNumber
- func (x AccessLevel) String() string
- func (AccessLevel) Type() protoreflect.EnumType
- type HCPConfig
- func (in *HCPConfig) DeepCopy() *HCPConfig
- func (in *HCPConfig) DeepCopyInterface() interface{}
- func (in *HCPConfig) DeepCopyInto(out *HCPConfig)
- func (*HCPConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HCPConfig) GetApiAddress() string
- func (x *HCPConfig) GetAuthUrl() string
- func (x *HCPConfig) GetScadaAddress() string
- func (x *HCPConfig) GetTlsInsecureSkipVerify() bool
- func (msg *HCPConfig) MarshalBinary() ([]byte, error)
- func (this *HCPConfig) MarshalJSON() ([]byte, error)
- func (*HCPConfig) ProtoMessage()
- func (x *HCPConfig) ProtoReflect() protoreflect.Message
- func (x *HCPConfig) Reset()
- func (x *HCPConfig) String() string
- func (msg *HCPConfig) UnmarshalBinary(b []byte) error
- func (this *HCPConfig) UnmarshalJSON(b []byte) error
- type Link
- func (in *Link) DeepCopy() *Link
- func (in *Link) DeepCopyInterface() interface{}
- func (in *Link) DeepCopyInto(out *Link)
- func (*Link) Descriptor() ([]byte, []int)deprecated
- func (x *Link) GetAccessLevel() AccessLevel
- func (x *Link) GetClientId() string
- func (x *Link) GetClientSecret() string
- func (x *Link) GetHcpClusterUrl() string
- func (x *Link) GetHcpConfig() *HCPConfig
- func (x *Link) GetResourceId() string
- func (msg *Link) MarshalBinary() ([]byte, error)
- func (this *Link) MarshalJSON() ([]byte, error)
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (x *Link) String() string
- func (msg *Link) UnmarshalBinary(b []byte) error
- func (this *Link) UnmarshalJSON(b []byte) error
- type MetricsConfig
- func (in *MetricsConfig) DeepCopy() *MetricsConfig
- func (in *MetricsConfig) DeepCopyInterface() interface{}
- func (in *MetricsConfig) DeepCopyInto(out *MetricsConfig)
- func (*MetricsConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MetricsConfig) GetDisabled() bool
- func (x *MetricsConfig) GetEndpoint() string
- func (x *MetricsConfig) GetIncludeList() []string
- func (x *MetricsConfig) GetLabels() map[string]string
- func (msg *MetricsConfig) MarshalBinary() ([]byte, error)
- func (this *MetricsConfig) MarshalJSON() ([]byte, error)
- func (*MetricsConfig) ProtoMessage()
- func (x *MetricsConfig) ProtoReflect() protoreflect.Message
- func (x *MetricsConfig) Reset()
- func (x *MetricsConfig) String() string
- func (msg *MetricsConfig) UnmarshalBinary(b []byte) error
- func (this *MetricsConfig) UnmarshalJSON(b []byte) error
- type ProxyConfig
- func (in *ProxyConfig) DeepCopy() *ProxyConfig
- func (in *ProxyConfig) DeepCopyInterface() interface{}
- func (in *ProxyConfig) DeepCopyInto(out *ProxyConfig)
- func (*ProxyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProxyConfig) GetHttpProxy() string
- func (x *ProxyConfig) GetHttpsProxy() string
- func (x *ProxyConfig) GetNoProxy() []string
- func (msg *ProxyConfig) MarshalBinary() ([]byte, error)
- func (this *ProxyConfig) MarshalJSON() ([]byte, error)
- func (*ProxyConfig) ProtoMessage()
- func (x *ProxyConfig) ProtoReflect() protoreflect.Message
- func (x *ProxyConfig) Reset()
- func (x *ProxyConfig) String() string
- func (msg *ProxyConfig) UnmarshalBinary(b []byte) error
- func (this *ProxyConfig) UnmarshalJSON(b []byte) error
- type TelemetryState
- func (in *TelemetryState) DeepCopy() *TelemetryState
- func (in *TelemetryState) DeepCopyInterface() interface{}
- func (in *TelemetryState) DeepCopyInto(out *TelemetryState)
- func (*TelemetryState) Descriptor() ([]byte, []int)deprecated
- func (x *TelemetryState) GetClientId() string
- func (x *TelemetryState) GetClientSecret() string
- func (x *TelemetryState) GetHcpConfig() *HCPConfig
- func (x *TelemetryState) GetMetrics() *MetricsConfig
- func (x *TelemetryState) GetProxy() *ProxyConfig
- func (x *TelemetryState) GetResourceId() string
- func (msg *TelemetryState) MarshalBinary() ([]byte, error)
- func (this *TelemetryState) MarshalJSON() ([]byte, error)
- func (*TelemetryState) ProtoMessage()
- func (x *TelemetryState) ProtoReflect() protoreflect.Message
- func (x *TelemetryState) Reset()
- func (x *TelemetryState) String() string
- func (msg *TelemetryState) UnmarshalBinary(b []byte) error
- func (this *TelemetryState) UnmarshalJSON(b []byte) error
Constants ¶
const ( GroupName = "hcp" Version = "v2" LinkKind = "Link" TelemetryStateKind = "TelemetryState" )
Variables ¶
var ( HcpConfigMarshaler = &protojson.MarshalOptions{} HcpConfigUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false} )
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.
var ( LinkMarshaler = &protojson.MarshalOptions{} LinkUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false} )
var ( LinkType = &pbresource.Type{ Group: GroupName, GroupVersion: Version, Kind: LinkKind, } TelemetryStateType = &pbresource.Type{ Group: GroupName, GroupVersion: Version, Kind: TelemetryStateKind, } )
var ( TelemetryStateMarshaler = &protojson.MarshalOptions{} TelemetryStateUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false} )
var File_pbhcp_v2_hcp_config_proto protoreflect.FileDescriptor
var File_pbhcp_v2_link_proto protoreflect.FileDescriptor
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (AccessLevel) Type() protoreflect.EnumType
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 ¶
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 ¶
DeepCopyInto supports using HCPConfig within kubernetes types, where deepcopy-gen is used.
func (*HCPConfig) Descriptor
deprecated
func (*HCPConfig) GetApiAddress ¶
func (*HCPConfig) GetAuthUrl ¶
func (*HCPConfig) GetScadaAddress ¶
func (*HCPConfig) GetTlsInsecureSkipVerify ¶
func (*HCPConfig) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*HCPConfig) MarshalJSON ¶
MarshalJSON is a custom marshaler for HCPConfig
func (*HCPConfig) ProtoMessage ¶
func (*HCPConfig) ProtoMessage()
func (*HCPConfig) ProtoReflect ¶
func (x *HCPConfig) ProtoReflect() protoreflect.Message
func (*HCPConfig) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*HCPConfig) UnmarshalJSON ¶
UnmarshalJSON is a custom unmarshaler for HCPConfig
type Link ¶
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 ¶
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 ¶
DeepCopyInto supports using Link within kubernetes types, where deepcopy-gen is used.
func (*Link) Descriptor
deprecated
func (*Link) GetAccessLevel ¶
func (x *Link) GetAccessLevel() AccessLevel
func (*Link) GetClientId ¶
func (*Link) GetClientSecret ¶
func (*Link) GetHcpClusterUrl ¶
func (*Link) GetHcpConfig ¶
func (*Link) GetResourceId ¶
func (*Link) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Link) MarshalJSON ¶
MarshalJSON is a custom marshaler for Link
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
func (*Link) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*Link) UnmarshalJSON ¶
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