Documentation
¶
Index ¶
- Constants
- Variables
- func BuildFieldsQueryParams(fields []string) string
- func NewApiStatusError(errBody []byte) error
- func UnmarshalJSONBoxResourceWrapper(data []byte, v BoxResource) error
- func UnmarshalJSONWrapper(data []byte, v any) error
- type APIConn
- func NewAPIConnWithAccessToken(accessToken string) *APIConn
- func NewAPIConnWithJwtConfig(reader io.Reader, loader JwtConfigLoader) (*APIConn, error)
- func NewAPIConnWithJwtConfigForUser(reader io.Reader, loader JwtConfigLoader, userId string) (*APIConn, error)
- func NewAPIConnWithRefreshToken(clientID string, clientSecret string, accessToken string, refreshToken string) *APIConn
- type APIConnRefreshNotifier
- type ApiOtherError
- type ApiStatusError
- type BatchRequest
- type BatchResponse
- type BoxEvent
- type BoxResource
- type BoxResourceType
- type Collaboration
- func (c *Collaboration) Create(targetItem ItemMini, grantedTo UserGroupMini, role Role, canViewPath *bool, ...) (*Collaboration, error)
- func (c *Collaboration) CreateReq(targetItem ItemMini, grantedTo UserGroupMini, role Role, canViewPath *bool, ...) *Request
- func (c *Collaboration) Delete(collaborationId string) error
- func (c *Collaboration) DeleteReq(collaborationId string) *Request
- func (c *Collaboration) GetInfo(collaborationId string, fields []string) (*Collaboration, error)
- func (c *Collaboration) GetInfoReq(collaborationId string, fields []string) *Request
- func (c *Collaboration) PendingCollaborations(offset int, limit int, fields []string) (pendingList []*Collaboration, outOffset int, outLimit int, outTotalCount int, ...)
- func (c *Collaboration) PendingCollaborationsReq(offset int, limit int, fields []string) *Request
- func (c *Collaboration) ResourceType() BoxResourceType
- func (c *Collaboration) SetAccessibleByEmailForNewUser(login string) *Collaboration
- func (c *Collaboration) SetAccessibleById(typ UserGroupType, id string) *Collaboration
- func (c *Collaboration) SetCanViewPath(canViewPath bool) *Collaboration
- func (c *Collaboration) SetItem(typ ItemType, id string) *Collaboration
- func (c *Collaboration) SetRole(role Role) *Collaboration
- func (c *Collaboration) String() string
- func (c *Collaboration) Update(collaborationId string, role Role, status *CollaborationStatus, ...) (*Collaboration, error)
- func (c *Collaboration) UpdateReq(collaborationId string, role Role, status *CollaborationStatus, ...) *Request
- type CollaborationStatus
- type ConfigurablePermissions
- type Enterprise
- type EnterpriseType
- type Event
- func (e *Event) EnterpriseEvent(streamPosition string, eventTypes []EventType, createdAfter *time.Time, ...) (events []*BoxEvent, nextStreamPosition string, err error)
- func (e *Event) UserEvent(streamType StreamType, streamPosition string, limit int) (events []*BoxEvent, nextStreamPosition string, err error)
- type EventType
- type File
- func (f *File) Collaborations(fileId string, marker string, limit int, fields []string) (outCollaborator []*Collaboration, nextMarker string, err error)
- func (f *File) CollaborationsReq(fileId string, marker string, limit int, fields []string) *Request
- func (f *File) Copy(fileId string, parentFolderId string, name string, version string, ...) (file *File, err error)
- func (f *File) CopyReq(fileId string, parentFolderId string, name string, version string, ...) *Request
- func (f *File) Delete(fileId string, ifMatch string) error
- func (f *File) DeleteReq(fileId string, ifMatch string) *Request
- func (f *File) DownloadFile(fileId string, fileVersion string, boxApiHeader string) (*Response, error)
- func (f *File) GetFileInfo(fileId string, needExpiringEmbedLink bool, fields []string) (*File, error)
- func (f *File) GetFileInfoReq(fileId string, needExpiringEmbedLink bool, fields []string) *Request
- func (f *File) LockFile(fileId string, expiresAt *time.Time, isDownloadPrevented *bool, ...) (file *File, err error)
- func (f *File) LockFileReq(fileId string, expiresAt *time.Time, isDownloadPrevented *bool, ...) *Request
- func (f *File) PreflightCheck(name string, parentFolderId string, size *int) (ok bool, err error)
- func (f *File) ResourceType() BoxResourceType
- func (f *File) SetDescription(description string) *File
- func (f *File) SetName(name string) *File
- func (f *File) SetParent(parentFolderId string) *File
- func (f *File) SetSharedLinkCollaborators(unsharedAt time.Time) *File
- func (f *File) SetSharedLinkCompany(unsharedAt time.Time, canDownload *bool) *File
- func (f *File) SetSharedLinkOpen(password string, passwordEnabled bool, unsharedAt time.Time, canDownload *bool) *File
- func (f *File) SetTags(tags []string) *File
- func (f *File) UnlockFile(fileId string, fields []string) (file *File, err error)
- func (f *File) UnlockFileReq(fileId string, fields []string) *Request
- func (f *File) Update(fileId string, ifMatch string, fields []string) (*File, error)
- func (f *File) UpdateReq(fileId string, ifMatch string, fields []string) *Request
- func (f *File) UploadFile(filename string, reader io.Reader, parentFolderId string, ...) (*File, error)
- func (f *File) UploadFileVersion(fileId string, reader io.Reader, filename *string, ...) (*File, error)
- type FileScope
- type FileVersion
- type Folder
- func (f *Folder) Collaborations(folderId string, fields []string) ([]*Collaboration, error)
- func (f *Folder) CollaborationsReq(folderId string, fields []string) *Request
- func (f *Folder) Copy(folderId string, parentFolderId string, newName string, fields []string) (*Folder, error)
- func (f *Folder) CopyReq(folderId string, parentFolderId string, newName string, fields []string) *Request
- func (f *Folder) Create(parentFolderId string, name string, fields []string) (*Folder, error)
- func (f *Folder) CreateReq(parentFolderId string, name string, fields []string) *Request
- func (f *Folder) Delete(folderId string, recursive bool, ifMatch string) error
- func (f *Folder) DeleteReq(folderId string, recursive bool, ifMatch string) *Request
- func (f *Folder) FolderItem(folderId string, offset int, limit int, sort string, sortDir string, ...) (outResources []BoxResource, outOffset, outLimit, outTotalCount int, err error)
- func (f *Folder) FolderItemReq(folderId string, offset int, limit int, sort string, sortDir string, ...) *Request
- func (f *Folder) GetInfo(folderId string, fields []string) (*Folder, error)
- func (f *Folder) GetInfoReq(folderId string, fields []string) *Request
- func (f *Folder) ResourceType() BoxResourceType
- func (f *Folder) SetCanNonOwnersInvite(b bool) *Folder
- func (f *Folder) SetDescription(description string) *Folder
- func (f *Folder) SetFolderUploadEmailAccess(fuea FolderUploadEmailAccess) *Folder
- func (f *Folder) SetIsCollaborationRestrictedToEnterprise(b bool) *Folder
- func (f *Folder) SetName(name string) *Folder
- func (f *Folder) SetSharedLinkCollaborators(unsharedAt time.Time) *Folder
- func (f *Folder) SetSharedLinkCompany(unsharedAt time.Time, canDownload *bool) *Folder
- func (f *Folder) SetSharedLinkOpen(password string, passwordEnabled bool, unsharedAt time.Time, canDownload *bool) *Folder
- func (f *Folder) SetSyncState(s string) *Folder
- func (f *Folder) SetTags(tags []string) *Folder
- func (f *Folder) String() string
- func (f *Folder) Update(folderId string, fields []string) (*Folder, error)
- func (f *Folder) UpdateReq(folderId string, fields []string) *Request
- type FolderUploadEmail
- type FolderUploadEmailAccess
- type Group
- func (g *Group) CreateGroup(fields []string) (*Group, error)
- func (g *Group) CreateGroupReq(fields []string) *Request
- func (g *Group) DeleteGroup(groupId string) error
- func (g *Group) DeleteGroupReq(groupId string) *Request
- func (g *Group) GetEnterpriseGroups(name string, offset int32, limit int32, fields []string) (outGroups []*Group, outOffset int, outLimit int, outTotalCount int, err error)
- func (g *Group) GetEnterpriseGroupsReq(name string, offset int32, limit int32, fields []string) *Request
- func (g *Group) GetGroup(groupId string, fields []string) (*Group, error)
- func (g *Group) GetGroupReq(groupId string, fields []string) *Request
- func (g *Group) ResourceType() BoxResourceType
- func (g *Group) SetDescription(description string) *Group
- func (g *Group) SetExternalSyncIdentifier(externalSyncIdentifier string) *Group
- func (g *Group) SetInvitabilityLevel(invitabilityLevel InvitabilityLevel) *Group
- func (g *Group) SetMemberViewabiityLevel(memberViewabilityLevel MemberViewabilityLevel) *Group
- func (g *Group) SetName(name string) *Group
- func (g *Group) SetProvenance(provenance string) *Group
- func (g *Group) UpdateGroup(groupId string, fields []string) (*Group, error)
- func (g *Group) UpdateGroupReq(groupId string, fields []string) *Request
- type InvitabilityLevel
- type ItemCollection
- type ItemMini
- type ItemType
- type JwtAuthClaim
- type JwtConfig
- type JwtConfigDefaultLoader
- type JwtConfigLoader
- type Lock
- type LogOptions
- type MemberViewabilityLevel
- type Membership
- func (m *Membership) CreateMembership() (*Membership, error)
- func (m *Membership) CreateMembershipReq() *Request
- func (m *Membership) DeleteMembership(membershipId string) error
- func (m *Membership) DeleteMembershipReq(membershipId string) *Request
- func (m *Membership) GetCollaborationsForGroup(groupId string, offset int32, limit int32) (outCollaborations []*Collaboration, outOffset int, outLimit int, ...)
- func (m *Membership) GetCollaborationsForGroupReq(groupId string, offset int32, limit int32) *Request
- func (m *Membership) GetMembership(membershipId string) (*Membership, error)
- func (m *Membership) GetMembershipForGroup(groupId string, offset int32, limit int32) (outMembership []*Membership, outOffset int, outLimit int, outTotalCount int, ...)
- func (m *Membership) GetMembershipForGroupReq(groupId string, offset int32, limit int32) *Request
- func (m *Membership) GetMembershipForUser(userId string, offset int32, limit int32) (outMembership []*Membership, outOffset int, outLimit int, outTotalCount int, ...)
- func (m *Membership) GetMembershipForUserReq(userId string, offset int32, limit int32) *Request
- func (m *Membership) GetMembershipReq(membershipId string) *Request
- func (m *Membership) ResourceType() BoxResourceType
- func (m *Membership) SetConfigurablePermissions(canRunReports, canInstantLogin, canCreateAccounts, canEditAccounts bool) *Membership
- func (m *Membership) SetGroup(groupId string) *Membership
- func (m *Membership) SetRole(role MembershipRole) *Membership
- func (m *Membership) SetUser(userId string) *Membership
- func (m *Membership) UpdateMembership(membershipId string) (*Membership, error)
- func (m *Membership) UpdateMembershipReq(membershipId string) *Request
- type MembershipRole
- type Metadata
- type Method
- type PathCollection
- type Permissions
- type Request
- type Response
- type Role
- type SharedLink
- type StreamType
- type User
- func (u *User) CreateAppUser(fields []string) (*User, error)
- func (u *User) CreateAppUserReq(fields []string) *Request
- func (u *User) CreateUser(fields []string) (*User, error)
- func (u *User) CreateUserReq(fields []string) *Request
- func (u *User) DeleteUser(userId string, notify bool, force bool) error
- func (u *User) DeleteUserReq(userId string, notify bool, force bool) *Request
- func (u *User) GetCurrentUser(fields []string) (*User, error)
- func (u *User) GetCurrentUserReq(fields []string) *Request
- func (u *User) GetEnterpriseUsers(filterTerm string, offset int, limit int, fields []string) (outUsers []*User, outOffset int, outLimit int, outTotalCount int, err error)
- func (u *User) GetEnterpriseUsersReq(filterTerm string, offset int, limit int, fields []string) *Request
- func (u *User) GetUser(userId string, fields []string) (*User, error)
- func (u *User) GetUserReq(userId string, fields []string) *Request
- func (u *User) ResourceType() BoxResourceType
- func (u *User) SetAddress(address string) *User
- func (u *User) SetCanSeeManagedUsers(canSeeManagedUsers bool) *User
- func (u *User) SetIsExemptFromDeviceLimits(isExemptFromDeviceLimits bool) *User
- func (u *User) SetIsExemptFromLoginVerification(isExemptFromLoginVerification bool) *User
- func (u *User) SetIsExternalCollabRestricted(isExternalCollabRestricted bool) *User
- func (u *User) SetIsPasswordResetRequired(b bool) *User
- func (u *User) SetIsSyncEnabled(isSyncEnabled bool) *User
- func (u *User) SetJobTitle(jobTitle string) *User
- func (u *User) SetLanguage(language string) *User
- func (u *User) SetLogin(login string) *User
- func (u *User) SetName(name string) *User
- func (u *User) SetPhone(phone string) *User
- func (u *User) SetRole(role UserRole) *User
- func (u *User) SetRollOutOfEnterprise(notify bool) *User
- func (u *User) SetSpaceAmount(spaceAmount int64) *User
- func (u *User) SetStatus(status UserStatus) *User
- func (u *User) SetTimezone(timezone string) *User
- func (u *User) SetTrackingCodes(trackingCodes []map[string]string) *User
- func (u *User) UpdateUser(userId string, fields []string) (*User, error)
- func (u *User) UpdateUserReq(userId string, fields []string) *Request
- type UserGroupMini
- type UserGroupType
- type UserRole
- type UserStatus
- type WatermarkInfo
Constants ¶
const ( )
const ( ContentTypeApplicationJson = "application/json" ContentTypeFormUrlEncoded = "application/x-www-form-urlencoded" )
const (
HttpHeaderRetryAfter = "Retry-After"
)
const (
VERSION = "0.2.0"
)
Variables ¶
var CollaborationAllFields = []string{"type", "id", "item", "accessible_by", "role", "expires_at",
"can_view_path", "status", "acknowledged_at", "created_by",
"created_at", "modified_at", "invite_email"}
var DefaultHTTPClient = &http.Client{
Transport: defaultTransport,
}
DefaultHTTPClient is used by every APIConn whose HTTPClient field is nil.
var FilesAllFields = []string{
"type", "id", "file_version", "sequence_id", "etag", "sha1", "name", "description",
"size", "path_collection", "created_at", "modified_at", "trashed_at", "purged_at",
"content_created_at", "content_modified_at", "expires_at", "created_by", "modified_by",
"owned_by", "shared_link", "parent", "item_status", "version_number", "comment_count",
"permissions", "tags", "lock", "extension", "is_package", "watermark_info",
"allowed_invitee_roles", "is_externally_owned", "has_collaborations", "metadata",
}
NOTICE
expiring_embed_link is excluded.
var FolderAllFields = []string{
"type", "id", "sequence_id", "etag", "name", "created_at", "modified_at",
"description", "size", "path_collection", "created_by", "modified_by", "trashed_at", "purged_at",
"content_created_at", "content_modified_at", "expires_at", "owned_by", "shared_link", "folder_upload_email", "parent",
"item_status", "item_collection", "sync_state", "has_collaborations", "permissions", "tags",
"can_non_owners_invite", "collections", "is_externally_owned", "is_collaboration_restricted_to_enterprise",
"allowed_shared_link_access_levels", "allowed_invitee_roles", "watermark_info", "metadata",
}
var GroupAllFields = []string{
"type", "id", "name", "created_at", "modified_at",
"provenance", "external_sync_identifier", "description",
"invitability_level", "member_viewability_level",
}
var Log *slog.Logger
Log is the structured logger used by the library. It is nil by default, which disables logging.
Request and response summaries are logged at slog.LevelDebug, retries at slog.LevelInfo and failed attempts at slog.LevelWarn. Set it to any *slog.Logger, for example:
goboxer.Log = slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: slog.LevelDebug}))
The Authorization header and secrets in form bodies (client_secret, refresh_token, ...) are masked.
var UserAllFields = []string{
"type", "id", "name", "login", "created_at", "modified_at",
"language", "timezone", "space_amount", "space_used", "max_upload_size",
"status", "job_title", "phone", "address", "avatar_url", "role",
"tracking_codes", "can_see_managed_users", "is_sync_enabled",
"is_external_collab_restricted", "is_exempt_from_device_limits",
"is_exempt_from_login_verification", "enterprise",
"my_tags", "hostname", "is_platform_access_only", "external_app_user_id",
}
Functions ¶
func BuildFieldsQueryParams ¶
func NewApiStatusError ¶
NewApiStatusError parses a Box API error response body into an ApiStatusError. If the body is not a valid error object, an ApiOtherError carrying the raw body is returned instead.
func UnmarshalJSONBoxResourceWrapper ¶
func UnmarshalJSONBoxResourceWrapper(data []byte, v BoxResource) error
func UnmarshalJSONWrapper ¶
Types ¶
type APIConn ¶
type APIConn struct {
ClientID string
ClientSecret string
AccessToken string
RefreshToken string
TokenURL string
RevokeURL string
BaseURL string
BaseUploadURL string
AuthorizationURL string
UserAgent string
LastRefresh time.Time
Expires float64
// MaxRequestAttempts is the total number of attempts for a request, including the first one.
// Requests are retried on HTTP 429 and 5xx responses. Values less than 1 are treated as the default (5).
MaxRequestAttempts int
// HTTPClient sends the requests of this connection. When nil, DefaultHTTPClient is used,
// which shares one connection pool across all connections.
//
// Set it to control proxies, TLS, timeouts or to inject a custom http.RoundTripper
// (for example for tests or tracing). Several APIConn values that should share a
// connection pool must be given the same *http.Client.
//
// Prefer timeouts on the Transport (dial, TLS handshake, ResponseHeaderTimeout) over
// http.Client.Timeout: the latter also limits reading the body, so it would cut off
// large DownloadFile streams.
HTTPClient *http.Client
RestrictedTo []*FileScope `json:"restricted_to"`
// contains filtered or unexported fields
}
APIConn is the structure for Box API connection
func NewAPIConnWithAccessToken ¶
NewAPIConnWithAccessToken allocates and returns a new Box API connection from AccessToken.
Instance created by this method can not refresh a AccessToken.
func NewAPIConnWithJwtConfig ¶
func NewAPIConnWithJwtConfig(reader io.Reader, loader JwtConfigLoader) (*APIConn, error)
NewAPIConnWithJwtConfig allocates and returns a new Box API connection from Jwt config.
The connection authenticates as the service account of the enterprise.
func NewAPIConnWithJwtConfigForUser ¶
func NewAPIConnWithJwtConfigForUser(reader io.Reader, loader JwtConfigLoader, userId string) (*APIConn, error)
NewAPIConnWithJwtConfigForUser allocates and returns a new Box API connection from Jwt config.
The connection authenticates as the user specified by userId.
func NewAPIConnWithRefreshToken ¶
func NewAPIConnWithRefreshToken(clientID string, clientSecret string, accessToken string, refreshToken string) *APIConn
NewAPIConnWithRefreshToken allocates and returns a new Box API connection from ClientID,ClientSecret,AccessToken,RefreshToken.
Instance created by this method can refresh a AccessToken.
func (*APIConn) Authenticate ¶
Authenticate a user with authCode
func (*APIConn) RestoreState ¶
RestoreState deserialize the Box API connection states.
func (*APIConn) SetAPIConnRefreshNotifier ¶
func (ac *APIConn) SetAPIConnRefreshNotifier(notifier APIConnRefreshNotifier)
SetAPIConnRefreshNotifier set APIConnRefreshNotifier
type APIConnRefreshNotifier ¶
type APIConnRefreshNotifier interface {
Success(apiConn *APIConn)
Fail(apiConn *APIConn, err error)
}
APIConnRefreshNotifier is the interface that notifies the refresh result AccessToken/RefreshToken
type ApiOtherError ¶
type ApiOtherError struct {
// contains filtered or unexported fields
}
ApiOtherError is returned when a request fails before or after talking to the Box API: building the request, network errors, or an unparsable response.
It wraps the underlying error, so errors.Is / errors.As work through it. When a response body was available it is included in the message.
func (*ApiOtherError) Error ¶
func (e *ApiOtherError) Error() string
func (*ApiOtherError) Unwrap ¶
func (e *ApiOtherError) Unwrap() error
Unwrap returns the underlying error.
type ApiStatusError ¶
type ApiStatusError struct {
Type string `json:"type"`
Status int `json:"status,omitempty"`
Code string `json:"code,omitempty"`
ContextInfo map[string]any `json:"context_info,omitempty"`
HelpUrl string `json:"help_url,omitempty"`
Message string `json:"message,omitempty"`
RequestId string `json:"request_id,omitempty"`
}
ApiStatusError is the error object returned by the Box API for a non-successful HTTP status.
Refer https://developer.box.com/reference#errors
func (*ApiStatusError) Error ¶
func (e *ApiStatusError) Error() string
func (*ApiStatusError) Unwrap ¶
func (e *ApiStatusError) Unwrap() error
Unwrap always returns nil; an ApiStatusError has no underlying error.
type BatchRequest ¶
type BatchRequest struct {
Request
}
func NewBatchRequest ¶
func NewBatchRequest(apiConn *APIConn) *BatchRequest
func (*BatchRequest) ExecuteBatch ¶
func (req *BatchRequest) ExecuteBatch(requests []*Request) (*BatchResponse, error)
Execute batch request
type BatchResponse ¶
type BoxEvent ¶
type BoxEvent struct {
Type string `json:"type"`
EventID string `json:"event_id"`
CreatedBy *UserGroupMini `json:"created_by"`
EventType EventType `json:"event_type"`
SessionID *string `json:"session_id,omitempty"`
SourceRaw json.RawMessage `json:"source,omitempty"`
AdditionalDetails map[string]any `json:"additional_details,omitempty"`
CreatedAt time.Time `json:"created_at"`
RecordedAt *time.Time `json:"recorded_at,omitempty"`
ActionBy *UserGroupMini `json:"action_by"`
// contains filtered or unexported fields
}
func (*BoxEvent) ResourceType ¶
func (be *BoxEvent) ResourceType() BoxResourceType
func (*BoxEvent) Source ¶
func (be *BoxEvent) Source() BoxResource
type BoxResource ¶
type BoxResource interface {
ResourceType() BoxResourceType
}
func ParseResource ¶
func ParseResource(jsonEntity []byte) (BoxResource, error)
ParseResource decodes a Box API object into the concrete resource type selected by its top-level "type" field. Supported types are file, folder, file_version, user, group, group_membership and collaboration.
An error is returned when the JSON is invalid, has no top-level "type" field, or names an unsupported type. When the type is supported but decoding the object fails, the partially decoded resource is returned together with the error.
type BoxResourceType ¶
type BoxResourceType int
const ( FileResource BoxResourceType = iota + 1 FileVersionResource FolderResource WebLinkResource UserResource GroupResource MembershipResource CollaborationResource CommentResource TaskResource EventResource CollectionResource )
type Collaboration ¶
type Collaboration struct {
Type *string `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
CreatedBy *UserGroupMini `json:"created_by,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
ModifiedAt *time.Time `json:"modified_at,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Status *CollaborationStatus `json:"status,omitempty"`
AccessibleBy *UserGroupMini `json:"accessible_by"`
InviteEmail *string `json:"invite_email,omitempty"`
Role *Role `json:"role,omitempty"`
AcknowledgedAt *time.Time `json:"acknowledged_at,omitempty"`
Item *ItemMini `json:"item,omitempty"`
CanViewPath *bool `json:"can_view_path,omitempty"`
// contains filtered or unexported fields
}
func NewCollaboration ¶
func NewCollaboration(api *APIConn) *Collaboration
func (*Collaboration) Create ¶
func (c *Collaboration) Create(targetItem ItemMini, grantedTo UserGroupMini, role Role, canViewPath *bool, fields []string, notify bool) (*Collaboration, error)
Create Collaboration
Create a new collaboration that grants a user or group access to a file or folder in a specific role. https://developer.box.com/reference#add-a-collaboration
func (*Collaboration) CreateReq ¶
func (c *Collaboration) CreateReq(targetItem ItemMini, grantedTo UserGroupMini, role Role, canViewPath *bool, fields []string, notify bool) *Request
Create Collaboration
Create a new collaboration that grants a user or group access to a file or folder in a specific role. https://developer.box.com/reference#add-a-collaboration
func (*Collaboration) Delete ¶
func (c *Collaboration) Delete(collaborationId string) error
Delete Collaboration
Delete a collaboration. https://developer.box.com/reference#edit-a-collaboration
func (*Collaboration) DeleteReq ¶
func (c *Collaboration) DeleteReq(collaborationId string) *Request
Delete Collaboration
Delete a collaboration. https://developer.box.com/reference#edit-a-collaboration
func (*Collaboration) GetInfo ¶
func (c *Collaboration) GetInfo(collaborationId string, fields []string) (*Collaboration, error)
Get Collaboration
Get information about a collaboration. https://developer.box.com/reference#get-collabs
func (*Collaboration) GetInfoReq ¶
func (c *Collaboration) GetInfoReq(collaborationId string, fields []string) *Request
Get Collaboration
Get information about a collaboration. https://developer.box.com/reference#get-collabs
func (*Collaboration) PendingCollaborations ¶
func (c *Collaboration) PendingCollaborations(offset int, limit int, fields []string) (pendingList []*Collaboration, outOffset int, outLimit int, outTotalCount int, err error)
Get all pending collaboration invites for a user.
func (*Collaboration) PendingCollaborationsReq ¶
func (c *Collaboration) PendingCollaborationsReq(offset int, limit int, fields []string) *Request
Pending Collaborations
Get all pending collaboration invites for a user. https://developer.box.com/reference#get-pending-collaborations
func (*Collaboration) ResourceType ¶
func (c *Collaboration) ResourceType() BoxResourceType
func (*Collaboration) SetAccessibleByEmailForNewUser ¶
func (c *Collaboration) SetAccessibleByEmailForNewUser(login string) *Collaboration
Set Accessible with email address (for Create) TODO Refactoring. Is this necessary?
func (*Collaboration) SetAccessibleById ¶
func (c *Collaboration) SetAccessibleById(typ UserGroupType, id string) *Collaboration
Set Accessible for box user (for Create) TODO Refactoring. Is this necessary?
func (*Collaboration) SetCanViewPath ¶
func (c *Collaboration) SetCanViewPath(canViewPath bool) *Collaboration
Set CanViewPath (for Create) TODO Refactoring. Is this necessary?
func (*Collaboration) SetItem ¶
func (c *Collaboration) SetItem(typ ItemType, id string) *Collaboration
Set target Item(file or folder) (for Create) TODO Refactoring. Is this necessary?
func (*Collaboration) SetRole ¶
func (c *Collaboration) SetRole(role Role) *Collaboration
Set Role of collaboration (for Create/Update) TODO Refactoring. Is this necessary?
func (*Collaboration) String ¶
func (c *Collaboration) String() string
func (*Collaboration) Update ¶
func (c *Collaboration) Update(collaborationId string, role Role, status *CollaborationStatus, canViewPath *bool, fields []string) (*Collaboration, error)
Update Collaboration
Update a collaboration. https://developer.box.com/reference#edit-a-collaboration
func (*Collaboration) UpdateReq ¶
func (c *Collaboration) UpdateReq(collaborationId string, role Role, status *CollaborationStatus, canViewPath *bool, fields []string) *Request
Update Collaboration
Update a collaboration. https://developer.box.com/reference#edit-a-collaboration
type CollaborationStatus ¶
type CollaborationStatus string
const ( COLLABORATION_STATUS_ACCEPTED CollaborationStatus = "accepted" COLLABORATION_STATUS_PENDING CollaborationStatus = "pending" COLLABORATION_STATUS_REJECTED CollaborationStatus = "rejected" )
func (*CollaborationStatus) MarshalJSON ¶
func (cs *CollaborationStatus) MarshalJSON() ([]byte, error)
func (*CollaborationStatus) String ¶
func (cs *CollaborationStatus) String() string
type ConfigurablePermissions ¶
type Enterprise ¶
type Enterprise struct {
Type EnterpriseType
Id string
Name string
}
func (*Enterprise) MarshalJSON ¶
func (e *Enterprise) MarshalJSON() ([]byte, error)
type EnterpriseType ¶
type EnterpriseType string
const ( EnterpriseTypeEnterprise EnterpriseType = "enterprise" EnterpriseTypeUser EnterpriseType = "user" EnterpriseTypeRolledOut EnterpriseType = "rolledout" )
func (*EnterpriseType) MarshalJSON ¶
func (et *EnterpriseType) MarshalJSON() ([]byte, error)
func (*EnterpriseType) String ¶
func (et *EnterpriseType) String() string
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) EnterpriseEvent ¶
func (e *Event) EnterpriseEvent(streamPosition string, eventTypes []EventType, createdAfter *time.Time, createdBefore *time.Time, limit int) (events []*BoxEvent, nextStreamPosition string, err error)
Enterprise Events
Retrieves up to a year' events for all users in an enterprise. https://developer.box.com/reference#get-events-in-an-enterprise
func (*Event) UserEvent ¶
func (e *Event) UserEvent(streamType StreamType, streamPosition string, limit int) (events []*BoxEvent, nextStreamPosition string, err error)
User Events
Use this to get events for a given user. A chunk of event objects is returned for the user based on the parameters passed in. Parameters indicating how many chunks are left as well as the next stream_position are also returned. https://developer.box.com/reference#get-events-for-a-user
type EventType ¶
type EventType string
const ( UNKNOWN_EVENT EventType = "UNKNOWN" // User event UE_ITEM_CREATE EventType = "ITEM_CREATE" UE_ITEM_UPLOAD EventType = "ITEM_UPLOAD" UE_COMMENT_CREATE EventType = "COMMENT_CREATE" UE_COMMENT_DELETE EventType = "COMMENT_DELETE" UE_ITEM_DOWNLOAD EventType = "ITEM_DOWNLOAD" UE_ITEM_PREVIEW EventType = "ITEM_PREVIEW" UE_ITEM_MOVE EventType = "ITEM_MOVE" UE_ITEM_COPY EventType = "ITEM_COPY" UE_TASK_ASSIGNMENT_CREATE EventType = "TASK_ASSIGNMENT_CREATE" UE_TASK_CREATE EventType = "TASK_CREATE" UE_LOCK_CREATE EventType = "LOCK_CREATE" UE_LOCK_DESTROY EventType = "LOCK_DESTROY" UE_ITEM_TRASH EventType = "ITEM_TRASH" UE_ITEM_UNDELETE_VIA_TRASH EventType = "ITEM_UNDELETE_VIA_TRASH" UE_COLLAB_ADD_COLLABORATOR EventType = "COLLAB_ADD_COLLABORATOR" UE_COLLAB_ROLE_CHANGE EventType = "COLLAB_ROLE_CHANGE" UE_COLLAB_INVITE_COLLABORATOR EventType = "COLLAB_INVITE_COLLABORATOR" UE_COLLAB_REMOVE_COLLABORATOR EventType = "COLLAB_REMOVE_COLLABORATOR" UE_ITEM_SYNC EventType = "ITEM_SYNC" UE_ITEM_UNSYNC EventType = "ITEM_UNSYNC" UE_ITEM_RENAME EventType = "ITEM_RENAME" UE_ITEM_SHARED_CREATE EventType = "ITEM_SHARED_CREATE" UE_ITEM_SHARED_UNSHARE EventType = "ITEM_SHARED_UNSHARE" UE_ITEM_SHARED EventType = "ITEM_SHARED" UE_ITEM_MAKE_CURRENT_VERSION EventType = "ITEM_MAKE_CURRENT_VERSION" UE_TAG_ITEM_CREATE EventType = "TAG_ITEM_CREATE" UE_ENABLE_TWO_FACTOR_AUTH EventType = "ENABLE_TWO_FACTOR_AUTH" UE_MASTER_INVITE_ACCEPT EventType = "MASTER_INVITE_ACCEPT" UE_MASTER_INVITE_REJECT EventType = "MASTER_INVITE_REJECT" UE_ACCESS_GRANTED EventType = "ACCESS_GRANTED" UE_ACCESS_REVOKED EventType = "ACCESS_REVOKED" UE_GROUP_ADD_USER EventType = "GROUP_ADD_USER" UE_GROUP_REMOVE_USER EventType = "GROUP_REMOVE_USER" // Enterprise event EE_GROUP_ADD_USER EventType = "GROUP_ADD_USER" EE_NEW_USER EventType = "NEW_USER" EE_GROUP_CREATION EventType = "GROUP_CREATION" EE_GROUP_DELETION EventType = "GROUP_DELETION" EE_DELETE_USER EventType = "DELETE_USER" EE_GROUP_EDITED EventType = "GROUP_EDITED" EE_EDIT_USER EventType = "EDIT_USER" EE_GROUP_REMOVE_USER EventType = "GROUP_REMOVE_USER" EE_ADMIN_LOGIN EventType = "ADMIN_LOGIN" EE_ADD_DEVICE_ASSOCIATION EventType = "ADD_DEVICE_ASSOCIATION" EE_CHANGE_FOLDER_PERMISSION EventType = "CHANGE_FOLDER_PERMISSION" EE_FAILED_LOGIN EventType = "FAILED_LOGIN" EE_LOGIN EventType = "LOGIN" EE_REMOVE_DEVICE_ASSOCIATION EventType = "REMOVE_DEVICE_ASSOCIATION" EE_DEVICE_TRUST_CHECK_FAILED EventType = "DEVICE_TRUST_CHECK_FAILED" EE_TERMS_OF_SERVICE_ACCEPT EventType = "TERMS_OF_SERVICE_ACCEPT" EE_TERMS_OF_SERVICE_REJECT EventType = "TERMS_OF_SERVICE_REJECT" EE_FILE_MARKED_MALICIOUS EventType = "FILE_MARKED_MALICIOUS" EE_COPY EventType = "COPY" EE_DELETE EventType = "DELETE" EE_DOWNLOAD EventType = "DOWNLOAD" EE_EDIT EventType = "EDIT" EE_LOCK EventType = "LOCK" EE_MOVE EventType = "MOVE" EE_PREVIEW EventType = "PREVIEW" EE_RENAME EventType = "RENAME" EE_STORAGE_EXPIRATION EventType = "STORAGE_EXPIRATION" EE_UNDELETE EventType = "UNDELETE" EE_UNLOCK EventType = "UNLOCK" EE_UPLOAD EventType = "UPLOAD" EE_SHARE EventType = "SHARE" EE_ITEM_SHARED_UPDATE EventType = "ITEM_SHARED_UPDATE" EE_UPDATE_SHARE_EXPIRATION EventType = "UPDATE_SHARE_EXPIRATION" EE_SHARE_EXPIRATION EventType = "SHARE_EXPIRATION" EE_UNSHARE EventType = "UNSHARE" EE_COLLABORATION_ACCEPT EventType = "COLLABORATION_ACCEPT" EE_COLLABORATION_ROLE_CHANGE EventType = "COLLABORATION_ROLE_CHANGE" EE_UPDATE_COLLABORATION_EXPIRATION EventType = "UPDATE_COLLABORATION_EXPIRATION" EE_COLLABORATION_REMOVE EventType = "COLLABORATION_REMOVE" EE_COLLABORATION_INVITE EventType = "COLLABORATION_INVITE" EE_COLLABORATION_EXPIRATION EventType = "COLLABORATION_EXPIRATION" EE_ITEM_SYNC EventType = "ITEM_SYNC" EE_ITEM_UNSYNC EventType = "ITEM_UNSYNC" EE_ADD_LOGIN_ACTIVITY_DEVICE EventType = "ADD_LOGIN_ACTIVITY_DEVICE" EE_REMOVE_LOGIN_ACTIVITY_DEVICE EventType = "REMOVE_LOGIN_ACTIVITY_DEVICE" EE_USER_AUTHENTICATE_OAUTH2_ACCESS_TOKEN_CREATE EventType = "USER_AUTHENTICATE_OAUTH2_ACCESS_TOKEN_CREATE" EE_CHANGE_ADMIN_ROLE EventType = "CHANGE_ADMIN_ROLE" EE_CONTENT_WORKFLOW_UPLOAD_POLICY_VIOLATION EventType = "CONTENT_WORKFLOW_UPLOAD_POLICY_VIOLATION" EE_METADATA_INSTANCE_CREATE EventType = "METADATA_INSTANCE_CREATE" EE_METADATA_INSTANCE_UPDATE EventType = "METADATA_INSTANCE_UPDATE" EE_METADATA_INSTANCE_DELETE EventType = "METADATA_INSTANCE_DELETE" EE_TASK_ASSIGNMENT_UPDATE EventType = "TASK_ASSIGNMENT_UPDATE" EE_TASK_ASSIGNMENT_CREATE EventType = "TASK_ASSIGNMENT_CREATE" EE_TASK_ASSIGNMENT_DELETE EventType = "TASK_ASSIGNMENT_DELETE" EE_TASK_CREATE EventType = "TASK_CREATE" EE_TASK_UPDATE EventType = "TASK_UPDATE" EE_COMMENT_CREATE EventType = "COMMENT_CREATE" EE_COMMENT_DELETE EventType = "COMMENT_DELETE" EE_DATA_RETENTION_REMOVE_RETENTION EventType = "DATA_RETENTION_REMOVE_RETENTION" EE_DATA_RETENTION_CREATE_RETENTION EventType = "DATA_RETENTION_CREATE_RETENTION" EE_RETENTION_POLICY_ASSIGNMENT_ADD EventType = "RETENTION_POLICY_ASSIGNMENT_ADD" EE_LEGAL_HOLD_ASSIGNMENT_CREATE EventType = "LEGAL_HOLD_ASSIGNMENT_CREATE" EE_LEGAL_HOLD_ASSIGNMENT_DELETE EventType = "LEGAL_HOLD_ASSIGNMENT_DELETE" EE_LEGAL_HOLD_POLICY_CREATE EventType = "LEGAL_HOLD_POLICY_CREATE" EE_LEGAL_HOLD_POLICY_UPDATE EventType = "LEGAL_HOLD_POLICY_UPDATE" EE_LEGAL_HOLD_POLICY_DELETE EventType = "LEGAL_HOLD_POLICY_DELETE" EE_CONTENT_WORKFLOW_SHARING_POLICY_VIOLATION EventType = "CONTENT_WORKFLOW_SHARING_POLICY_VIOLATION" EE_APPLICATION_PUBLIC_KEY_ADDED EventType = "APPLICATION_PUBLIC_KEY_ADDED" EE_APPLICATION_PUBLIC_KEY_DELETED EventType = "APPLICATION_PUBLIC_KEY_DELETED" EE_APPLICATION_CREATED EventType = "APPLICATION_CREATED" EE_CONTENT_WORKFLOW_POLICY_ADD EventType = "CONTENT_WORKFLOW_POLICY_ADD" EE_CONTENT_WORKFLOW_AUTOMATION_ADD EventType = "CONTENT_WORKFLOW_AUTOMATION_ADD" EE_CONTENT_WORKFLOW_AUTOMATION_DELETE EventType = "CONTENT_WORKFLOW_AUTOMATION_DELETE" EE_EMAIL_ALIAS_CONFIRM EventType = "EMAIL_ALIAS_CONFIRM" EE_EMAIL_ALIAS_REMOVE EventType = "EMAIL_ALIAS_REMOVE" EE_WATERMARK_LABEL_CREATE EventType = "WATERMARK_LABEL_CREATE" EE_WATERMARK_LABEL_DELETE EventType = "WATERMARK_LABEL_DELETE" EE_ACCESS_GRANTED EventType = "ACCESS_GRANTED" EE_ACCESS_REVOKED EventType = "ACCESS_REVOKED" EE_METADATA_TEMPLATE_CREATE EventType = "METADATA_TEMPLATE_CREATE" EE_METADATA_TEMPLATE_UPDATE EventType = "METADATA_TEMPLATE_UPDATE" EE_METADATA_TEMPLATE_DELETE EventType = "METADATA_TEMPLATE_DELETE" EE_ITEM_OPEN EventType = "ITEM_OPEN" EE_ITEM_MODIFY EventType = "ITEM_MODIFY" EE_CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY EventType = "CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY" EE_GROUP_REMOVE_ITEM EventType = "GROUP_REMOVE_ITEM" EE_GROUP_ADD_ITEM EventType = "GROUP_ADD_ITEM" EE_FILE_WATERMARKED_DOWNLOAD EventType = "FILE_WATERMARKED_DOWNLOAD" )
type File ¶
type File struct {
ItemMini
FileVersion *FileVersion `json:"file_version,omitempty"`
Sha1 *string `json:"sha1,omitempty"`
Description *string `json:"description,omitempty"`
Size float64 `json:"size,omitempty"`
PathCollection *PathCollection `json:"path_collection,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
ModifiedAt *time.Time `json:"modified_at,omitempty"`
TrashedAt *time.Time `json:"trashed_at,omitempty"`
PurgedAt *time.Time `json:"purged_at,omitempty"`
ContentCreatedAt *time.Time `json:"content_created_at,omitempty"`
ContentModifiedAt *time.Time `json:"content_modified_at,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
CreatedBy *UserGroupMini `json:"created_by,omitempty"`
ModifiedBy *UserGroupMini `json:"modified_by,omitempty"`
OwnedBy *UserGroupMini `json:"owned_by,omitempty"`
Parent *ItemMini `json:"parent,omitempty"`
ItemStatus *string `json:"item_status,omitempty"`
VersionNumber *string `json:"version_number,omitempty"`
CommentCount *int `json:"comment_count,omitempty"`
Permissions *Permissions `json:"permissions,omitempty"`
Tags []string `json:"tags,omitempty"`
Lock *Lock `json:"lock,omitempty"`
Extension *string `json:"extension,omitempty"`
IsPackage *bool `json:"is_package,omitempty"`
ExpiringEmbedLink *string `json:"expiring_embed_link,omitempty"`
WatermarkInfo *WatermarkInfo `json:"watermark_info,omitempty"`
AllowedInviteeRole []string `json:"allowed_invitee_roles,omitempty"`
IsExternallyOwned *bool `json:"is_externally_owned,omitempty"`
HasCollaborations *bool `json:"has_collaborations,omitempty"`
Metadata *Metadata `json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*File) Collaborations ¶
func (f *File) Collaborations(fileId string, marker string, limit int, fields []string) (outCollaborator []*Collaboration, nextMarker string, err error)
Get File Collaborations
Get all of the collaborations on a file (i.e. all of the users that have access to that file). https://developer.box.com/reference#get-file-collaborations
func (*File) CollaborationsReq ¶
Get File Collaborations
Get all of the collaborations on a file (i.e. all of the users that have access to that file). https://developer.box.com/reference#get-file-collaborations
func (*File) Copy ¶
func (f *File) Copy(fileId string, parentFolderId string, name string, version string, fields []string) (file *File, err error)
Copy File
Used to create a copy of a file in another folder. The original version of the file will not be altered. https://developer.box.com/reference#copy-a-file
func (*File) CopyReq ¶
func (f *File) CopyReq(fileId string, parentFolderId string, name string, version string, fields []string) *Request
Copy File
Used to create a copy of a file in another folder. The original version of the file will not be altered. https://developer.box.com/reference#copy-a-file
func (*File) Delete ¶
Delete File
Discards a file to the trash. The etag of the file can be included as an ‘If-Match’ header to prevent race conditions. https://developer.box.com/reference#delete-a-file
func (*File) DeleteReq ¶
Delete File
Discards a file to the trash. The etag of the file can be included as an ‘If-Match’ header to prevent race conditions. https://developer.box.com/reference#delete-a-file
func (*File) DownloadFile ¶
func (f *File) DownloadFile(fileId string, fileVersion string, boxApiHeader string) (*Response, error)
Download File Retrieves the actual data of the file. An optional version parameter can be set to download a previous version of the file. TODO add support for byte-range operation. TODO receive io.Writer ? TODO AS-USER support.
func (*File) GetFileInfo ¶
func (*File) GetFileInfoReq ¶
Get File Info Get information about a file.
func (*File) LockFile ¶
func (f *File) LockFile(fileId string, expiresAt *time.Time, isDownloadPrevented *bool, fields []string) (file *File, err error)
Lock https://developer.box.com/reference#lock-and-unlock
TODO consider the receiver type
func (*File) LockFileReq ¶
func (f *File) LockFileReq(fileId string, expiresAt *time.Time, isDownloadPrevented *bool, fields []string) *Request
Lock https://developer.box.com/reference#lock-and-unlock
TODO consider the receiver type
func (*File) PreflightCheck ¶
Preflight Check
func (*File) ResourceType ¶
func (f *File) ResourceType() BoxResourceType
func (*File) SetDescription ¶
func (*File) SetSharedLinkCollaborators ¶
func (*File) SetSharedLinkCompany ¶
func (*File) SetSharedLinkOpen ¶
func (*File) UnlockFile ¶
Unlock https://developer.box.com/reference#lock-and-unlock
TODO consider the receiver type
func (*File) UnlockFileReq ¶
Unlock https://developer.box.com/reference#lock-and-unlock
TODO consider the receiver type
func (*File) UpdateReq ¶
Update File Info
Update the information about a file, including renaming or moving the file. https://developer.box.com/reference#update-a-files-information TODO Editing passwords is not supported for shared links.(from API Reference)
func (*File) UploadFile ¶
func (f *File) UploadFile(filename string, reader io.Reader, parentFolderId string, contentCreatedAt *time.Time, contentModifiedAt *time.Time, contentMD5 *string) (*File, error)
Upload File Use the Upload API to allow users to add a new file. The user can then upload a file by specifying the destination folder for the file. If the user provides a file name that already exists in the destination folder, the user will receive an error.
TODO AS-USER support. TODO Refactoring
func (*File) UploadFileVersion ¶
func (f *File) UploadFileVersion(fileId string, reader io.Reader, filename *string, contentModifiedAt *time.Time, ifMatch *string, contentMD5 *string) (*File, error)
Upload File Version
Uploading a new file version is performed in the same way as uploading a file. This method is used to upload a new version of an existing file in a user’s account. https://developer.box.com/reference#upload-a-new-version-of-a-file-1 TODO AS-USER support. TODO Refactoring (memory inefficiency, and more)
type FileScope ¶
type FileScope struct {
Scope string `json:"scope"`
ObjectRaw json.RawMessage `json:"object"`
}
FileScope is a relation between a file and the scopes for which the file can be accessed
func (*FileScope) Object ¶
func (fs *FileScope) Object() BoxResource
Object returns a information of file or folder
type FileVersion ¶
type FileVersion struct {
Type string `json:"type,omitempty"`
ID string `json:"id,omitempty"`
Sha1 string `json:"sha1,omitempty"`
// contains filtered or unexported fields
}
func (*FileVersion) ResourceType ¶
func (fv *FileVersion) ResourceType() BoxResourceType
type Folder ¶
type Folder struct {
ItemMini
CreatedAt *time.Time `json:"created_at,omitempty"`
ModifiedAt *time.Time `json:"modified_at,omitempty"`
Description *string `json:"description,omitempty"`
Size float64 `json:"size,omitempty"`
PathCollection *PathCollection `json:"path_collection,omitempty"`
CreatedBy *UserGroupMini `json:"created_by,omitempty"`
ModifiedBy *UserGroupMini `json:"modified_by,omitempty"`
TrashedAt *time.Time `json:"trashed_at,omitempty"`
PurgedAt *time.Time `json:"purged_at,omitempty"`
ContentCreatedAt *time.Time `json:"content_created_at,omitempty"`
ContentModifiedAt *time.Time `json:"content_modified_at,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
OwnedBy *UserGroupMini `json:"owned_by,omitempty"`
FolderUploadEmail *FolderUploadEmail `json:"folder_upload_email,omitempty"`
Parent *ItemMini `json:"parent,omitempty"`
ItemStatus *string `json:"item_status,omitempty"`
ItemCollection *ItemCollection `json:"item_collection,omitempty"`
SyncState *string `json:"sync_state,omitempty"`
HasCollaborations *bool `json:"has_collaborations,omitempty"`
Permissions *Permissions `json:"permissions,omitempty"`
Tags []string `json:"tags,omitempty"`
CanNonOwnersInvite *bool `json:"can_non_owners_invite,omitempty"`
IsExternallyOwned *bool `json:"is_externally_owned,omitempty"`
IsCollaborationRestrictedToEnterprise *bool `json:"is_collaboration_restricted_to_enterprise,omitempty"`
AllowedInviteeRole []string `json:"allowed_invitee_roles,omitempty"`
WatermarkInfo *WatermarkInfo `json:"watermark_info,omitempty"`
Metadata *Metadata `json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*Folder) Collaborations ¶
func (f *Folder) Collaborations(folderId string, fields []string) ([]*Collaboration, error)
Get Folder Collaborations
Use this to get a list of all the collaborations on a folder i.e. all of the users that have access to that folder. https://developer.box.com/reference#view-a-folders-collaborations
func (*Folder) CollaborationsReq ¶
Get Folder Collaborations
Use this to get a list of all the collaborations on a folder i.e. all of the users that have access to that folder. https://developer.box.com/reference#view-a-folders-collaborations
func (*Folder) Copy ¶
func (f *Folder) Copy(folderId string, parentFolderId string, newName string, fields []string) (*Folder, error)
Copy Folder
Used to create a copy of a folder in another folder. The original version of the folder will not be altered. https://developer.box.com/reference#copy-a-folder
func (*Folder) CopyReq ¶
func (f *Folder) CopyReq(folderId string, parentFolderId string, newName string, fields []string) *Request
Copy Folder
Used to create a copy of a folder in another folder. The original version of the folder will not be altered. https://developer.box.com/reference#copy-a-folder
func (*Folder) Create ¶
Create Folder
Create a new folder. https://developer.box.com/reference#create-a-new-folder
func (*Folder) CreateReq ¶
Create Folder
Create a new folder. https://developer.box.com/reference#create-a-new-folder
func (*Folder) Delete ¶
Delete Folder
Move a folder to the trash. The recursive parameter must be included in order to delete folders that aren't empty. https://developer.box.com/reference#delete-a-folder
func (*Folder) DeleteReq ¶
Delete Folder
Move a folder to the trash. The recursive parameter must be included in order to delete folders that aren't empty. https://developer.box.com/reference#delete-a-folder
func (*Folder) FolderItem ¶
func (f *Folder) FolderItem(folderId string, offset int, limit int, sort string, sortDir string, fields []string) (outResources []BoxResource, outOffset, outLimit, outTotalCount int, err error)
Get Folder Items.
Gets all of the files, folders, or web links contained within a folder. https://developer.box.com/reference#get-a-folders-items
sort: "id", "name" or "date" sortDir: "ASC" or "DESC"
func (*Folder) FolderItemReq ¶
func (f *Folder) FolderItemReq(folderId string, offset int, limit int, sort string, sortDir string, fields []string) *Request
Get Folder Items.
Gets all of the files, folders, or web links contained within a folder. https://developer.box.com/reference#get-a-folders-items
sort: "id", "name" or "date" sortDir: "ASC" or "DESC"
func (*Folder) GetInfo ¶
Get Folder Info.
Get information about a folder. https://developer.box.com/reference#get-folder-info
func (*Folder) GetInfoReq ¶
Get Folder Info.
Get information about a folder. https://developer.box.com/reference#get-folder-info
func (*Folder) ResourceType ¶
func (f *Folder) ResourceType() BoxResourceType
func (*Folder) SetCanNonOwnersInvite ¶
Set CanNonOwnersInvite (for Update)
func (*Folder) SetDescription ¶
Set description (for Update)
func (*Folder) SetFolderUploadEmailAccess ¶
func (f *Folder) SetFolderUploadEmailAccess(fuea FolderUploadEmailAccess) *Folder
func (*Folder) SetIsCollaborationRestrictedToEnterprise ¶
Set IsCollaborationRestrictedToEnterprise (for Update)
func (*Folder) SetSharedLinkCollaborators ¶
Set SharedLink access level Collaborators (for Update)
func (*Folder) SetSharedLinkCompany ¶
Set SharedLink access level Company (for Update)
func (*Folder) SetSharedLinkOpen ¶
func (f *Folder) SetSharedLinkOpen(password string, passwordEnabled bool, unsharedAt time.Time, canDownload *bool) *Folder
Set SharedLink access level Open (for Update)
func (*Folder) SetSyncState ¶
Set SyncState (for Update)
func (*Folder) Update ¶
Update Folder
Update a folder. https://developer.box.com/reference#update-information-about-a-folder
type FolderUploadEmail ¶
type FolderUploadEmail struct {
Access *FolderUploadEmailAccess `json:"access,omitempty"`
Email *string `json:"email,omitempty"`
}
func (*FolderUploadEmail) SetAccess ¶
func (fue *FolderUploadEmail) SetAccess(access FolderUploadEmailAccess)
func (*FolderUploadEmail) String ¶
func (fue *FolderUploadEmail) String() string
type FolderUploadEmailAccess ¶
type FolderUploadEmailAccess string
const ( FolderUploadEmailAccessOpen FolderUploadEmailAccess = "open" FolderUploadEmailAccessCollaborators FolderUploadEmailAccess = "collaborators" )
func (*FolderUploadEmailAccess) MarshalJSON ¶
func (f *FolderUploadEmailAccess) MarshalJSON() ([]byte, error)
func (*FolderUploadEmailAccess) String ¶
func (f *FolderUploadEmailAccess) String() string
func (*FolderUploadEmailAccess) UnmarshalJSON ¶
func (f *FolderUploadEmailAccess) UnmarshalJSON(byte []byte) error
type Group ¶
type Group struct {
UserGroupMini
CreatedAt *time.Time `json:"created_at,omitempty"`
ModifiedAt *time.Time `json:"modified_at,omitempty"`
Provenance *string `json:"provenance,omitempty"`
ExternalSyncIdentifier *string `json:"external_sync_identifier,omitempty"`
Description *string `json:"description,omitempty"`
InvitabilityLevel *InvitabilityLevel `json:"invitability_level,omitempty"`
MemberViewabilityLevel *MemberViewabilityLevel `json:"member_viewability_level,omitempty"`
// contains filtered or unexported fields
}
func (*Group) CreateGroup ¶
Create Group
Create a new group. Only admin roles can create and manage groups. https://developer.box.com/reference#create-a-group
func (*Group) CreateGroupReq ¶
Create Group
Create a new group. Only admin roles can create and manage groups. https://developer.box.com/reference#create-a-group
func (*Group) DeleteGroup ¶
Delete Group
Delete a group. //https://developer.box.com/reference#delete-a-group
func (*Group) DeleteGroupReq ¶
Delete Group
Delete a group. //https://developer.box.com/reference#delete-a-group
func (*Group) GetEnterpriseGroups ¶
func (g *Group) GetEnterpriseGroups(name string, offset int32, limit int32, fields []string) (outGroups []*Group, outOffset int, outLimit int, outTotalCount int, err error)
Get Enterprise Groups
Returns all of the groups for given enterprise. Must have permissions to see an enterprise's groups. https://developer.box.com/reference#groups
func (*Group) GetEnterpriseGroupsReq ¶
func (g *Group) GetEnterpriseGroupsReq(name string, offset int32, limit int32, fields []string) *Request
Get Enterprise Groups
Returns all of the groups for given enterprise. Must have permissions to see an enterprise's groups. https://developer.box.com/reference#groups
func (*Group) GetGroup ¶
Get Group
Get information about a group. https://developer.box.com/reference#get-group
func (*Group) GetGroupReq ¶
Get Group
Get information about a group. https://developer.box.com/reference#get-group
func (*Group) ResourceType ¶
func (g *Group) ResourceType() BoxResourceType
func (*Group) SetDescription ¶
func (*Group) SetExternalSyncIdentifier ¶
func (*Group) SetInvitabilityLevel ¶
func (g *Group) SetInvitabilityLevel(invitabilityLevel InvitabilityLevel) *Group
func (*Group) SetMemberViewabiityLevel ¶
func (g *Group) SetMemberViewabiityLevel(memberViewabilityLevel MemberViewabilityLevel) *Group
func (*Group) SetProvenance ¶
func (*Group) UpdateGroup ¶
Update Group
Update a group. https://developer.box.com/reference#update-a-group
func (*Group) UpdateGroupReq ¶
Update Group
Update a group. https://developer.box.com/reference#update-a-group
type InvitabilityLevel ¶
type InvitabilityLevel string
const ( InvitabilityAdminsOnly InvitabilityLevel = "admins_only" InvitabilityAdminsMembers InvitabilityLevel = "admins_and_members" InvitabilityAllManagedUsers InvitabilityLevel = "all_managed_users" )
func (*InvitabilityLevel) MarshalJSON ¶
func (us *InvitabilityLevel) MarshalJSON() ([]byte, error)
func (*InvitabilityLevel) String ¶
func (us *InvitabilityLevel) String() string
type ItemCollection ¶
type ItemCollection struct {
TotalCount int `json:"total_count"`
Entries []BoxResource `json:"entries,omitempty"`
Offset int `json:"offset"`
Limit int `json:"limit"`
}
func (*ItemCollection) String ¶
func (ic *ItemCollection) String() string
func (*ItemCollection) UnmarshalJSON ¶
func (ic *ItemCollection) UnmarshalJSON(data []byte) error
type ItemMini ¶
type JwtAuthClaim ¶
type JwtAuthClaim struct {
// contains filtered or unexported fields
}
func NewJwtAuthClaim ¶
func NewJwtAuthClaim(config *JwtConfig, pkey any) (*JwtAuthClaim, error)
NewJwtAuthClaim creates a JwtAuthClaim for service account (enterprise) authentication.
func NewJwtAuthClaimForUser ¶
func NewJwtAuthClaimForUser(config *JwtConfig, pkey any, userId string) (*JwtAuthClaim, error)
NewJwtAuthClaimForUser creates a JwtAuthClaim for user authentication.
type JwtConfig ¶
type JwtConfig struct {
BoxAppSettings struct {
ClientID string `json:"clientID"`
ClientSecret string `json:"clientSecret"`
AppAuth struct {
PublicKeyID string `json:"publicKeyID"`
PrivateKey string `json:"privateKey"`
Passphrase string `json:"passphrase"`
} `json:"appAuth"`
} `json:"boxAppSettings"`
EnterpriseID string `json:"enterpriseID"`
}
type JwtConfigDefaultLoader ¶
type JwtConfigDefaultLoader struct{}
func (JwtConfigDefaultLoader) DecryptPrivateKey ¶
func (JwtConfigDefaultLoader) DecryptPrivateKey(jwtConfig *JwtConfig) (any, error)
type JwtConfigLoader ¶
type Lock ¶
type Lock struct {
Type *string `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
CreatedBy *UserGroupMini `json:"created_by,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
IsDownloadPrevented *bool `json:"is_download_prevented,omitempty"`
}
The lock held on a file.
type LogOptions ¶ added in v0.2.0
type LogOptions struct {
// RequestBody logs JSON and form encoded request bodies. Secrets in form bodies are masked.
RequestBody bool
// ResponseBody logs JSON response bodies once they have been read.
ResponseBody bool
}
LogOptions selects the optional details that are logged in addition to request and response summaries.
var LogOpts LogOptions
LogOpts configures what Log records. Bodies are not logged by default.
type MemberViewabilityLevel ¶
type MemberViewabilityLevel string
const ( MemberViewabilityAdminsOnly MemberViewabilityLevel = "admins_only" MemberViewabilityAdminsMembers MemberViewabilityLevel = "admins_and_members" MemberViewabilityAllManagedUsers MemberViewabilityLevel = "all_managed_users" )
func (*MemberViewabilityLevel) MarshalJSON ¶
func (us *MemberViewabilityLevel) MarshalJSON() ([]byte, error)
func (*MemberViewabilityLevel) String ¶
func (us *MemberViewabilityLevel) String() string
type Membership ¶
type Membership struct {
Type *string `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
User *UserGroupMini `json:"user,omitempty"`
Group *UserGroupMini `json:"group,omitempty"`
Role *MembershipRole `json:"role,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
ModifiedAt *time.Time `json:"modified_at,omitempty"`
ConfigurablePermissions *ConfigurablePermissions `json:"configurable_permissions,omitempty"`
// contains filtered or unexported fields
}
func NewMembership ¶
func NewMembership(api *APIConn) *Membership
func (*Membership) CreateMembership ¶
func (m *Membership) CreateMembership() (*Membership, error)
Create Membership
Add a member to a group. https://developer.box.com/reference#add-a-member-to-a-group
func (*Membership) CreateMembershipReq ¶
func (m *Membership) CreateMembershipReq() *Request
Create Membership
Add a member to a group. https://developer.box.com/reference#add-a-member-to-a-group
func (*Membership) DeleteMembership ¶
func (m *Membership) DeleteMembership(membershipId string) error
Delete Membership
Delete a group membership. https://developer.box.com/reference#delete-a-group-membership
func (*Membership) DeleteMembershipReq ¶
func (m *Membership) DeleteMembershipReq(membershipId string) *Request
Delete Membership
Delete a group membership. https://developer.box.com/reference#delete-a-group-membership
func (*Membership) GetCollaborationsForGroup ¶
func (m *Membership) GetCollaborationsForGroup(groupId string, offset int32, limit int32) (outCollaborations []*Collaboration, outOffset int, outLimit int, outTotalCount int, err error)
Get Collaborations for Group
Returns all of the group collaborations for a given group. Note this is only available to group admins. https://developer.box.com/reference#get-all-collaborations-for-a-group
func (*Membership) GetCollaborationsForGroupReq ¶
func (m *Membership) GetCollaborationsForGroupReq(groupId string, offset int32, limit int32) *Request
Get Collaborations for Group
Returns all of the group collaborations for a given group. Note this is only available to group admins. https://developer.box.com/reference#get-all-collaborations-for-a-group
func (*Membership) GetMembership ¶
func (m *Membership) GetMembership(membershipId string) (*Membership, error)
Get Membership
Fetches a specific group membership entry. https://developer.box.com/reference#get-a-group-membership-entry
func (*Membership) GetMembershipForGroup ¶
func (m *Membership) GetMembershipForGroup(groupId string, offset int32, limit int32) (outMembership []*Membership, outOffset int, outLimit int, outTotalCount int, err error)
Get Memberships for Group
Returns all of the members for a given group if the requesting user has access. https://developer.box.com/reference#get-the-membership-list-for-a-group
func (*Membership) GetMembershipForGroupReq ¶
func (m *Membership) GetMembershipForGroupReq(groupId string, offset int32, limit int32) *Request
Get Memberships for Group
Returns all of the members for a given group if the requesting user has access. https://developer.box.com/reference#get-the-membership-list-for-a-group
func (*Membership) GetMembershipForUser ¶
func (m *Membership) GetMembershipForUser(userId string, offset int32, limit int32) (outMembership []*Membership, outOffset int, outLimit int, outTotalCount int, err error)
Get Memberships for User
Returns all of the group memberships for a given user. Note this is only available to group admins. To retrieve group memberships for the user making the API request, use the users/me/memberships endpoint. https://developer.box.com/reference#get-all-group-memberships-for-a-user
func (*Membership) GetMembershipForUserReq ¶
func (m *Membership) GetMembershipForUserReq(userId string, offset int32, limit int32) *Request
Get Memberships for User
Returns all of the group memberships for a given user. Note this is only available to group admins. To retrieve group memberships for the user making the API request, use the users/me/memberships endpoint. https://developer.box.com/reference#get-all-group-memberships-for-a-user
func (*Membership) GetMembershipReq ¶
func (m *Membership) GetMembershipReq(membershipId string) *Request
Get Membership
Fetches a specific group membership entry. https://developer.box.com/reference#get-a-group-membership-entry
func (*Membership) ResourceType ¶
func (m *Membership) ResourceType() BoxResourceType
func (*Membership) SetConfigurablePermissions ¶
func (m *Membership) SetConfigurablePermissions(canRunReports, canInstantLogin, canCreateAccounts, canEditAccounts bool) *Membership
func (*Membership) SetGroup ¶
func (m *Membership) SetGroup(groupId string) *Membership
func (*Membership) SetRole ¶
func (m *Membership) SetRole(role MembershipRole) *Membership
func (*Membership) SetUser ¶
func (m *Membership) SetUser(userId string) *Membership
func (*Membership) UpdateMembership ¶
func (m *Membership) UpdateMembership(membershipId string) (*Membership, error)
Update Membership
Update a group membership. https://developer.box.com/reference#update-a-group-membership
func (*Membership) UpdateMembershipReq ¶
func (m *Membership) UpdateMembershipReq(membershipId string) *Request
Update Membership
Update a group membership. https://developer.box.com/reference#update-a-group-membership
type MembershipRole ¶
type MembershipRole string
const ( MembershipRoleAdmin MembershipRole = "admin" MembershipRoleMember MembershipRole = "member" )
func (*MembershipRole) MarshalJSON ¶
func (us *MembershipRole) MarshalJSON() ([]byte, error)
func (*MembershipRole) String ¶
func (us *MembershipRole) String() string
type PathCollection ¶
type PathCollection struct {
TotalCount int `json:"total_count"`
Entries []*ItemMini `json:"entries"`
}
func (*PathCollection) String ¶
func (pc *PathCollection) String() string
type Permissions ¶
type Permissions struct {
CanDownload *bool `json:"can_download,omitempty"`
CanPreview *bool `json:"can_preview,omitempty"`
CanUpload *bool `json:"can_upload,omitempty"`
CanComment *bool `json:"can_comment,omitempty"`
CanAnnotate *bool `json:"can_annotate,omitempty"`
CanRename *bool `json:"can_rename,omitempty"`
CanDelete *bool `json:"can_delete,omitempty"`
CanInviteCollaborator *bool `json:"can_invite_collaborator,omitempty"`
}
func (*Permissions) String ¶
func (p *Permissions) String() string
type Request ¶
func NewRequest ¶
func (*Request) AsUser ¶
Execute request as specified user
This functionality required "Perform actions as users" permission. See https://developer.box.com/reference#as-user-1
func (*Request) MarshalJSON ¶
type Response ¶
type Response struct {
Request *Request
ContentType string
Headers http.Header
Body io.ReadCloser
ResponseCode int
RTTInMillis int64
// contains filtered or unexported fields
}
Response is the result of a Request.
Body is streamed from the server and must be closed by the caller, exactly like http.Response.Body. Callers that want the whole body in memory should use ReadBody, which reads and closes it. Resource methods such as File.GetFileInfo decode the body themselves; only methods that return a *Response (for example File.DownloadFile and Request.Send) hand the stream to the caller.
type SharedLink ¶
type SharedLink struct {
// contains filtered or unexported fields
}
func (*SharedLink) MarshalJSON ¶
func (sl *SharedLink) MarshalJSON() (r []byte, err error)
func (*SharedLink) String ¶
func (sl *SharedLink) String() string
type StreamType ¶
type StreamType string
const ( All StreamType = "all" Changes StreamType = "changes" Sync StreamType = "sync" )
type User ¶
type User struct {
UserGroupMini
CreatedAt *time.Time `json:"created_at,omitempty"`
ModifiedAt *time.Time `json:"modified_at,omitempty"`
Language *string `json:"language,omitempty"`
Timezone *string `json:"timezone,omitempty"`
SpaceAmount int64 `json:"space_amount,omitempty"`
SpaceUsed int64 `json:"space_used,omitempty"`
MaxUploadSize int `json:"max_upload_size,omitempty"`
Status *UserStatus `json:"status,omitempty"`
JobTitle *string `json:"job_title,omitempty"`
Phone *string `json:"phone,omitempty"`
Address *string `json:"address,omitempty"`
AvatarUrl *string `json:"avatar_url,omitempty"`
Role *UserRole `json:"role,omitempty"`
TrackingCodes []map[string]string `json:"tracking_codes,omitempty"`
CanSeeManagedUsers *bool `json:"can_see_managed_users,omitempty"`
IsSyncEnabled *bool `json:"is_sync_enabled,omitempty"`
IsExternalCollabRestricted *bool `json:"is_external_collab_restricted,omitempty"`
IsExemptFromDeviceLimits *bool `json:"is_exempt_from_device_limits,omitempty"`
IsExemptFromLoginVerification *bool `json:"is_exempt_from_login_verification,omitempty"`
Enterprise *Enterprise `json:"enterprise,omitempty"`
MyTags *[]string `json:"my_tags,omitempty"`
Hostname *string `json:"hostname,omitempty"`
IsPlatformAccessOnly *bool `json:"is_platform_access_only,omitempty"`
ExternalAppUserId *string `json:"external_app_user_id,omitempty"`
IsPasswordResetRequired *bool `json:"is_password_reset_required,omitempty"`
NotifyRolledOut *bool `json:"notify,omitempty"`
// contains filtered or unexported fields
}
func (*User) CreateAppUser ¶
Create App User
Create a new app user in an enterprise. https://developer.box.com/reference#create-app-user
func (*User) CreateAppUserReq ¶
Create App User
Create a new app user in an enterprise. https://developer.box.com/reference#create-app-user
func (*User) CreateUser ¶
Create User
Create a new managed user in an enterprise. This method only works for Box admins. https://developer.box.com/reference#create-an-enterprise-user
func (*User) CreateUserReq ¶
Create User
Create a new managed user in an enterprise. This method only works for Box admins. https://developer.box.com/reference#create-an-enterprise-user
func (*User) DeleteUser ¶
Delete User
Delete a user. https://developer.box.com/reference#delete-an-enterprise-user
func (*User) DeleteUserReq ¶
Delete User
Delete a user. https://developer.box.com/reference#delete-an-enterprise-user
func (*User) GetCurrentUser ¶
Get User
Get information about a user in the enterprise. Requires enterprise administration authorization. https://developer.box.com/reference#users
func (*User) GetCurrentUserReq ¶
Get Current User
Get information about the user who is currently logged in (i.e. the user for whom this access token was generated). https://developer.box.com/reference#get-the-current-users-information
func (*User) GetEnterpriseUsers ¶
func (*User) GetEnterpriseUsersReq ¶
func (*User) GetUser ¶
Get User
Get information about a user in the enterprise. Requires enterprise administration authorization. https://developer.box.com/reference#users
func (*User) GetUserReq ¶
Get User
Get information about a user in the enterprise. Requires enterprise administration authorization. https://developer.box.com/reference#users
func (*User) ResourceType ¶
func (u *User) ResourceType() BoxResourceType
func (*User) SetAddress ¶
func (*User) SetCanSeeManagedUsers ¶
func (*User) SetIsExemptFromDeviceLimits ¶
func (*User) SetIsExemptFromLoginVerification ¶
func (*User) SetIsExternalCollabRestricted ¶
func (*User) SetIsPasswordResetRequired ¶
func (*User) SetIsSyncEnabled ¶
func (*User) SetJobTitle ¶
func (*User) SetLanguage ¶
func (*User) SetRollOutOfEnterprise ¶
func (*User) SetSpaceAmount ¶
func (*User) SetStatus ¶
func (u *User) SetStatus(status UserStatus) *User
func (*User) SetTimezone ¶
func (*User) SetTrackingCodes ¶
func (*User) UpdateUser ¶
Update User
Update the information for a user. https://developer.box.com/reference#update-a-users-information
func (*User) UpdateUserReq ¶
Update User
Update the information for a user. https://developer.box.com/reference#update-a-users-information
type UserGroupMini ¶
type UserGroupMini struct {
Type *UserGroupType `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Login *string `json:"login,omitempty"`
}
func (*UserGroupMini) IsUser ¶
func (u *UserGroupMini) IsUser() bool
func (*UserGroupMini) String ¶
func (u *UserGroupMini) String() string
type UserGroupType ¶
type UserGroupType string
const ( TYPE_USER UserGroupType = "user" TYPE_GROUP UserGroupType = "group" )
func (*UserGroupType) MarshalJSON ¶
func (u *UserGroupType) MarshalJSON() ([]byte, error)
func (*UserGroupType) String ¶
func (u *UserGroupType) String() string
type UserStatus ¶
type UserStatus string
const ( UserStatusActive UserStatus = "active" UserStatusInactive UserStatus = "inactive" UserStatusCannotDeleteEdit UserStatus = "cannot_delete_edit" UserStatusCannotDeleteEditUpload UserStatus = "cannot_delete_edit_upload" )
func (*UserStatus) MarshalJSON ¶
func (us *UserStatus) MarshalJSON() ([]byte, error)
func (*UserStatus) String ¶
func (us *UserStatus) String() string
type WatermarkInfo ¶
type WatermarkInfo struct {
IsWatermarked bool `json:"is_watermarked"`
}
func (*WatermarkInfo) String ¶
func (wi *WatermarkInfo) String() string
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
goboxer
command
|
|
|
goboxertokengen
command
|
|
|
parallel
command
|
|
|
sandbox
command
|