...

Package signer

import "github.com/theupdateframework/go-tuf/internal/signer"
Overview
Index

Overview ▾

type ByIDs

ByIDs implements sort.Interface for []keys.Signer based on the sorted public IDs() for each Signer. This facilitates deterministic order of signatures, which prevents tests that use fixtures from being flaky.

type ByIDs []keys.Signer

func (ByIDs) Len

func (b ByIDs) Len() int

func (ByIDs) Less

func (b ByIDs) Less(i, j int) bool

func (ByIDs) Swap

func (b ByIDs) Swap(i, j int)