stub

package
v0.0.0-...-702d4ba Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: BSD-3-Clause Imports: 3 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 struct{}

func NewClientThroughTsuruWithOptions

func NewClientThroughTsuruWithOptions(target string, token string, service string, opts ClientOptions) (Client, error)

func NewClientWithOptions

func NewClientWithOptions(address string, user string, password string, opts ClientOptions) (Client, error)

func (*Client) DeleteTrigger

func (cli *Client) DeleteTrigger(c context.Context, args DeleteTriggerArgs) error

func (*Client) GetTrigger

func (cli *Client) GetTrigger(c context.Context, args GetTriggerArgs) (Trigger, error)

func (*Client) ListTriggers

func (cli *Client) ListTriggers(c context.Context, args ListTriggersArgs) ([]Trigger, error)

func (*Client) UpsertTrigger

func (cli *Client) UpsertTrigger(c context.Context, args UpsertTriggerArgs) error

type ClientOptions

type ClientOptions struct {
	Timeout time.Duration
}

type DeleteTriggerArgs

type DeleteTriggerArgs struct {
	Instance string
	Name     string
}

type GetTriggerArgs

type GetTriggerArgs struct {
	Instance string
	Name     string
}

type ListTriggersArgs

type ListTriggersArgs struct {
	Instance string
}

type Trigger

type Trigger struct {
	Name     string          `json:"name"`
	Type     string          `json:"type"`
	Metadata TriggerMetadata `json:"metadata"`
}

type TriggerMetadata

type TriggerMetadata map[string]interface{}

type UpsertTriggerArgs

type UpsertTriggerArgs struct {
	Instance string
	Name     string
	Type     string
	Metadata TriggerMetadata
}

Jump to

Keyboard shortcuts

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