Documentation
¶
Index ¶
Constants ¶
View Source
const ( FedEndpoint = "fed" FedRampBaseApiURL = "https://api.fed.cloudflare.com/client/v4" FedRampHostname = "management.fed.argotunnel.com" )
View Source
const (
DefaultCredentialFile = "cert.pem"
)
Variables ¶
This section is empty.
Functions ¶
func FindDefaultOriginCertPath ¶
func FindDefaultOriginCertPath() string
FindDefaultOriginCertPath returns the first path that contains a cert.pem file. If none of the DefaultConfigSearchDirectories contains a cert.pem file, return empty string
Types ¶
type OriginCert ¶
type OriginCert struct {
ZoneID string `json:"zoneID"`
AccountID string `json:"accountID"`
APIToken string `json:"apiToken"`
Endpoint string `json:"endpoint,omitempty"`
}
func DecodeOriginCert ¶
func DecodeOriginCert(blocks []byte) (*OriginCert, error)
func (*OriginCert) EncodeOriginCert ¶
func (cert *OriginCert) EncodeOriginCert() ([]byte, error)
func (*OriginCert) UnmarshalJSON ¶
func (oc *OriginCert) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.