Documentation ¶
Index ¶
- type Certificate
- type Client
- func (c *Client) CertificateInspect(ctx context.Context, domain string) (*Certificate, error)
- func (c *Client) CertificateList(ctx context.Context) ([]Certificate, error)
- func (c *Client) CertificateRenew(ctx context.Context, domain string) error
- func (c *Client) ProjectApply(ctx context.Context, cmd ProjectApplyCommand) (*Project, error)
- func (c *Client) ProjectInspect(ctx context.Context, name string) (*Project, error)
- func (c *Client) ProjectList(ctx context.Context) ([]ProjectSummary, error)
- func (c *Client) ProjectRemove(ctx context.Context, name string) error
- type Project
- type ProjectApplyCommand
- type ProjectSummary
- type Service
- type StatusError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { Domain string `json:"domain"` Challenge types.ChallengeType `json:"challenge"` PEM string `json:"pem,omitempty"` Meta struct { Subject string `json:"subject"` Issuer string `json:"issuer"` Since time.Time `json:"since"` Expiry time.Time `json:"expiry"` SerialNumber string `json:"serial"` SignatureAlgorithm string `json:"signature_algorithm"` PublicAlgorithm string `json:"public_algorithm"` } `json:"meta,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientFromEnv ¶
func NewClientFromEnv() *Client
NewClientFromEnv will create a new API client for the current environment it's running in.
func (*Client) CertificateInspect ¶
CertificateInspect will return the detailed information about the certificate for the given domain.
func (*Client) CertificateList ¶
func (c *Client) CertificateList(ctx context.Context) ([]Certificate, error)
CertificateList will return the current certificates known in the system.
func (*Client) CertificateRenew ¶
CertificateRenew will renew an existing certificate for the given domain.
func (*Client) ProjectApply ¶
ProjectApply will apply the project configuration to the system.
func (*Client) ProjectInspect ¶
ProjectInspect will return the detailed information about the project for the given name.
func (*Client) ProjectList ¶
func (c *Client) ProjectList(ctx context.Context) ([]ProjectSummary, error)
ProjectList will return the current projects known to the system
type ProjectApplyCommand ¶
type ProjectApplyCommand struct { ProjectName string `json:"project_name"` Services []struct { Name string `json:"name"` Source types.Source `json:"source"` Environment map[string]string `json:"environment"` IngressDomain string `json:"ingress_domain"` ContainerPort int `json:"container_port"` ChallengeType types.ChallengeType `json:"challenge_type"` Quota types.Quota `json:"quota"` } `json:"services"` }
type ProjectSummary ¶
type StatusError ¶
StatusError is an error with an HTTP status code and message.
func (StatusError) Error ¶
func (e StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.