Documentation ¶
Index ¶
- Constants
- func GetAuthToken(uid string, vmid string) (string, error)
- func IsLoggedIn(uid string, vmid string) (string, bool)
- func RemoveAuthToken(uid string, vmid string) error
- func UpdateAuthToken(uid string, t AuthTable) error
- type AconClient
- type AconClientGrpc
- func (c *AconClientGrpc) AddBlob(alg uint32, blobpath string) error
- func (c *AconClientGrpc) AddManifest(manifestPath, sigPath, certPath string) (string, []string, error)
- func (c *AconClientGrpc) Close() error
- func (c *AconClientGrpc) Finalize() error
- func (c *AconClientGrpc) Inspect(cid uint32) ([]AconStatus, error)
- func (c *AconClientGrpc) Invoke(cid uint32, invocation []string, timeout uint64, env []string, datafile string, ...) ([]byte, []byte, error)
- func (c *AconClientGrpc) Kill(cid uint32, signum int32) error
- func (c *AconClientGrpc) Report(nonceLo, nonceHi uint64, requestType uint32) (data []byte, mrlog0 []string, mrlog1 []string, mrlog2 []string, ...)
- func (c *AconClientGrpc) Restart(cid uint32, timeout uint64) error
- func (c *AconClientGrpc) Start(imageId string, env []string) (uint32, error)
- type AconClientHttp
- func (c *AconClientHttp) AddBlob(alg uint32, blobpath string) error
- func (c *AconClientHttp) AddManifest(manifest, sig, cert string) (string, []string, error)
- func (c *AconClientHttp) Finalize() error
- func (c *AconClientHttp) Inspect(cid uint32) ([]AconStatus, error)
- func (c *AconClientHttp) Invoke(cid uint32, invocation []string, timeout uint64, env []string, datafile string, ...) ([]byte, []byte, error)
- func (c *AconClientHttp) Kill(cid uint32, signum int32) error
- func (c *AconClientHttp) Login(uid string) error
- func (c *AconClientHttp) Logout(uid string) error
- func (c *AconClientHttp) Report(nonceLo, nonceHi uint64, reqType uint32) (data []byte, mrlog0 []string, mrlog1 []string, mrlog2 []string, ...)
- func (c *AconClientHttp) Restart(cid uint32, timeout uint64) error
- func (c *AconClientHttp) Start(imageId string, env []string) (uint32, error)
- type AconStatus
- type AddManifestResponse
- type AuthCode
- type AuthTable
- type ExecResponse
- type GetManifestResponse
- type InspectResponse
- type MrLog
- type OpenidConfig
- type Opt
- type ReportResponse
- type StartResponse
Constants ¶
View Source
const ( UserRuntimeDir = "/run/user" AuthTableFile = "tokens.json" )
View Source
const (
CONFIG_URL_GOOGLE = "https://accounts.google.com/.well-known/openid-configuration"
)
View Source
const (
DefaultServiceTimeout = 60 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func RemoveAuthToken ¶
func UpdateAuthToken ¶
Types ¶
type AconClient ¶
type AconClient interface { AddManifest(manifestPath, sigPath, certPath string) (string, []string, error) AddBlob(alg uint32, blobpath string) error Finalize() error Start(imageId string, env []string) (uint32, error) Kill(cid uint32, signum int32) error Restart(cid uint32, timeout uint64) error Invoke(cid uint32, invocation []string, timeout uint64, env []string, datafile string, capSize uint64) ([]byte, []byte, error) Inspect(cid uint32) ([]AconStatus, error) Report(nonceLow, nonceHigh uint64, reportType uint32) (data []byte, mrlog0 []string, mrlog1 []string, mrlog2 []string, mrlog3 []string, attestData string, e error) }
type AconClientGrpc ¶
type AconClientGrpc struct { pb.AconServiceClient // contains filtered or unexported fields }
func NewAconGrpcConnection ¶
func NewAconGrpcConnection(targetConn string) (*AconClientGrpc, error)
caller's responsibility to call Close() on the returned AconClient after using the agent services
func (*AconClientGrpc) AddBlob ¶
func (c *AconClientGrpc) AddBlob(alg uint32, blobpath string) error
func (*AconClientGrpc) AddManifest ¶
func (c *AconClientGrpc) AddManifest(manifestPath, sigPath, certPath string) (string, []string, error)
func (*AconClientGrpc) Close ¶
func (c *AconClientGrpc) Close() error
func (*AconClientGrpc) Finalize ¶
func (c *AconClientGrpc) Finalize() error
func (*AconClientGrpc) Inspect ¶
func (c *AconClientGrpc) Inspect(cid uint32) ([]AconStatus, error)
type AconClientHttp ¶
type AconClientHttp struct {
// contains filtered or unexported fields
}
func NewAconHttpConnWithOpts ¶
func NewAconHttpConnWithOpts(host string, opts ...Opt) (*AconClientHttp, error)
func (*AconClientHttp) AddBlob ¶
func (c *AconClientHttp) AddBlob(alg uint32, blobpath string) error
func (*AconClientHttp) AddManifest ¶
func (c *AconClientHttp) AddManifest(manifest, sig, cert string) (string, []string, error)
func (*AconClientHttp) Finalize ¶
func (c *AconClientHttp) Finalize() error
func (*AconClientHttp) Inspect ¶
func (c *AconClientHttp) Inspect(cid uint32) ([]AconStatus, error)
func (*AconClientHttp) Login ¶
func (c *AconClientHttp) Login(uid string) error
func (*AconClientHttp) Logout ¶
func (c *AconClientHttp) Logout(uid string) error
type AconStatus ¶
type AddManifestResponse ¶
type ExecResponse ¶
type GetManifestResponse ¶
type InspectResponse ¶
type InspectResponse struct {
Info []AconStatus `json:"info"`
}
type OpenidConfig ¶
type OpenidConfig struct {
DeviceAuthEndpoint string `json:"device_authorization_endpoint"`
}
type Opt ¶
type Opt func(*AconClientHttp) error
func OptDialTLSContext ¶
func OptDialTLSContextInsecure ¶
func OptDialTLSContextInsecure() Opt
func OptTimeout ¶
type ReportResponse ¶
type StartResponse ¶
type StartResponse struct {
ContainerId uint32 `json:"container_id"`
}
Click to show internal directories.
Click to hide internal directories.