v1beta1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Perform CDN Invalidations on specific distributions.

Scheme: https Security:

  • jwt

SecurityDefinitions: jwt:

type: Bearer
name: Authorization
in: header

swagger:meta

Index

Constants

View Source
const ErrUserNotEntitled = "User is not entitled to the CloudFront Invalidation service"
View Source
const PathPrefix = "/api/v1beta1"

Variables

This section is empty.

Functions

func New

func New(router *mux.Router, ds *v1beta1.DistributionService) *mux.Router

Types

type DistributionService

type DistributionService interface {
	List(ctx context.Context) ([]string, error)
	CreateInvalidation(ctx context.Context, distributionName string, paths []string) (*v1beta1.InvalidationResponse, error)
	GetInvalidationStatus(ctx context.Context, distributionName string, invalidationID string) (*v1beta1.InvalidationResponse, error)
}

Jump to

Keyboard shortcuts

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