approuter

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 15 Imported by: 1

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 NewClient

func NewClient(secrets SecretCreator, secretLister SecretLister, clusterName string) *Client

func (*Client) ApplyDomain

func (c *Client) ApplyDomain(hosts []string, subDomain map[string][]string, cname bool) (bool, string, error)

func (*Client) CreateDomain

func (c *Client) CreateDomain(hosts []string, cname bool) (string, error)

func (*Client) DeleteDomain

func (c *Client) DeleteDomain() (string, error)

func (*Client) GetDomain

func (c *Client) GetDomain(cname bool) (d *model.Domain, err error)

func (*Client) RenewDomain

func (c *Client) RenewDomain() (string, error)

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(base string)

func (*Client) UpdateDomain

func (c *Client) UpdateDomain(hosts []string, subDomain map[string][]string, cname bool) (string, error)

type SecretCreator

type SecretCreator interface {
	Create(*k8scorev1.Secret) (*k8scorev1.Secret, error)
	Update(*k8scorev1.Secret) (*k8scorev1.Secret, error)
}

type SecretLister

type SecretLister interface {
	Get(namespace, name string) (*k8scorev1.Secret, error)
}

Jump to

Keyboard shortcuts

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