github.com/sealerio/sealer@v0.11.1-0.20240507115618-f4f89c5853ae/build/kubefile/parser/image_engine_test.go (about)

     1  // Copyright © 2022 Alibaba Group Holding Ltd.
     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 parser
    16  
    17  import (
    18  	"github.com/containers/common/libimage"
    19  	"github.com/opencontainers/go-digest"
    20  
    21  	v1 "github.com/sealerio/sealer/pkg/define/image/v1"
    22  	"github.com/sealerio/sealer/pkg/define/options"
    23  )
    24  
    25  type testImageEngine struct{}
    26  
    27  func (testImageEngine) Build(sealerBuildFlags *options.BuildOptions) (string, error) {
    28  	//TODO implement me
    29  	panic("implement me")
    30  }
    31  
    32  func (testImageEngine) Config(opts *options.ConfigOptions) error {
    33  	//TODO implement me
    34  	panic("implement me")
    35  }
    36  
    37  func (testImageEngine) CreateContainer(opts *options.FromOptions) (string, error) {
    38  	//TODO implement me
    39  	panic("implement me")
    40  }
    41  
    42  func (testImageEngine) Mount(opts *options.MountOptions) ([]options.JSONMount, error) {
    43  	//TODO implement me
    44  	panic("implement me")
    45  }
    46  
    47  func (testImageEngine) Copy(opts *options.CopyOptions) error {
    48  	//TODO implement me
    49  	panic("implement me")
    50  }
    51  
    52  func (testImageEngine) Commit(opts *options.CommitOptions) (string, error) {
    53  	//TODO implement me
    54  	panic("implement me")
    55  }
    56  
    57  func (testImageEngine) Login(opts *options.LoginOptions) error {
    58  	//TODO implement me
    59  	panic("implement me")
    60  }
    61  
    62  func (testImageEngine) Logout(opts *options.LogoutOptions) error {
    63  	//TODO implement me
    64  	panic("implement me")
    65  }
    66  
    67  func (testImageEngine) Push(opts *options.PushOptions) error {
    68  	//TODO implement me
    69  	panic("implement me")
    70  }
    71  
    72  func (testImageEngine) Pull(opts *options.PullOptions) (string, error) {
    73  	return "", nil
    74  }
    75  
    76  func (testImageEngine) Images(opts *options.ImagesOptions) error {
    77  	//TODO implement me
    78  	panic("implement me")
    79  }
    80  
    81  func (testImageEngine) Save(opts *options.SaveOptions) error {
    82  	//TODO implement me
    83  	panic("implement me")
    84  }
    85  
    86  func (testImageEngine) Load(opts *options.LoadOptions) error {
    87  	//TODO implement me
    88  	panic("implement me")
    89  }
    90  
    91  func (testImageEngine) Inspect(opts *options.InspectOptions) (*v1.ImageSpec, error) {
    92  	//TODO implement me
    93  	panic("implement me")
    94  }
    95  
    96  func (testImageEngine) RemoveImage(opts *options.RemoveImageOptions) error {
    97  	//TODO implement me
    98  	panic("implement me")
    99  }
   100  
   101  func (testImageEngine) RemoveContainer(opts *options.RemoveContainerOptions) error {
   102  	//TODO implement me
   103  	panic("implement me")
   104  }
   105  
   106  func (testImageEngine) Tag(opts *options.TagOptions) error {
   107  	//TODO implement me
   108  	panic("implement me")
   109  }
   110  
   111  func (testImageEngine) CreateWorkingContainer(opts *options.BuildRootfsOptions) (string, error) {
   112  	//TODO implement me
   113  	panic("implement me")
   114  }
   115  
   116  func (testImageEngine) LookupManifest(name string) (*libimage.ManifestList, error) {
   117  	panic("implement me")
   118  }
   119  
   120  func (testImageEngine) CreateManifest(name string, opts *options.ManifestCreateOpts) (string, error) {
   121  	panic("implement me")
   122  }
   123  
   124  func (testImageEngine) DeleteManifests(names []string, opts *options.ManifestDeleteOpts) error {
   125  	panic("implement me")
   126  }
   127  
   128  func (testImageEngine) InspectManifest(name string, opts *options.ManifestInspectOpts) (*libimage.ManifestListData, error) {
   129  	panic("implement me")
   130  }
   131  
   132  func (testImageEngine) PushManifest(name, destSpec string, opts *options.PushOptions) error {
   133  	panic("implement me")
   134  }
   135  
   136  func (testImageEngine) AddToManifest(name string, imageSpec []string, opts *options.ManifestAddOpts) error {
   137  	panic("implement me")
   138  }
   139  
   140  func (testImageEngine) RemoveFromManifest(name string, instanceDigest digest.Digest, opts *options.ManifestRemoveOpts) error {
   141  	panic("implement me")
   142  }