restconf

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Types

type Client

type Client struct {
	Username   string
	Password   string
	HttpClient *http.Client
}

func NewClient

func NewClient(username, password string) (*Client, error)

func (*Client) CreateConfigBlock

func (c *Client) CreateConfigBlock(ctx context.Context, path, content string) error

func (*Client) DeleteConfigBlock

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

func (*Client) ReadConfigBlock

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

func (*Client) UpdateConfigBlock

func (c *Client) UpdateConfigBlock(ctx context.Context, path, content string) error

Jump to

Keyboard shortcuts

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