Adding dep files and dependencies.
This commit is contained in:
parent
45f9efa578
commit
b341c0a0e4
539 changed files with 313111 additions and 0 deletions
28
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/interface.go
generated
vendored
Normal file
28
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/interface.go
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
package callback
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Unsupported struct {
|
||||
Callback Interface
|
||||
}
|
||||
|
||||
func (uc *Unsupported) Error() string {
|
||||
return fmt.Sprintf("Unsupported callback <%T>: %v", uc.Callback, uc.Callback)
|
||||
}
|
||||
|
||||
type Interface interface {
|
||||
// marker interface
|
||||
}
|
||||
|
||||
type Handler interface {
|
||||
// may return an Unsupported error on failure
|
||||
Handle(callbacks ...Interface) error
|
||||
}
|
||||
|
||||
type HandlerFunc func(callbacks ...Interface) error
|
||||
|
||||
func (f HandlerFunc) Handle(callbacks ...Interface) error {
|
||||
return f(callbacks...)
|
||||
}
|
27
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/interprocess.go
generated
vendored
Normal file
27
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/interprocess.go
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
package callback
|
||||
|
||||
import (
|
||||
"github.com/mesos/mesos-go/api/v0/upid"
|
||||
)
|
||||
|
||||
type Interprocess struct {
|
||||
client upid.UPID
|
||||
server upid.UPID
|
||||
}
|
||||
|
||||
func NewInterprocess() *Interprocess {
|
||||
return &Interprocess{}
|
||||
}
|
||||
|
||||
func (cb *Interprocess) Client() upid.UPID {
|
||||
return cb.client
|
||||
}
|
||||
|
||||
func (cb *Interprocess) Server() upid.UPID {
|
||||
return cb.server
|
||||
}
|
||||
|
||||
func (cb *Interprocess) Set(server, client upid.UPID) {
|
||||
cb.server = server
|
||||
cb.client = client
|
||||
}
|
17
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/name.go
generated
vendored
Normal file
17
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/name.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
package callback
|
||||
|
||||
type Name struct {
|
||||
name string
|
||||
}
|
||||
|
||||
func NewName() *Name {
|
||||
return &Name{}
|
||||
}
|
||||
|
||||
func (cb *Name) Get() string {
|
||||
return cb.name
|
||||
}
|
||||
|
||||
func (cb *Name) Set(name string) {
|
||||
cb.name = name
|
||||
}
|
20
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/password.go
generated
vendored
Normal file
20
vendor/github.com/mesos/mesos-go/api/v0/auth/callback/password.go
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
package callback
|
||||
|
||||
type Password struct {
|
||||
password []byte
|
||||
}
|
||||
|
||||
func NewPassword() *Password {
|
||||
return &Password{}
|
||||
}
|
||||
|
||||
func (cb *Password) Get() []byte {
|
||||
clone := make([]byte, len(cb.password))
|
||||
copy(clone, cb.password)
|
||||
return clone
|
||||
}
|
||||
|
||||
func (cb *Password) Set(password []byte) {
|
||||
cb.password = make([]byte, len(password))
|
||||
copy(cb.password, password)
|
||||
}
|
Reference in a new issue