plugins

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 1 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 {
	// contains filtered or unexported fields
}

func New

func New(c HTTPClient) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)

Create Add ACME plugin configuration.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)

Delete Delete ACME plugin configuration.

func (*Client) Find

func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)

Find Get ACME plugin configuration.

func (*Client) Index

func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)

Index ACME plugin index.

func (*Client) Update

func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)

Update Update ACME plugin configuration.

type CreateRequest

type CreateRequest struct {
	Id   string `url:"id",json:"id"`     // ACME Plugin ID name
	Type string `url:"type",json:"type"` // ACME challenge type.

	// The following parameters are optional
	Api             *string `url:"api,omitempty",json:"api,omitempty"`                           // API plugin name
	Data            *string `url:"data,omitempty",json:"data,omitempty"`                         // DNS plugin data. (base64 encoded)
	Disable         *bool   `url:"disable,omitempty",json:"disable,omitempty"`                   // Flag to disable the config.
	Nodes           *string `url:"nodes,omitempty",json:"nodes,omitempty"`                       // List of cluster node names.
	ValidationDelay *int    `url:"validation-delay,omitempty",json:"validation-delay,omitempty"` // Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.
}

type CreateResponse

type CreateResponse map[string]interface{}

type DeleteRequest

type DeleteRequest struct {
	Id string `url:"id",json:"id"` // Unique identifier for ACME plugin instance.

}

type DeleteResponse

type DeleteResponse map[string]interface{}

type FindRequest

type FindRequest struct {
	Id string `url:"id",json:"id"` // Unique identifier for ACME plugin instance.

}

type FindResponse

type FindResponse map[string]interface{}

type HTTPClient

type HTTPClient interface {
	Do(context.Context, string, string, interface{}, interface{}) error
}

type IndexRequest

type IndexRequest map[string]interface{}

type IndexResponse

type IndexResponse []*struct {
	Plugin string `url:"plugin",json:"plugin"` // Unique identifier for ACME plugin instance.

}

type UpdateRequest

type UpdateRequest struct {
	Id string `url:"id",json:"id"` // ACME Plugin ID name

	// The following parameters are optional
	Api             *string `url:"api,omitempty",json:"api,omitempty"`                           // API plugin name
	Data            *string `url:"data,omitempty",json:"data,omitempty"`                         // DNS plugin data. (base64 encoded)
	Delete          *string `url:"delete,omitempty",json:"delete,omitempty"`                     // A list of settings you want to delete.
	Digest          *string `url:"digest,omitempty",json:"digest,omitempty"`                     // Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
	Disable         *bool   `url:"disable,omitempty",json:"disable,omitempty"`                   // Flag to disable the config.
	Nodes           *string `url:"nodes,omitempty",json:"nodes,omitempty"`                       // List of cluster node names.
	ValidationDelay *int    `url:"validation-delay,omitempty",json:"validation-delay,omitempty"` // Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.
}

type UpdateResponse

type UpdateResponse map[string]interface{}

Jump to

Keyboard shortcuts

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