ocrpcs

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

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

Go to latest
Published: Feb 1, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ocrpcs contains utilities related to ocrpcs.proto.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(downloadPath, api string) (map[string]struct{}, error)

Read returns all RPCs for the given OpenConfig API.

  • downloadPath specifies the folder to download the associated OpenConfig repo in order to allow for proto file parsing.

func ValidateRPCs

func ValidateRPCs(downloadPath string, protocols map[string]*rpb.OCProtocol) (uint, error)

ValidateRPCs verifies whether the RPCs listed in protocols are valid.

It returns the number of valid RPCs found, and an error if any RPC is invalid, or there was an issue downloading or parsing OpenConfig protobuf files.

- downloadPath is a path to the folder which will contain OpenConfig repositories that will be downloaded in order to validate the existence of provided RPCs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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