Documentation ¶
Index ¶
- Constants
- Variables
- func FixURL(url string) string
- func ID(e env.Enver, resourceID string) string
- func PagesFindFiles(root string, patterns []string) (ret map[string]*PagesFileInfo, err error)
- func PagesHashFile(f string) (string, error)
- func RegisterTypes(reg *registry.Registry)
- func ShortShaID(id string) string
- type DNSRecord
- func (o *DNSRecord) Create(ctx context.Context, meta interface{}) error
- func (o *DNSRecord) Delete(ctx context.Context, meta interface{}) error
- func (o *DNSRecord) GetName() string
- func (o *DNSRecord) Read(ctx context.Context, meta interface{}) error
- func (o *DNSRecord) ReferenceID() string
- func (o *DNSRecord) Update(ctx context.Context, meta interface{}) error
- type OriginCertificate
- func (o *OriginCertificate) Create(ctx context.Context, meta interface{}) error
- func (o *OriginCertificate) Delete(ctx context.Context, meta interface{}) error
- func (o *OriginCertificate) GetName() string
- func (o *OriginCertificate) Read(ctx context.Context, meta interface{}) error
- func (o *OriginCertificate) Update(ctx context.Context, meta interface{}) error
- type PagesDeployment
- func (o *PagesDeployment) Create(ctx context.Context, meta interface{}) error
- func (o *PagesDeployment) Delete(ctx context.Context, meta interface{}) error
- func (o *PagesDeployment) GetName() string
- func (o *PagesDeployment) Read(ctx context.Context, meta interface{}) error
- func (o *PagesDeployment) ReferenceID() string
- func (o *PagesDeployment) Update(ctx context.Context, meta interface{}) error
- type PagesFileInfo
- type PagesFiles
- type PagesProject
- func (o *PagesProject) Create(ctx context.Context, meta interface{}) error
- func (o *PagesProject) Delete(ctx context.Context, meta interface{}) error
- func (o *PagesProject) GetName() string
- func (o *PagesProject) Read(ctx context.Context, meta interface{}) error
- func (o *PagesProject) ReferenceID() string
- func (o *PagesProject) Update(ctx context.Context, meta interface{}) error
- type WorkerRoute
- func (o *WorkerRoute) Create(ctx context.Context, meta interface{}) error
- func (o *WorkerRoute) Delete(ctx context.Context, meta interface{}) error
- func (o *WorkerRoute) GetName() string
- func (o *WorkerRoute) Read(ctx context.Context, meta interface{}) error
- func (o *WorkerRoute) ReferenceID() string
- func (o *WorkerRoute) Update(ctx context.Context, meta interface{}) error
- type WorkerSchedulers
- func (o *WorkerSchedulers) Create(ctx context.Context, meta interface{}) error
- func (o *WorkerSchedulers) Delete(ctx context.Context, meta interface{}) error
- func (o *WorkerSchedulers) GetName() string
- func (o *WorkerSchedulers) Read(ctx context.Context, meta interface{}) error
- func (o *WorkerSchedulers) ReferenceID() string
- func (o *WorkerSchedulers) Update(ctx context.Context, meta interface{}) error
- type WorkerScript
- func (o *WorkerScript) Create(ctx context.Context, meta interface{}) error
- func (o *WorkerScript) Delete(ctx context.Context, meta interface{}) error
- func (o *WorkerScript) GetName() string
- func (o *WorkerScript) Read(ctx context.Context, meta interface{}) error
- func (o *WorkerScript) ReferenceID() string
- func (o *WorkerScript) Update(ctx context.Context, meta interface{}) error
Constants ¶
View Source
const ( CloudflarePagesMaxSize = 25 * 1024 * 1024 CloudflarePagesMaxFileCount = 20000 UploadConcurrency = 3 UploadBucketMaxFiles = 5000 UploadBucketMaxSize = 50 * 1024 * 1024 )
Variables ¶
View Source
var Types = []registry.Resource{ (*DNSRecord)(nil), (*OriginCertificate)(nil), (*PagesProject)(nil), (*PagesFiles)(nil), (*PagesDeployment)(nil), (*WorkerScript)(nil), (*WorkerRoute)(nil), (*WorkerSchedulers)(nil), }
Functions ¶
func PagesFindFiles ¶ added in v0.1.7
func PagesFindFiles(root string, patterns []string) (ret map[string]*PagesFileInfo, err error)
func PagesHashFile ¶ added in v0.1.7
func RegisterTypes ¶
func ShortShaID ¶ added in v0.1.7
Types ¶
type DNSRecord ¶
type DNSRecord struct { registry.ResourceBase ZoneID fields.StringInputField `state:"force_new"` Name fields.StringInputField Type fields.StringInputField Value fields.StringInputField Proxied fields.BoolInputField ID fields.StringOutputField }
func (*DNSRecord) ReferenceID ¶
type OriginCertificate ¶
type OriginCertificate struct { registry.ResourceBase Hostnames fields.ArrayInputField `state:"force_new"` RequestType fields.StringInputField `state:"force_new" default:"origin-rsa"` RequestValidity fields.IntInputField `state:"force_new" default:"5475"` ID fields.StringOutputField ExpiresOn fields.IntOutputField CSR fields.StringOutputField Certificate fields.StringOutputField PrivateKey fields.StringOutputField }
func (*OriginCertificate) Create ¶
func (o *OriginCertificate) Create(ctx context.Context, meta interface{}) error
func (*OriginCertificate) Delete ¶
func (o *OriginCertificate) Delete(ctx context.Context, meta interface{}) error
func (*OriginCertificate) GetName ¶
func (o *OriginCertificate) GetName() string
type PagesDeployment ¶ added in v0.1.7
type PagesDeployment struct { registry.ResourceBase Name string `state:"-"` ProjectName fields.StringInputField `state:"force_new"` AccountID fields.StringInputField `state:"force_new"` Manifest fields.MapInputField `state:"force_new"` }
func (*PagesDeployment) Create ¶ added in v0.1.7
func (o *PagesDeployment) Create(ctx context.Context, meta interface{}) error
func (*PagesDeployment) Delete ¶ added in v0.1.7
func (o *PagesDeployment) Delete(ctx context.Context, meta interface{}) error
func (*PagesDeployment) GetName ¶ added in v0.1.7
func (o *PagesDeployment) GetName() string
func (*PagesDeployment) Read ¶ added in v0.1.7
func (o *PagesDeployment) Read(ctx context.Context, meta interface{}) error
func (*PagesDeployment) ReferenceID ¶ added in v0.1.7
func (o *PagesDeployment) ReferenceID() string
type PagesFileInfo ¶ added in v0.1.7
type PagesFiles ¶ added in v0.1.7
type PagesFiles struct { registry.ResourceBase Name string `state:"-"` ProjectName fields.StringInputField Manifest fields.MapOutputField Hashes map[string]*PagesFileInfo `state:"-"` HashesList []string `state:"-"` // contains filtered or unexported fields }
func (*PagesFiles) CalculateDiff ¶ added in v0.1.7
func (*PagesFiles) GetName ¶ added in v0.1.7
func (o *PagesFiles) GetName() string
type PagesProject ¶ added in v0.1.7
type PagesProject struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` AccountID fields.StringInputField `state:"force_new"` Domains fields.ArrayInputField InternalDomain fields.StringOutputField }
func (*PagesProject) Create ¶ added in v0.1.7
func (o *PagesProject) Create(ctx context.Context, meta interface{}) error
func (*PagesProject) Delete ¶ added in v0.1.7
func (o *PagesProject) Delete(ctx context.Context, meta interface{}) error
func (*PagesProject) GetName ¶ added in v0.1.7
func (o *PagesProject) GetName() string
func (*PagesProject) Read ¶ added in v0.1.7
func (o *PagesProject) Read(ctx context.Context, meta interface{}) error
func (*PagesProject) ReferenceID ¶ added in v0.1.7
func (o *PagesProject) ReferenceID() string
type WorkerRoute ¶ added in v0.1.7
type WorkerRoute struct { registry.ResourceBase ZoneID fields.StringInputField `state:"force_new"` ScriptName fields.StringInputField `state:"force_new"` Pattern fields.StringInputField ID fields.StringOutputField }
func (*WorkerRoute) Create ¶ added in v0.1.7
func (o *WorkerRoute) Create(ctx context.Context, meta interface{}) error
func (*WorkerRoute) Delete ¶ added in v0.1.7
func (o *WorkerRoute) Delete(ctx context.Context, meta interface{}) error
func (*WorkerRoute) GetName ¶ added in v0.1.7
func (o *WorkerRoute) GetName() string
func (*WorkerRoute) Read ¶ added in v0.1.7
func (o *WorkerRoute) Read(ctx context.Context, meta interface{}) error
func (*WorkerRoute) ReferenceID ¶ added in v0.1.7
func (o *WorkerRoute) ReferenceID() string
type WorkerSchedulers ¶ added in v0.1.8
type WorkerSchedulers struct { registry.ResourceBase AccountID fields.StringInputField `state:"force_new"` ScriptName fields.StringInputField `state:"force_new"` Crons fields.ArrayInputField }
func (*WorkerSchedulers) Create ¶ added in v0.1.8
func (o *WorkerSchedulers) Create(ctx context.Context, meta interface{}) error
func (*WorkerSchedulers) Delete ¶ added in v0.1.8
func (o *WorkerSchedulers) Delete(ctx context.Context, meta interface{}) error
func (*WorkerSchedulers) GetName ¶ added in v0.1.8
func (o *WorkerSchedulers) GetName() string
func (*WorkerSchedulers) Read ¶ added in v0.1.8
func (o *WorkerSchedulers) Read(ctx context.Context, meta interface{}) error
func (*WorkerSchedulers) ReferenceID ¶ added in v0.1.8
func (o *WorkerSchedulers) ReferenceID() string
type WorkerScript ¶ added in v0.1.7
type WorkerScript struct { registry.ResourceBase ZoneID fields.StringInputField `state:"force_new"` Name fields.StringInputField `state:"force_new"` Hash fields.StringInputField EnvVars fields.MapInputField Path string `state:"-"` }
func (*WorkerScript) Create ¶ added in v0.1.7
func (o *WorkerScript) Create(ctx context.Context, meta interface{}) error
func (*WorkerScript) Delete ¶ added in v0.1.7
func (o *WorkerScript) Delete(ctx context.Context, meta interface{}) error
func (*WorkerScript) GetName ¶ added in v0.1.7
func (o *WorkerScript) GetName() string
func (*WorkerScript) Read ¶ added in v0.1.7
func (o *WorkerScript) Read(ctx context.Context, meta interface{}) error
func (*WorkerScript) ReferenceID ¶ added in v0.1.7
func (o *WorkerScript) ReferenceID() string
Click to show internal directories.
Click to hide internal directories.