Documentation
¶
Index ¶
- type Certificate
- type CertificateMeta
- type Client
- func (c *Client) NginxCreateCertificate(req *NginxCreateCertificateRequest) (*NginxCreateCertificateResponse, error)
- func (c *Client) NginxCreateCertificateWithContext(ctx context.Context, req *NginxCreateCertificateRequest) (*NginxCreateCertificateResponse, error)
- func (c *Client) NginxListCertificates(req *NginxListCertificatesRequest) (*NginxListCertificatesResponse, error)
- func (c *Client) NginxListCertificatesWithContext(ctx context.Context, req *NginxListCertificatesRequest) (*NginxListCertificatesResponse, error)
- func (c *Client) NginxListDeadHosts(req *NginxListDeadHostsRequest) (*NginxListDeadHostsResponse, error)
- func (c *Client) NginxListDeadHostsWithContext(ctx context.Context, req *NginxListDeadHostsRequest) (*NginxListDeadHostsResponse, error)
- func (c *Client) NginxListProxyHosts(req *NginxListProxyHostsRequest) (*NginxListProxyHostsResponse, error)
- func (c *Client) NginxListProxyHostsWithContext(ctx context.Context, req *NginxListProxyHostsRequest) (*NginxListProxyHostsResponse, error)
- func (c *Client) NginxListRedirectionHosts(req *NginxListRedirectionHostsRequest) (*NginxListRedirectionHostsResponse, error)
- func (c *Client) NginxListRedirectionHostsWithContext(ctx context.Context, req *NginxListRedirectionHostsRequest) (*NginxListRedirectionHostsResponse, error)
- func (c *Client) NginxListStreams(req *NginxListStreamsRequest) (*NginxListStreamsResponse, error)
- func (c *Client) NginxListStreamsWithContext(ctx context.Context, req *NginxListStreamsRequest) (*NginxListStreamsResponse, error)
- func (c *Client) NginxUpdateDeadHost(hostId int64, req *NginxUpdateDeadHostRequest) (*NginxUpdateDeadHostResponse, error)
- func (c *Client) NginxUpdateDeadHostWithContext(ctx context.Context, hostId int64, req *NginxUpdateDeadHostRequest) (*NginxUpdateDeadHostResponse, error)
- func (c *Client) NginxUpdateProxyHost(hostId int64, req *NginxUpdateProxyHostRequest) (*NginxUpdateProxyHostResponse, error)
- func (c *Client) NginxUpdateProxyHostWithContext(ctx context.Context, hostId int64, req *NginxUpdateProxyHostRequest) (*NginxUpdateProxyHostResponse, error)
- func (c *Client) NginxUpdateRedirectionHost(hostId int64, req *NginxUpdateRedirectionHostRequest) (*NginxUpdateRedirectionHostResponse, error)
- func (c *Client) NginxUpdateRedirectionHostWithContext(ctx context.Context, hostId int64, req *NginxUpdateRedirectionHostRequest) (*NginxUpdateRedirectionHostResponse, error)
- func (c *Client) NginxUpdateStream(hostId int64, req *NginxUpdateStreamRequest) (*NginxUpdateStreamResponse, error)
- func (c *Client) NginxUpdateStreamWithContext(ctx context.Context, hostId int64, req *NginxUpdateStreamRequest) (*NginxUpdateStreamResponse, error)
- func (c *Client) NginxUploadCertificate(certId int64, req *NginxUploadCertificateRequest) (*NginxUploadCertificateResponse, error)
- func (c *Client) NginxUploadCertificateWithContext(ctx context.Context, certId int64, req *NginxUploadCertificateRequest) (*NginxUploadCertificateResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) SettingsGetDefaultSite(req *SettingsGetDefaultSiteRequest) (*SettingsGetDefaultSiteResponse, error)
- func (c *Client) SettingsGetDefaultSiteWithContext(ctx context.Context, req *SettingsGetDefaultSiteRequest) (*SettingsGetDefaultSiteResponse, error)
- func (c *Client) SettingsSetDefaultSite(req *SettingsSetDefaultSiteRequest) (*SettingsSetDefaultSiteResponse, error)
- func (c *Client) SettingsSetDefaultSiteWithContext(ctx context.Context, req *SettingsSetDefaultSiteRequest) (*SettingsSetDefaultSiteResponse, error)
- type DeadHost
- type Host
- type HostMeta
- type NginxCreateCertificateRequest
- type NginxCreateCertificateResponse
- type NginxListCertificatesRequest
- type NginxListCertificatesResponse
- type NginxListDeadHostsRequest
- type NginxListDeadHostsResponse
- type NginxListProxyHostsRequest
- type NginxListProxyHostsResponse
- type NginxListRedirectionHostsRequest
- type NginxListRedirectionHostsResponse
- type NginxListStreamsRequest
- type NginxListStreamsResponse
- type NginxUpdateDeadHostRequest
- type NginxUpdateDeadHostResponse
- type NginxUpdateProxyHostRequest
- type NginxUpdateProxyHostResponse
- type NginxUpdateRedirectionHostRequest
- type NginxUpdateRedirectionHostResponse
- type NginxUpdateStreamRequest
- type NginxUpdateStreamResponse
- type NginxUploadCertificateRequest
- type NginxUploadCertificateResponse
- type Options
- type OptionsFunc
- type ProxyHost
- type RedirectionHost
- type SettingsGetDefaultSiteRequest
- type SettingsGetDefaultSiteResponse
- type SettingsSetDefaultSiteRequest
- type SettingsSetDefaultSiteResponse
- type StreamHost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶ added in v0.4.25
type Certificate struct {
Id int64 `json:"id"`
CreatedOn string `json:"created_on"`
ModifiedOn string `json:"modified_on"`
Provider string `json:"provider"`
NiceName string `json:"nice_name"`
DomainNames []string `json:"domain_names"`
ExpiresOn string `json:"expires_on"`
Meta CertificateMeta `json:"meta"`
}
type CertificateMeta ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NginxCreateCertificate ¶
func (c *Client) NginxCreateCertificate(req *NginxCreateCertificateRequest) (*NginxCreateCertificateResponse, error)
func (*Client) NginxCreateCertificateWithContext ¶
func (c *Client) NginxCreateCertificateWithContext(ctx context.Context, req *NginxCreateCertificateRequest) (*NginxCreateCertificateResponse, error)
func (*Client) NginxListCertificates ¶
func (c *Client) NginxListCertificates(req *NginxListCertificatesRequest) (*NginxListCertificatesResponse, error)
func (*Client) NginxListCertificatesWithContext ¶
func (c *Client) NginxListCertificatesWithContext(ctx context.Context, req *NginxListCertificatesRequest) (*NginxListCertificatesResponse, error)
func (*Client) NginxListDeadHosts ¶
func (c *Client) NginxListDeadHosts(req *NginxListDeadHostsRequest) (*NginxListDeadHostsResponse, error)
func (*Client) NginxListDeadHostsWithContext ¶
func (c *Client) NginxListDeadHostsWithContext(ctx context.Context, req *NginxListDeadHostsRequest) (*NginxListDeadHostsResponse, error)
func (*Client) NginxListProxyHosts ¶
func (c *Client) NginxListProxyHosts(req *NginxListProxyHostsRequest) (*NginxListProxyHostsResponse, error)
func (*Client) NginxListProxyHostsWithContext ¶
func (c *Client) NginxListProxyHostsWithContext(ctx context.Context, req *NginxListProxyHostsRequest) (*NginxListProxyHostsResponse, error)
func (*Client) NginxListRedirectionHosts ¶
func (c *Client) NginxListRedirectionHosts(req *NginxListRedirectionHostsRequest) (*NginxListRedirectionHostsResponse, error)
func (*Client) NginxListRedirectionHostsWithContext ¶
func (c *Client) NginxListRedirectionHostsWithContext(ctx context.Context, req *NginxListRedirectionHostsRequest) (*NginxListRedirectionHostsResponse, error)
func (*Client) NginxListStreams ¶
func (c *Client) NginxListStreams(req *NginxListStreamsRequest) (*NginxListStreamsResponse, error)
func (*Client) NginxListStreamsWithContext ¶
func (c *Client) NginxListStreamsWithContext(ctx context.Context, req *NginxListStreamsRequest) (*NginxListStreamsResponse, error)
func (*Client) NginxUpdateDeadHost ¶
func (c *Client) NginxUpdateDeadHost(hostId int64, req *NginxUpdateDeadHostRequest) (*NginxUpdateDeadHostResponse, error)
func (*Client) NginxUpdateDeadHostWithContext ¶
func (c *Client) NginxUpdateDeadHostWithContext(ctx context.Context, hostId int64, req *NginxUpdateDeadHostRequest) (*NginxUpdateDeadHostResponse, error)
func (*Client) NginxUpdateProxyHost ¶
func (c *Client) NginxUpdateProxyHost(hostId int64, req *NginxUpdateProxyHostRequest) (*NginxUpdateProxyHostResponse, error)
func (*Client) NginxUpdateProxyHostWithContext ¶
func (c *Client) NginxUpdateProxyHostWithContext(ctx context.Context, hostId int64, req *NginxUpdateProxyHostRequest) (*NginxUpdateProxyHostResponse, error)
func (*Client) NginxUpdateRedirectionHost ¶
func (c *Client) NginxUpdateRedirectionHost(hostId int64, req *NginxUpdateRedirectionHostRequest) (*NginxUpdateRedirectionHostResponse, error)
func (*Client) NginxUpdateRedirectionHostWithContext ¶
func (c *Client) NginxUpdateRedirectionHostWithContext(ctx context.Context, hostId int64, req *NginxUpdateRedirectionHostRequest) (*NginxUpdateRedirectionHostResponse, error)
func (*Client) NginxUpdateStream ¶
func (c *Client) NginxUpdateStream(hostId int64, req *NginxUpdateStreamRequest) (*NginxUpdateStreamResponse, error)
func (*Client) NginxUpdateStreamWithContext ¶
func (c *Client) NginxUpdateStreamWithContext(ctx context.Context, hostId int64, req *NginxUpdateStreamRequest) (*NginxUpdateStreamResponse, error)
func (*Client) NginxUploadCertificate ¶
func (c *Client) NginxUploadCertificate(certId int64, req *NginxUploadCertificateRequest) (*NginxUploadCertificateResponse, error)
func (*Client) NginxUploadCertificateWithContext ¶
func (c *Client) NginxUploadCertificateWithContext(ctx context.Context, certId int64, req *NginxUploadCertificateRequest) (*NginxUploadCertificateResponse, error)
func (*Client) SettingsGetDefaultSite ¶
func (c *Client) SettingsGetDefaultSite(req *SettingsGetDefaultSiteRequest) (*SettingsGetDefaultSiteResponse, error)
func (*Client) SettingsGetDefaultSiteWithContext ¶
func (c *Client) SettingsGetDefaultSiteWithContext(ctx context.Context, req *SettingsGetDefaultSiteRequest) (*SettingsGetDefaultSiteResponse, error)
func (*Client) SettingsSetDefaultSite ¶
func (c *Client) SettingsSetDefaultSite(req *SettingsSetDefaultSiteRequest) (*SettingsSetDefaultSiteResponse, error)
func (*Client) SettingsSetDefaultSiteWithContext ¶
func (c *Client) SettingsSetDefaultSiteWithContext(ctx context.Context, req *SettingsSetDefaultSiteRequest) (*SettingsSetDefaultSiteResponse, error)
type NginxCreateCertificateResponse ¶
type NginxCreateCertificateResponse struct {
Certificate
}
type NginxListCertificatesRequest ¶
type NginxListCertificatesRequest struct {
Expand *string `json:"expand,omitempty" url:"expand,omitempty"`
}
type NginxListCertificatesResponse ¶
type NginxListCertificatesResponse = []*Certificate
type NginxListDeadHostsRequest ¶
type NginxListDeadHostsRequest struct {
Expand *string `json:"expand,omitempty" url:"expand,omitempty"`
}
type NginxListDeadHostsResponse ¶
type NginxListDeadHostsResponse = []*DeadHost
type NginxListProxyHostsRequest ¶
type NginxListProxyHostsRequest struct {
Expand *string `json:"expand,omitempty" url:"expand,omitempty"`
}
type NginxListProxyHostsResponse ¶
type NginxListProxyHostsResponse = []*ProxyHost
type NginxListRedirectionHostsRequest ¶
type NginxListRedirectionHostsRequest struct {
Expand *string `json:"expand,omitempty" url:"expand,omitempty"`
}
type NginxListRedirectionHostsResponse ¶
type NginxListRedirectionHostsResponse = []*RedirectionHost
type NginxListStreamsRequest ¶
type NginxListStreamsRequest struct {
Expand *string `json:"expand,omitempty" url:"expand,omitempty"`
}
type NginxListStreamsResponse ¶
type NginxListStreamsResponse = []*StreamHost
type NginxUpdateDeadHostRequest ¶
type NginxUpdateDeadHostRequest struct {
CertificateId *int64 `json:"certificate_id,omitempty"`
}
type NginxUpdateDeadHostResponse ¶
type NginxUpdateDeadHostResponse struct {
DeadHost
}
type NginxUpdateProxyHostRequest ¶
type NginxUpdateProxyHostRequest struct {
CertificateId *int64 `json:"certificate_id,omitempty"`
}
type NginxUpdateProxyHostResponse ¶
type NginxUpdateProxyHostResponse struct {
ProxyHost
}
type NginxUpdateRedirectionHostRequest ¶
type NginxUpdateRedirectionHostRequest struct {
CertificateId *int64 `json:"certificate_id,omitempty"`
}
type NginxUpdateRedirectionHostResponse ¶
type NginxUpdateRedirectionHostResponse struct {
RedirectionHost
}
type NginxUpdateStreamRequest ¶
type NginxUpdateStreamRequest struct {
CertificateId *int64 `json:"certificate_id,omitempty"`
}
type NginxUpdateStreamResponse ¶
type NginxUpdateStreamResponse struct {
StreamHost
}
type NginxUploadCertificateRequest ¶
type NginxUploadCertificateRequest struct {
CertificateMeta
}
type NginxUploadCertificateResponse ¶
type NginxUploadCertificateResponse struct {
CertificateMeta
}
type OptionsFunc ¶ added in v0.4.25
type OptionsFunc func(*Options)
func WithJwtToken ¶ added in v0.4.25
func WithJwtToken(jwtToken string) OptionsFunc
func WithLogins ¶ added in v0.4.25
func WithLogins(username, password string) OptionsFunc
type ProxyHost ¶ added in v0.4.25
type ProxyHost struct {
Host
ForwardScheme string `json:"forward_scheme"`
ForwardHost string `json:"forward_host"`
ForwardPort int32 `json:"forward_port"`
SslForced bool `json:"ssl_forced"`
Http2Support bool `json:"http2_support"`
HstsEnabled bool `json:"hsts_enabled"`
HstsSubdomains bool `json:"hsts_subdomains"`
}
type RedirectionHost ¶ added in v0.4.25
type RedirectionHost struct {
Host
ForwardScheme string `json:"forward_scheme"`
ForwardDomainName string `json:"forward_domain_name"`
ForwardHttpCode int32 `json:"forward_http_code"`
SslForced bool `json:"ssl_forced"`
Http2Support bool `json:"http2_support"`
HstsEnabled bool `json:"hsts_enabled"`
HstsSubdomains bool `json:"hsts_subdomains"`
}
type SettingsGetDefaultSiteRequest ¶
type SettingsGetDefaultSiteRequest struct{}
type SettingsSetDefaultSiteResponse ¶
type SettingsSetDefaultSiteResponse struct{}
Source Files
¶
- api_nginx_create_certificate.go
- api_nginx_list_certificates.go
- api_nginx_list_dead_hosts.go
- api_nginx_list_proxy_hosts.go
- api_nginx_list_redirection_hosts.go
- api_nginx_list_streams.go
- api_nginx_update_dead_host.go
- api_nginx_update_proxy_host.go
- api_nginx_update_redirection_host.go
- api_nginx_update_stream.go
- api_nginx_upload_certificate.go
- api_settings_get_default_site.go
- api_settings_set_default_site.go
- client.go
- models.go
- options.go
- types.go
Click to show internal directories.
Click to hide internal directories.