rpc

package
v0.0.0-...-adc8916 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: AGPL-3.0, Apache-2.0, CC-BY-SA-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PassthroughTokenProvider

func PassthroughTokenProvider(ctx context.Context) ([]string, error)

Types

type Conn

type Conn struct {
	SendHeader         http.Header
	RedactHostInErrors bool
	// contains filtered or unexported fields
}

func NewConn

func NewConn(clusterID string, url *url.URL, insecure bool, tp TokenProvider) *Conn

func (*Conn) APIClientAuthorizationCreate

func (conn *Conn) APIClientAuthorizationCreate(ctx context.Context, options arvados.CreateOptions) (arvados.APIClientAuthorization, error)

func (*Conn) APIClientAuthorizationCurrent

func (conn *Conn) APIClientAuthorizationCurrent(ctx context.Context, options arvados.GetOptions) (arvados.APIClientAuthorization, error)

func (*Conn) APIClientAuthorizationDelete

func (conn *Conn) APIClientAuthorizationDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.APIClientAuthorization, error)

func (*Conn) APIClientAuthorizationGet

func (conn *Conn) APIClientAuthorizationGet(ctx context.Context, options arvados.GetOptions) (arvados.APIClientAuthorization, error)

func (*Conn) APIClientAuthorizationList

func (conn *Conn) APIClientAuthorizationList(ctx context.Context, options arvados.ListOptions) (arvados.APIClientAuthorizationList, error)

func (*Conn) APIClientAuthorizationUpdate

func (conn *Conn) APIClientAuthorizationUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.APIClientAuthorization, error)

func (*Conn) AuthorizedKeyCreate

func (conn *Conn) AuthorizedKeyCreate(ctx context.Context, options arvados.CreateOptions) (arvados.AuthorizedKey, error)

func (*Conn) AuthorizedKeyDelete

func (conn *Conn) AuthorizedKeyDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.AuthorizedKey, error)

func (*Conn) AuthorizedKeyGet

func (conn *Conn) AuthorizedKeyGet(ctx context.Context, options arvados.GetOptions) (arvados.AuthorizedKey, error)

func (*Conn) AuthorizedKeyList

func (conn *Conn) AuthorizedKeyList(ctx context.Context, options arvados.ListOptions) (arvados.AuthorizedKeyList, error)

func (*Conn) AuthorizedKeyUpdate

func (conn *Conn) AuthorizedKeyUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.AuthorizedKey, error)

func (*Conn) BaseURL

func (conn *Conn) BaseURL() url.URL

func (*Conn) CollectionCreate

func (conn *Conn) CollectionCreate(ctx context.Context, options arvados.CreateOptions) (arvados.Collection, error)

func (*Conn) CollectionDelete

func (conn *Conn) CollectionDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.Collection, error)

func (*Conn) CollectionGet

func (conn *Conn) CollectionGet(ctx context.Context, options arvados.GetOptions) (arvados.Collection, error)

func (*Conn) CollectionList

func (conn *Conn) CollectionList(ctx context.Context, options arvados.ListOptions) (arvados.CollectionList, error)

func (*Conn) CollectionProvenance

func (conn *Conn) CollectionProvenance(ctx context.Context, options arvados.GetOptions) (map[string]interface{}, error)

func (*Conn) CollectionTrash

func (conn *Conn) CollectionTrash(ctx context.Context, options arvados.DeleteOptions) (arvados.Collection, error)

func (*Conn) CollectionUntrash

func (conn *Conn) CollectionUntrash(ctx context.Context, options arvados.UntrashOptions) (arvados.Collection, error)

func (*Conn) CollectionUpdate

func (conn *Conn) CollectionUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.Collection, error)

func (*Conn) CollectionUsedBy

func (conn *Conn) CollectionUsedBy(ctx context.Context, options arvados.GetOptions) (map[string]interface{}, error)

func (*Conn) ComputedPermissionList

func (conn *Conn) ComputedPermissionList(ctx context.Context, options arvados.ListOptions) (arvados.ComputedPermissionList, error)

func (*Conn) ConfigGet

func (conn *Conn) ConfigGet(ctx context.Context) (json.RawMessage, error)

func (*Conn) ContainerCreate

func (conn *Conn) ContainerCreate(ctx context.Context, options arvados.CreateOptions) (arvados.Container, error)

func (*Conn) ContainerDelete

func (conn *Conn) ContainerDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.Container, error)

func (*Conn) ContainerGatewayTunnel

func (conn *Conn) ContainerGatewayTunnel(ctx context.Context, options arvados.ContainerGatewayTunnelOptions) (tunnelconn arvados.ConnectionResponse, err error)

ContainerGatewayTunnel returns a connection to a yamux session on the controller. The caller should connect the returned resp.Conn to a client-side yamux session.

func (*Conn) ContainerGet

func (conn *Conn) ContainerGet(ctx context.Context, options arvados.GetOptions) (arvados.Container, error)

func (*Conn) ContainerList

func (conn *Conn) ContainerList(ctx context.Context, options arvados.ListOptions) (arvados.ContainerList, error)

func (*Conn) ContainerLock

func (conn *Conn) ContainerLock(ctx context.Context, options arvados.GetOptions) (arvados.Container, error)

func (*Conn) ContainerPriorityUpdate

func (conn *Conn) ContainerPriorityUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.Container, error)

func (*Conn) ContainerRequestContainerStatus

func (conn *Conn) ContainerRequestContainerStatus(ctx context.Context, options arvados.GetOptions) (arvados.ContainerStatus, error)

func (*Conn) ContainerRequestCreate

func (conn *Conn) ContainerRequestCreate(ctx context.Context, options arvados.CreateOptions) (arvados.ContainerRequest, error)

func (*Conn) ContainerRequestDelete

func (conn *Conn) ContainerRequestDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.ContainerRequest, error)

func (*Conn) ContainerRequestGet

func (conn *Conn) ContainerRequestGet(ctx context.Context, options arvados.GetOptions) (arvados.ContainerRequest, error)

func (*Conn) ContainerRequestList

func (conn *Conn) ContainerRequestList(ctx context.Context, options arvados.ListOptions) (arvados.ContainerRequestList, error)

func (*Conn) ContainerRequestLog

func (conn *Conn) ContainerRequestLog(ctx context.Context, options arvados.ContainerLogOptions) (resp http.Handler, err error)

func (*Conn) ContainerRequestUpdate

func (conn *Conn) ContainerRequestUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.ContainerRequest, error)

func (*Conn) ContainerSSH

func (conn *Conn) ContainerSSH(ctx context.Context, options arvados.ContainerSSHOptions) (sshconn arvados.ConnectionResponse, err error)

ContainerSSH returns a connection to the out-of-band SSH server for a running container. If the returned error is nil, the caller is responsible for closing sshconn.Conn.

func (*Conn) ContainerUnlock

func (conn *Conn) ContainerUnlock(ctx context.Context, options arvados.GetOptions) (arvados.Container, error)

func (*Conn) ContainerUpdate

func (conn *Conn) ContainerUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.Container, error)

func (*Conn) DiscoveryDocument

func (conn *Conn) DiscoveryDocument(ctx context.Context) (arvados.DiscoveryDocument, error)

func (*Conn) GroupContents

func (conn *Conn) GroupContents(ctx context.Context, options arvados.GroupContentsOptions) (arvados.ObjectList, error)

func (*Conn) GroupCreate

func (conn *Conn) GroupCreate(ctx context.Context, options arvados.CreateOptions) (arvados.Group, error)

func (*Conn) GroupDelete

func (conn *Conn) GroupDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.Group, error)

func (*Conn) GroupGet

func (conn *Conn) GroupGet(ctx context.Context, options arvados.GetOptions) (arvados.Group, error)

func (*Conn) GroupList

func (conn *Conn) GroupList(ctx context.Context, options arvados.ListOptions) (arvados.GroupList, error)

func (*Conn) GroupShared

func (conn *Conn) GroupShared(ctx context.Context, options arvados.ListOptions) (arvados.GroupList, error)

func (*Conn) GroupTrash

func (conn *Conn) GroupTrash(ctx context.Context, options arvados.DeleteOptions) (arvados.Group, error)

func (*Conn) GroupUntrash

func (conn *Conn) GroupUntrash(ctx context.Context, options arvados.UntrashOptions) (arvados.Group, error)

func (*Conn) GroupUpdate

func (conn *Conn) GroupUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.Group, error)

func (*Conn) LinkCreate

func (conn *Conn) LinkCreate(ctx context.Context, options arvados.CreateOptions) (arvados.Link, error)

func (*Conn) LinkDelete

func (conn *Conn) LinkDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.Link, error)

func (*Conn) LinkGet

func (conn *Conn) LinkGet(ctx context.Context, options arvados.GetOptions) (arvados.Link, error)
func (conn *Conn) LinkList(ctx context.Context, options arvados.ListOptions) (arvados.LinkList, error)

func (*Conn) LinkUpdate

func (conn *Conn) LinkUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.Link, error)

func (*Conn) LogCreate

func (conn *Conn) LogCreate(ctx context.Context, options arvados.CreateOptions) (arvados.Log, error)

func (*Conn) LogDelete

func (conn *Conn) LogDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.Log, error)

func (*Conn) LogGet

func (conn *Conn) LogGet(ctx context.Context, options arvados.GetOptions) (arvados.Log, error)

func (*Conn) LogList

func (conn *Conn) LogList(ctx context.Context, options arvados.ListOptions) (arvados.LogList, error)

func (*Conn) LogUpdate

func (conn *Conn) LogUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.Log, error)

func (*Conn) Login

func (conn *Conn) Login(ctx context.Context, options arvados.LoginOptions) (arvados.LoginResponse, error)

func (*Conn) Logout

func (conn *Conn) Logout(ctx context.Context, options arvados.LogoutOptions) (arvados.LogoutResponse, error)

func (*Conn) SysTrashSweep

func (conn *Conn) SysTrashSweep(ctx context.Context, options struct{}) (struct{}, error)

func (*Conn) UserActivate

func (conn *Conn) UserActivate(ctx context.Context, options arvados.UserActivateOptions) (arvados.User, error)

func (*Conn) UserAuthenticate

func (conn *Conn) UserAuthenticate(ctx context.Context, options arvados.UserAuthenticateOptions) (arvados.APIClientAuthorization, error)

func (*Conn) UserBatchUpdate

func (conn *Conn) UserBatchUpdate(ctx context.Context, options arvados.UserBatchUpdateOptions) (arvados.UserList, error)

func (*Conn) UserCreate

func (conn *Conn) UserCreate(ctx context.Context, options arvados.CreateOptions) (arvados.User, error)

func (*Conn) UserDelete

func (conn *Conn) UserDelete(ctx context.Context, options arvados.DeleteOptions) (arvados.User, error)

func (*Conn) UserGet

func (conn *Conn) UserGet(ctx context.Context, options arvados.GetOptions) (arvados.User, error)

func (*Conn) UserGetCurrent

func (conn *Conn) UserGetCurrent(ctx context.Context, options arvados.GetOptions) (arvados.User, error)

func (*Conn) UserGetSystem

func (conn *Conn) UserGetSystem(ctx context.Context, options arvados.GetOptions) (arvados.User, error)

func (*Conn) UserList

func (conn *Conn) UserList(ctx context.Context, options arvados.ListOptions) (arvados.UserList, error)

func (*Conn) UserMerge

func (conn *Conn) UserMerge(ctx context.Context, options arvados.UserMergeOptions) (arvados.User, error)

func (*Conn) UserSessionCreate

func (conn *Conn) UserSessionCreate(ctx context.Context, options UserSessionCreateOptions) (arvados.LoginResponse, error)

func (*Conn) UserSetup

func (conn *Conn) UserSetup(ctx context.Context, options arvados.UserSetupOptions) (map[string]interface{}, error)

func (*Conn) UserUnsetup

func (conn *Conn) UserUnsetup(ctx context.Context, options arvados.GetOptions) (arvados.User, error)

func (*Conn) UserUpdate

func (conn *Conn) UserUpdate(ctx context.Context, options arvados.UpdateOptions) (arvados.User, error)

func (*Conn) VocabularyGet

func (conn *Conn) VocabularyGet(ctx context.Context) (arvados.Vocabulary, error)

type TokenProvider

type TokenProvider func(context.Context) ([]string, error)

type UserSessionAuthInfo

type UserSessionAuthInfo struct {
	UserUUID        string    `json:"user_uuid"`
	Email           string    `json:"email"`
	AlternateEmails []string  `json:"alternate_emails"`
	FirstName       string    `json:"first_name"`
	LastName        string    `json:"last_name"`
	Username        string    `json:"username"`
	ExpiresAt       time.Time `json:"expires_at"`
}

type UserSessionCreateOptions

type UserSessionCreateOptions struct {
	AuthInfo UserSessionAuthInfo `json:"auth_info"`
	ReturnTo string              `json:"return_to"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL