client

package
v0.0.0-...-f6a3884 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CheckCompatibility(ctx context.Context, tocheck string) (*pb.Response, error)
}

Client interface defines functions required for a valid client

func NewClient

func NewClient(host string) (Client, error)

NewClient creates a new RainbowClient

type CompatClient

type CompatClient struct {
	// contains filtered or unexported fields
}

CompatClient interacts with a compatibility server

func (CompatClient) CheckCompatibility

func (c CompatClient) CheckCompatibility(ctx context.Context, tocheck string) (*pb.Response, error)

Check compatibility of an artifact against the known service database toCheck can be either a URI (to download from a registry) or the path to a json file. Right now I'm assuming the json path.

func (*CompatClient) Close

func (c *CompatClient) Close() error

Close closes the created resources (e.g. connection).

func (*CompatClient) Connected

func (c *CompatClient) Connected() bool

Connected returns true if we are connected and the connection is ready

func (*CompatClient) GetHost

func (c *CompatClient) GetHost() string

GetHost returns the private hostn name

Jump to

Keyboard shortcuts

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