origin_post_quantum_encryption

package
v2.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error = apierror.Error

type OriginPostQuantumEncryptionGetParams

type OriginPostQuantumEncryptionGetParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id,required"`
}

type OriginPostQuantumEncryptionGetResponse

type OriginPostQuantumEncryptionGetResponse interface {
	ImplementsOriginPostQuantumEncryptionOriginPostQuantumEncryptionGetResponse()
}

Union satisfied by origin_post_quantum_encryption.OriginPostQuantumEncryptionGetResponseUnknown or shared.UnionString.

type OriginPostQuantumEncryptionGetResponseEnvelope

type OriginPostQuantumEncryptionGetResponseEnvelope struct {
	Errors   []OriginPostQuantumEncryptionGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []OriginPostQuantumEncryptionGetResponseEnvelopeMessages `json:"messages,required"`
	Result   OriginPostQuantumEncryptionGetResponse                   `json:"result,required"`
	// Whether the API call was successful
	Success OriginPostQuantumEncryptionGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    originPostQuantumEncryptionGetResponseEnvelopeJSON    `json:"-"`
}

func (*OriginPostQuantumEncryptionGetResponseEnvelope) UnmarshalJSON

func (r *OriginPostQuantumEncryptionGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type OriginPostQuantumEncryptionGetResponseEnvelopeErrors

type OriginPostQuantumEncryptionGetResponseEnvelopeErrors struct {
	Code    int64                                                    `json:"code,required"`
	Message string                                                   `json:"message,required"`
	JSON    originPostQuantumEncryptionGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*OriginPostQuantumEncryptionGetResponseEnvelopeErrors) UnmarshalJSON

func (r *OriginPostQuantumEncryptionGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type OriginPostQuantumEncryptionGetResponseEnvelopeMessages

type OriginPostQuantumEncryptionGetResponseEnvelopeMessages struct {
	Code    int64                                                      `json:"code,required"`
	Message string                                                     `json:"message,required"`
	JSON    originPostQuantumEncryptionGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*OriginPostQuantumEncryptionGetResponseEnvelopeMessages) UnmarshalJSON

func (r *OriginPostQuantumEncryptionGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type OriginPostQuantumEncryptionGetResponseEnvelopeSuccess

type OriginPostQuantumEncryptionGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	OriginPostQuantumEncryptionGetResponseEnvelopeSuccessTrue OriginPostQuantumEncryptionGetResponseEnvelopeSuccess = true
)

type OriginPostQuantumEncryptionService

type OriginPostQuantumEncryptionService struct {
	Options []option.RequestOption
}

OriginPostQuantumEncryptionService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewOriginPostQuantumEncryptionService method instead.

func NewOriginPostQuantumEncryptionService

func NewOriginPostQuantumEncryptionService(opts ...option.RequestOption) (r *OriginPostQuantumEncryptionService)

NewOriginPostQuantumEncryptionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*OriginPostQuantumEncryptionService) Get

Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when connecting to your origin. Preferred instructs Cloudflare to opportunistically send a Post-Quantum keyshare in the first message to the origin (for fastest connections when the origin supports and prefers PQ), supported means that PQ algorithms are advertised but only used when requested by the origin, and off means that PQ algorithms are not advertised

func (*OriginPostQuantumEncryptionService) Update

Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when connecting to your origin. Preferred instructs Cloudflare to opportunistically send a Post-Quantum keyshare in the first message to the origin (for fastest connections when the origin supports and prefers PQ), supported means that PQ algorithms are advertised but only used when requested by the origin, and off means that PQ algorithms are not advertised

type OriginPostQuantumEncryptionUpdateParams

type OriginPostQuantumEncryptionUpdateParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id,required"`
	// Value of the Origin Post Quantum Encryption Setting.
	Value param.Field[OriginPostQuantumEncryptionUpdateParamsValue] `json:"value,required"`
}

func (OriginPostQuantumEncryptionUpdateParams) MarshalJSON

func (r OriginPostQuantumEncryptionUpdateParams) MarshalJSON() (data []byte, err error)

type OriginPostQuantumEncryptionUpdateParamsValue

type OriginPostQuantumEncryptionUpdateParamsValue string

Value of the Origin Post Quantum Encryption Setting.

const (
	OriginPostQuantumEncryptionUpdateParamsValuePreferred OriginPostQuantumEncryptionUpdateParamsValue = "preferred"
	OriginPostQuantumEncryptionUpdateParamsValueSupported OriginPostQuantumEncryptionUpdateParamsValue = "supported"
	OriginPostQuantumEncryptionUpdateParamsValueOff       OriginPostQuantumEncryptionUpdateParamsValue = "off"
)

type OriginPostQuantumEncryptionUpdateResponse

type OriginPostQuantumEncryptionUpdateResponse interface {
	ImplementsOriginPostQuantumEncryptionOriginPostQuantumEncryptionUpdateResponse()
}

Union satisfied by origin_post_quantum_encryption.OriginPostQuantumEncryptionUpdateResponseUnknown or shared.UnionString.

type OriginPostQuantumEncryptionUpdateResponseEnvelope

type OriginPostQuantumEncryptionUpdateResponseEnvelope struct {
	Errors   []OriginPostQuantumEncryptionUpdateResponseEnvelopeErrors   `json:"errors,required"`
	Messages []OriginPostQuantumEncryptionUpdateResponseEnvelopeMessages `json:"messages,required"`
	Result   OriginPostQuantumEncryptionUpdateResponse                   `json:"result,required"`
	// Whether the API call was successful
	Success OriginPostQuantumEncryptionUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    originPostQuantumEncryptionUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*OriginPostQuantumEncryptionUpdateResponseEnvelope) UnmarshalJSON

func (r *OriginPostQuantumEncryptionUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type OriginPostQuantumEncryptionUpdateResponseEnvelopeErrors

type OriginPostQuantumEncryptionUpdateResponseEnvelopeErrors struct {
	Code    int64                                                       `json:"code,required"`
	Message string                                                      `json:"message,required"`
	JSON    originPostQuantumEncryptionUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

func (*OriginPostQuantumEncryptionUpdateResponseEnvelopeErrors) UnmarshalJSON

type OriginPostQuantumEncryptionUpdateResponseEnvelopeMessages

type OriginPostQuantumEncryptionUpdateResponseEnvelopeMessages struct {
	Code    int64                                                         `json:"code,required"`
	Message string                                                        `json:"message,required"`
	JSON    originPostQuantumEncryptionUpdateResponseEnvelopeMessagesJSON `json:"-"`
}

func (*OriginPostQuantumEncryptionUpdateResponseEnvelopeMessages) UnmarshalJSON

type OriginPostQuantumEncryptionUpdateResponseEnvelopeSuccess

type OriginPostQuantumEncryptionUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	OriginPostQuantumEncryptionUpdateResponseEnvelopeSuccessTrue OriginPostQuantumEncryptionUpdateResponseEnvelopeSuccess = true
)

Jump to

Keyboard shortcuts

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