Documentation
¶
Index ¶
- func ApplyRegex(pattern string, value string) (string, error)
- func GnmiPathToXPath(p *gnmi.Path, noKeys bool) string
- func RunStarlark(key, script, value string) (string, error)
- type Discoverer
- type DiscoveryProfile
- type DiscoveryRule
- type DiscoveryRuleConfig
- type Iterator
- type Key
- type TargetConnectionProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GnmiPathToXPath ¶ added in v0.0.47
GnmiPathToXPath is absed on gnmic but also strips the json_ietf metadata
func RunStarlark ¶ added in v0.0.47
RunStarlark executes a Starlark script with the given value.
Types ¶
type Discoverer ¶ added in v0.0.47
type Discoverer struct {
Provider string
DiscoveryParameters invv1alpha1.GnmiDiscoveryVendorProfileParameters
}
func (*Discoverer) Discover ¶ added in v0.0.47
func (r *Discoverer) Discover(ctx context.Context, t *target.Target) (*invv1alpha1.DiscoveryInfo, error)
func (*Discoverer) GetProvider ¶ added in v0.0.47
func (r *Discoverer) GetProvider() string
type DiscoveryProfile ¶
type DiscoveryProfile struct {
Secret string
SecretResourceVersion string // used to validate a profile change
TLSSecret string
TLSSecretResourceVersion string // used to validate a profile change
Connectionprofiles []*invv1alpha1.TargetConnectionProfile
}
type DiscoveryRule ¶
type DiscoveryRule interface {
Run(ctx context.Context) error
Stop(ctx context.Context)
GetDiscoveryRulConfig() *DiscoveryRuleConfig
}
func New ¶
func New(client client.Client, cfg *DiscoveryRuleConfig, targetStore storebackend.Storer[*target.Context]) DiscoveryRule
type DiscoveryRuleConfig ¶
type DiscoveryRuleConfig struct {
// Discovery defines if discovery is enabled or disabled
Discovery bool
// Default Schema is the default schema
DefaultSchema *invv1alpha1.SchemaKey
// CR that owns the discovery Rule
CR invv1alpha1.DiscoveryObject
// Selector for Pod/SVC
//Selector labels.Selector
// Prefixes used to discover/connect to the target
//Prefixes []invv1alpha1.DiscoveryRulePrefix
// DiscoveryProfile contains the profile data from the k8s api-server
DiscoveryProfile *DiscoveryProfile
// ConnectivityProfile contains the profile data from the k8s api-server
TargetConnectionProfiles []TargetConnectionProfile
// TargetTemplate defines the template to expand the target
TargetTemplate *invv1alpha1.TargetTemplate
}
type TargetConnectionProfile ¶
type TargetConnectionProfile struct {
Secret string
SecretResourceVersion string // used to validate a profile change + provide the version to the target if provisioned
TLSSecret string
TLSSecretResourceVersion string // used to validate a profile change + provide the version to the target if provisioned
Connectionprofile *invv1alpha1.TargetConnectionProfile
Syncprofile *invv1alpha1.TargetSyncProfile
}
Click to show internal directories.
Click to hide internal directories.