github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/mtaclient/mta_client_operations.go (about)

     1  package mtaclient
     2  
     3  import (
     4  	"os"
     5  
     6  	"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/models"
     7  	"github.com/go-openapi/strfmt"
     8  )
     9  
    10  // MtaClientOperations drun drun drun
    11  type MtaClientOperations interface {
    12  	ExecuteAction(operationID, actionID string) (ResponseHeader, error)
    13  	GetMta(mtaID string) (*models.Mta, error)
    14  	GetMtaFiles(namespace *string) ([]*models.FileMetadata, error)
    15  	GetMtaOperation(operationID, embed string) (*models.Operation, error)
    16  	GetMtaOperationLogs(operationID string) ([]*models.Log, error)
    17  	GetMtaOperations(mtaId *string, last *int64, status []string) ([]*models.Operation, error)
    18  	GetMtas() ([]*models.Mta, error)
    19  	GetOperationActions(operationID string) ([]string, error)
    20  	StartMtaOperation(operation models.Operation) (ResponseHeader, error)
    21  	UploadMtaFile(file os.File, fileSize int64, namespace *string) (*models.FileMetadata, error)
    22  	UploadMtaArchiveFromUrl(fileUrl string, namespace *string) (*models.FileMetadata, error)
    23  	GetMtaOperationLogContent(operationID, logID string) (string, error)
    24  }
    25  
    26  // ResponseHeader response header
    27  type ResponseHeader struct {
    28  	Location strfmt.URI
    29  }