client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package client is a client library for interacting with a Transiter server.

It wraps the raw gRPC API with a more idiomatic interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(addr string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) DeleteSystem

func (c *Client) DeleteSystem(ctx context.Context, systemID string) error

func (*Client) GetLogLevel

func (c *Client) GetLogLevel(ctx context.Context) error

func (*Client) InstallSystem

func (c *Client) InstallSystem(ctx context.Context, args InstallSystemArgs) error

func (*Client) ListSystems

func (c *Client) ListSystems(ctx context.Context) error

func (*Client) ResetScheduler

func (c *Client) ResetScheduler(ctx context.Context) error

func (*Client) SchedulerStatus

func (c *Client) SchedulerStatus(ctx context.Context) error

func (*Client) SetLogLevel

func (c *Client) SetLogLevel(ctx context.Context, logLevel string) error

func (*Client) UpdateFeed

func (c *Client) UpdateFeed(ctx context.Context, systemID, feedID string, force bool) error

func (*Client) Version

func (c *Client) Version(ctx context.Context) (string, error)

type ConfigPathType added in v0.6.1

type ConfigPathType int
const (
	TransiterRepo ConfigPathType = iota
	File
	URL
)

type InstallSystemArgs

type InstallSystemArgs struct {
	SystemID       string
	ConfigPath     string
	ConfigPathType ConfigPathType
	AllowUpdate    bool
	IsTemplate     bool
	TemplateArgs   map[string]string
}

Directories

Path Synopsis
Package table contains a utility for printing tables on the command line.
Package table contains a utility for printing tables on the command line.

Jump to

Keyboard shortcuts

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