inventory

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

Inventory package

Documentation

Overview

Package inventory implements the go library for OPI to be used to query inventory

Package inventory implements the go library for OPI to be used to query inventory

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvClient added in v0.2.0

type InvClient interface {
	Get(ctx context.Context) (*pb.Inventory, error)
}

InvClient is an interface for querying inventory data from an OPI server

func New added in v0.2.0

func New(addr string) (InvClient, error)

New creates an inventory client for use with OPI server at the given address

func NewWithArgs added in v0.2.0

func NewWithArgs(c grpcOpi.Connector, getter PbInvClientGetter) (InvClient, error)

NewWithArgs creates an inventory client for use with OPI server using the given gRPC client and the given function for retrieving an inventory protobuf client

type PbInvClientGetter added in v0.2.0

type PbInvClientGetter func(c grpc.ClientConnInterface) pb.InventorySvcClient

PbInvClientGetter defines the function type used to retrieve an inventory protobuf client

Jump to

Keyboard shortcuts

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