MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / readZipFile

Function readZipFile

util/archive_handler.go:129–136  ·  view source on GitHub ↗
(file *zip.File)

Source from the content-addressed store, hash-verified

127}
128
129func readZipFile(file *zip.File) ([]byte, error) {
130 reader, err := file.Open()
131 if err != nil {
132 return nil, err
133 }
134 defer reader.Close()
135 return io.ReadAll(reader)
136}
137
138// ParseDeploymentDescriptor parses the deployment descriptor which is located in the provided direcotry
139func ParseDeploymentDescriptor(deploymentDescriptorLocation string) (MtaDeploymentDescriptor, string, error) {

Callers 1

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected