Documentation ¶
Index ¶
- type PluginContext
- func (c *PluginContext) CloudflareClient() *cloudflare.API
- func (c *PluginContext) Env() env.Enver
- func (c *PluginContext) FuncCache(key string, f func() (interface{}, error)) (interface{}, error)
- func (c *PluginContext) Settings() *Settings
- func (c *PluginContext) WranglerCloudflareClient() *WranglerCloudflareAPI
- type Settings
- type WranglerCloudflareAPI
- func (a *WranglerCloudflareAPI) CreatePagesDeployment(ctx context.Context, name string, manifest map[string]string) error
- func (a *WranglerCloudflareAPI) CreatePagesProject(ctx context.Context, name string) (cloudflare.PagesProject, error)
- func (a *WranglerCloudflareAPI) PagesAPI(name string) *WranglerCloudflarePagesAPI
- type WranglerCloudflarePagesAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginContext ¶
type PluginContext struct {
// contains filtered or unexported fields
}
func NewPluginContext ¶
func NewPluginContext(e env.Enver, cli *cloudflare.API, wranglerCli *WranglerCloudflareAPI, settings *Settings) *PluginContext
func (*PluginContext) CloudflareClient ¶
func (c *PluginContext) CloudflareClient() *cloudflare.API
func (*PluginContext) Env ¶
func (c *PluginContext) Env() env.Enver
func (*PluginContext) FuncCache ¶
func (c *PluginContext) FuncCache(key string, f func() (interface{}, error)) (interface{}, error)
func (*PluginContext) Settings ¶
func (c *PluginContext) Settings() *Settings
func (*PluginContext) WranglerCloudflareClient ¶ added in v0.1.7
func (c *PluginContext) WranglerCloudflareClient() *WranglerCloudflareAPI
type WranglerCloudflareAPI ¶ added in v0.1.7
type WranglerCloudflareAPI struct {
// contains filtered or unexported fields
}
func NewCloudflareClient ¶
func NewCloudflareClient(apiKey, apiEmail, apiToken, apiUserServiceKey, accountID string) (cli *cloudflare.API, wranglerCli *WranglerCloudflareAPI, err error)
func NewWranglerCloudflareAPI ¶ added in v0.1.7
func NewWranglerCloudflareAPI(api *cloudflare.API) *WranglerCloudflareAPI
func (*WranglerCloudflareAPI) CreatePagesDeployment ¶ added in v0.1.7
func (*WranglerCloudflareAPI) CreatePagesProject ¶ added in v0.1.7
func (a *WranglerCloudflareAPI) CreatePagesProject(ctx context.Context, name string) (cloudflare.PagesProject, error)
func (*WranglerCloudflareAPI) PagesAPI ¶ added in v0.1.7
func (a *WranglerCloudflareAPI) PagesAPI(name string) *WranglerCloudflarePagesAPI
type WranglerCloudflarePagesAPI ¶ added in v0.1.7
type WranglerCloudflarePagesAPI struct {
// contains filtered or unexported fields
}
func (*WranglerCloudflarePagesAPI) MissingHashes ¶ added in v0.1.7
func (*WranglerCloudflarePagesAPI) UploadBucket ¶ added in v0.1.7
func (a *WranglerCloudflarePagesAPI) UploadBucket(ctx context.Context, payload interface{}) error
func (*WranglerCloudflarePagesAPI) UpsertHashes ¶ added in v0.1.7
func (a *WranglerCloudflarePagesAPI) UpsertHashes(ctx context.Context, hashes []string) error
Click to show internal directories.
Click to hide internal directories.