Documentation ¶
Index ¶
- func DateFromISOWeek(isoYear int, isoWeek int) (date time.Time)
- func ExtractGzip(file, destDir string, skipHidden bool) (root string, err error)
- func Latest(a, b string) string
- func ValidateCommonName(name string) (err error)
- func WithDeadline(ctx context.Context) (context.Context, context.CancelFunc)
- func WriteGzip(dir, file string) (err error)
- type Week
- type WeekIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateFromISOWeek ¶
Calculate the actual date which represents the start of the given ISOWeek
func ExtractGzip ¶
ExtractGzip extracts a gzipped archive to the specified directory and returns the path to the root level of the extracted archive. Caller must ensure that the destination directory exists.
func Latest ¶ added in v1.5.3
Helper method to return the latest string timestamp from the two RFC3339 timestamps
func ValidateCommonName ¶ added in v1.7.0
Validate a common name. The common name should not be empty, nor start with an "*" (e.g. a DNS wildcard). It should not start with a - and each label should be no more than 63 octets long. The common name should not have a scheme e.g. https:// prefix and it shouldn't have a port, e.g. example.com:443. Parsing is primarily based on a regular expression match from the cnre pattern.
func WithDeadline ¶ added in v1.7.0
Types ¶
type WeekIterator ¶
func GetWeekIterator ¶
Takes in a time range and returns a WeekIterator
func (*WeekIterator) Next ¶
func (i *WeekIterator) Next() (week *Week, ok bool)
Returns the next Week from the WeekIterator
Directories ¶
Path | Synopsis |
---|---|
Package wire is a store helper package that handles "wire" representations of the objects being managed in the store - e.g.
|
Package wire is a store helper package that handles "wire" representations of the objects being managed in the store - e.g. |