client

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VariableBaseURL = "DEPSCLOUD_BASE_URL"

	VariableAddress       = "DEPSCLOUD_ADDRESS"
	VariableServiceConfig = "DEPSCLOUD_SERVICE_CONFIG"
	VariableTLS           = "DEPSCLOUD_TLS"
	VariableCAPath        = "DEPSCLOUD_CA_PATH"
	VariableCertPath      = "DEPSCLOUD_CERT_PATH"
	VariableKeyPath       = "DEPSCLOUD_KEY_PATH"

	DefaultBaseURL = "https://api.deps.cloud"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Languages() v1beta.LanguageServiceClient
	Modules() v1beta.ModuleServiceClient
	Sources() v1beta.SourceServiceClient
	Traversal() v1beta.TraversalServiceClient
}

func DefaultClient

func DefaultClient() Client

type SystemInfo

type SystemInfo struct {
	BaseURL string
	OS      string
	Arch    string
}

SystemInfo provides easy access to metadata about the client.

func GetSystemInfo

func GetSystemInfo() SystemInfo

GetSystemInfo returns information about the client.

func (SystemInfo) String

func (s SystemInfo) String() string

Jump to

Keyboard shortcuts

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