func (appleP AppleCTPolicy) Name() string {
	return "Apple"
}
Name returns label for the submission policy.
package ctpolicy
import (
	"github.com/google/certificate-transparency-go/loglist2"
	"github.com/google/certificate-transparency-go/x509"
)
type AppleCTPolicy struct{}
func (appleP AppleCTPolicy) LogsByGroup(cert *x509.Certificate, approved *loglist2.LogList) (LogPolicyData, error) {
	var incCount int
	switch m := lifetimeInMonths(cert); {
	case m < 15:
		incCount = 2
	case m <= 27:
		incCount = 3
	case m <= 39:
		incCount = 4
	default:
		incCount = 5
	}
	baseGroup, err := BaseGroupFor(approved, incCount)
	if err != nil {
		return nil, err
	}
	groups := LogPolicyData{baseGroup.Name: baseGroup}
	return groups, nil
}