// Profile gets the specific profile from the signer
Profile gets the specific profile from the signer
// Profile gets the specific profile from the signer
func Profile(s Signer, profile string) (*config.SigningProfile, error) {
	var p *config.SigningProfile
	policy := s.Policy()
	if policy != nil && policy.Profiles != nil && profile != "" {
		p = policy.Profiles[profile]
	}
	if p == nil && policy != nil {
		p = policy.Default
	}
	if p == nil {
		return nil, cferr.Wrap(cferr.APIClientError, cferr.ClientHTTPError, errors.New("profile must not be nil"))
	}
	return p, nil
}
func Profile ( s Signer , profile string ) ( * config . SigningProfile , error ) { var p * config . SigningProfile policy := s . Policy ( ) if policy != nil && policy . Profiles != nil && profile != " " { p = policy . Profiles [ profile ] } if p == nil && policy != nil { p = policy . Default } if p == nil { return nil , cferr . Wrap ( cferr . APIClientError , cferr . ClientHTTPError , errors . New ( " " ) ) } return p , nil }
Profile gets the specific profile from the signer
Profile gets the specific profile from the signer