cf

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudflarePagesMaxSize      = 25 * 1024 * 1024
	CloudflarePagesMaxFileCount = 20000
	UploadConcurrency           = 3
	UploadBucketMaxFiles        = 5000
	UploadBucketMaxSize         = 50 * 1024 * 1024
)

Variables

Functions

func FixURL added in v0.1.7

func FixURL(url string) string

func ID added in v0.1.7

func ID(e env.Enver, resourceID string) string

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 PagesHashFile(f string) (string, error)

func RegisterTypes

func RegisterTypes(reg *registry.Registry)

func ShortShaID added in v0.1.7

func ShortShaID(id string) string

Types

type DNSRecord

func (*DNSRecord) Create

func (o *DNSRecord) Create(ctx context.Context, meta interface{}) error

func (*DNSRecord) Delete

func (o *DNSRecord) Delete(ctx context.Context, meta interface{}) error

func (*DNSRecord) GetName

func (o *DNSRecord) GetName() string

func (*DNSRecord) Read

func (o *DNSRecord) Read(ctx context.Context, meta interface{}) error

func (*DNSRecord) ReferenceID

func (o *DNSRecord) ReferenceID() string

func (*DNSRecord) Update

func (o *DNSRecord) Update(ctx context.Context, meta interface{}) error

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

func (*OriginCertificate) Read

func (o *OriginCertificate) Read(ctx context.Context, meta interface{}) error

func (*OriginCertificate) Update

func (o *OriginCertificate) Update(ctx context.Context, meta interface{}) error

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

func (*PagesDeployment) Update added in v0.1.7

func (o *PagesDeployment) Update(ctx context.Context, meta interface{}) error

type PagesFileInfo added in v0.1.7

type PagesFileInfo struct {
	Path        string
	Rel         string
	Hash        string
	Size        int64
	ContentType string
}

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 (o *PagesFiles) CalculateDiff(ctx context.Context, meta interface{}) (registry.DiffType, error)

func (*PagesFiles) GetName added in v0.1.7

func (o *PagesFiles) GetName() string

func (*PagesFiles) Process added in v0.1.7

func (o *PagesFiles) Process(ctx context.Context, meta interface{}) error

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

func (*PagesProject) Update added in v0.1.7

func (o *PagesProject) Update(ctx context.Context, meta interface{}) error

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

func (*WorkerRoute) Update added in v0.1.7

func (o *WorkerRoute) Update(ctx context.Context, meta interface{}) error

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

func (*WorkerSchedulers) Update added in v0.1.8

func (o *WorkerSchedulers) Update(ctx context.Context, meta interface{}) error

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

func (*WorkerScript) Update added in v0.1.7

func (o *WorkerScript) Update(ctx context.Context, meta interface{}) error

Jump to

Keyboard shortcuts

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