...

Source file src/github.com/opencontainers/image-spec/specs-go/v1/layout.go

Documentation: github.com/opencontainers/image-spec/specs-go/v1

     1  // Copyright 2016 The Linux Foundation
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package v1
    16  
    17  const (
    18  	// ImageLayoutFile is the file name containing ImageLayout in an OCI Image Layout
    19  	ImageLayoutFile = "oci-layout"
    20  	// ImageLayoutVersion is the version of ImageLayout
    21  	ImageLayoutVersion = "1.0.0"
    22  	// ImageIndexFile is the file name of the entry point for references and descriptors in an OCI Image Layout
    23  	ImageIndexFile = "index.json"
    24  	// ImageBlobsDir is the directory name containing content addressable blobs in an OCI Image Layout
    25  	ImageBlobsDir = "blobs"
    26  )
    27  
    28  // ImageLayout is the structure in the "oci-layout" file, found in the root
    29  // of an OCI Image-layout directory.
    30  type ImageLayout struct {
    31  	Version string `json:"imageLayoutVersion"`
    32  }
    33  

View as plain text