コード例 #1
0
ファイル: sign.go プロジェクト: rswart/fleet
// GetSignatureSetOfJob retrieves the SignatureSet associated with the given
// job, or nil if none can be found
func (r *EtcdRegistry) GetSignatureSetOfJob(name string) *sign.SignatureSet {
	return r.GetSignatureSet(sign.TagForJob(name))
}
コード例 #2
0
ファイル: sign.go プロジェクト: rswart/fleet
func (r *EtcdRegistry) destroySignatureSetOfJob(name string) {
	r.DestroySignatureSet(sign.TagForJob(name))
}
コード例 #3
0
ファイル: sign.go プロジェクト: BillTheBest/fleet
// JobSignatureSet retrieves the SignatureSet associated with the given
// job, or nil if none can be found
func (r *EtcdRegistry) JobSignatureSet(name string) (*sign.SignatureSet, error) {
	// TODO(jonboulle): handle errors
	return r.getSignatureSet(sign.TagForJob(name)), nil
}