File: export_test.go

package info (click to toggle)
golang-gopkg-macaroon.v1 0.0~git20150121.0.ab3940c-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 128 kB
  • ctags: 146
  • sloc: makefile: 3
file content (14 lines) | stat: -rw-r--r-- 458 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package macaroon

// Data returns the macaroon's data.
func (m *Macaroon) Data() []byte {
	return m.data
}

// AddThirdPartyCaveatWithRand adds a third-party caveat to the macaroon, using
// the given source of randomness for encrypting the caveat id.
var AddThirdPartyCaveatWithRand = (*Macaroon).addThirdPartyCaveatWithRand

// MaxPacketLen is the maximum allowed length of a packet in the macaroon
// serialization format.
var MaxPacketLen = maxPacketLen