client

package
v0.0.0-...-0f6999a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Credentials

func Credentials(c *Client) credentials.CredentialsClient

Credentials returns the service to interact with database credentials.

func Hosts

func Hosts(c *Client) hosts.HostsClient

Hosts returns the service to interact with database hosts.

func Logins

func Logins(c *Client) credentials.LoginsClient

Logins returns the service to interact with database logins.

func Scans

func Scans(c *Client) scans.ScansClient

Scans returns the service to interact with database scans.

func Services

func Services(c *Client) network.ServicesClient

Services returns the service to interact with database services.

func Users

func Users(c *Client) hosts.UsersClient

Users returns the service to interact with database users.

Types

type Client

type Client struct {

	// Services
	Hosts    hosts.HostsClient
	Users    hosts.UsersClient
	Services network.ServicesClient
	Creds    credentials.CredentialsClient
	Logins   credentials.LoginsClient
	Scans    scans.ScansClient
	// contains filtered or unexported fields
}

Client connects to an AIMS database through a gRPC connection. The client can be passed around to use the different services offered by the AIMS server backend.

func New

func New() (c *Client, err error)

New initializes an AIMS client RPC interface.

func NewFrom

func NewFrom(conn *grpc.ClientConn) (c *Client, err error)

New initializes an AIMS client RPC interface with a given gRPC client connection (which might have or not have other client services registered onto it).

Jump to

Keyboard shortcuts

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