Documentation
¶
Overview ¶
Package flatfile exposes the explicit flat-file signing provider adapter.
Index ¶
- type Binding
- type Error
- type PolicyUse
- type Resolver
- func (r *Resolver) Close(ctx context.Context) error
- func (*Resolver) Format(state fmt.State, _ rune)
- func (*Resolver) GoString() string
- func (*Resolver) MarshalJSON() ([]byte, error)
- func (r *Resolver) ResolvePolicy(ctx context.Context, tenant string, domain string, use PolicyUse, at time.Time) (dkim2.SigningProfile, error)
- func (*Resolver) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct {
// contains filtered or unexported fields
}
Binding is one opaque manifest-to-public-profile declaration.
func NewBinding ¶
func NewBinding( tenant string, domain string, use PolicyUse, handleID string, handle dkim2.PrivateKeyHandle, algorithm dkim2.Algorithm, publicDigest [sha256.Size]byte, ) (Binding, error)
NewBinding validates one exact key declaration against closed vocabularies.
func (Binding) MarshalJSON ¶
MarshalJSON emits an empty object without selection or key facts.
type PolicyUse ¶
type PolicyUse string
PolicyUse identifies one closed flat-file signing-policy selection.
const ( // PolicyOriginator selects an originator signing policy. PolicyOriginator PolicyUse = "originator" // PolicyOrdinaryTransit selects an ordinary-transit signing policy. PolicyOrdinaryTransit PolicyUse = "ordinary_transit" // PolicyDeliveryStatus selects a delivery-status signing policy. PolicyDeliveryStatus PolicyUse = "delivery_status" )
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is one opaque immutable flat-file profile projection.
func (*Resolver) MarshalJSON ¶
MarshalJSON emits an empty object without provider or binding facts.
Click to show internal directories.
Click to hide internal directories.