Word spelling correction
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
This commit is contained in:
parent
aba201344e
commit
a0ae24b984
@ -29,7 +29,7 @@ func serviceFlags() []cli.Flag {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// applyPlatformFlags applys platform-specific flags.
|
// applyPlatformFlags applies platform-specific flags.
|
||||||
func applyPlatformFlags(context *cli.Context) {
|
func applyPlatformFlags(context *cli.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ func TestShimInCgroup(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if len(processes) == 0 {
|
if len(processes) == 0 {
|
||||||
t.Errorf("created cgroup should have atleast one process inside: %d", len(processes))
|
t.Errorf("created cgroup should have at least one process inside: %d", len(processes))
|
||||||
}
|
}
|
||||||
if err := task.Kill(ctx, unix.SIGKILL); err != nil {
|
if err := task.Kill(ctx, unix.SIGKILL); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
@ -124,7 +124,7 @@ func ImportIndex(ctx context.Context, store content.Store, reader io.Reader, opt
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If OCI layout was given, interpret the tar as an OCI layout.
|
// If OCI layout was given, interpret the tar as an OCI layout.
|
||||||
// When not provided, the layout of the tar will be interpretted
|
// When not provided, the layout of the tar will be interpreted
|
||||||
// as Docker v1.1 or v1.2.
|
// as Docker v1.1 or v1.2.
|
||||||
if ociLayout.Version != "" {
|
if ociLayout.Version != "" {
|
||||||
if ociLayout.Version != ocispec.ImageLayoutVersion {
|
if ociLayout.Version != ocispec.ImageLayoutVersion {
|
||||||
|
@ -78,7 +78,7 @@ func generateDefaultSpecWithPlatform(ctx context.Context, platform, id string, s
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApplyOpts applys the options to the given spec, injecting data from the
|
// ApplyOpts applies the options to the given spec, injecting data from the
|
||||||
// context, client and container instance.
|
// context, client and container instance.
|
||||||
func ApplyOpts(ctx context.Context, client Client, c *containers.Container, s *Spec, opts ...SpecOpts) error {
|
func ApplyOpts(ctx context.Context, client Client, c *containers.Container, s *Spec, opts ...SpecOpts) error {
|
||||||
for _, o := range opts {
|
for _, o := range opts {
|
||||||
|
@ -61,7 +61,7 @@ func NewExitStatus(code uint32, t time.Time, err error) *ExitStatus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExitStatus encapsulates a process' exit status.
|
// ExitStatus encapsulates a process's exit status.
|
||||||
// It is used by `Wait()` to return either a process exit code or an error
|
// It is used by `Wait()` to return either a process exit code or an error
|
||||||
type ExitStatus struct {
|
type ExitStatus struct {
|
||||||
code uint32
|
code uint32
|
||||||
|
@ -30,7 +30,7 @@ func TestContextCustomKeyPrefix(t *testing.T) {
|
|||||||
ctx = WithMediaTypeKeyPrefix(ctx, images.MediaTypeDockerSchema2Layer, "bananas")
|
ctx = WithMediaTypeKeyPrefix(ctx, images.MediaTypeDockerSchema2Layer, "bananas")
|
||||||
ctx = WithMediaTypeKeyPrefix(ctx, cmt, "apples")
|
ctx = WithMediaTypeKeyPrefix(ctx, cmt, "apples")
|
||||||
|
|
||||||
// makes sure tha even though we've supplied some custom handling, the built-in still works
|
// makes sure that even though we've supplied some custom handling, the built-in still works
|
||||||
t.Run("normal supported case", func(t *testing.T) {
|
t.Run("normal supported case", func(t *testing.T) {
|
||||||
desc := ocispec.Descriptor{MediaType: ocispec.MediaTypeImageLayer}
|
desc := ocispec.Descriptor{MediaType: ocispec.MediaTypeImageLayer}
|
||||||
expected := "layer-"
|
expected := "layer-"
|
||||||
|
Loading…
Reference in New Issue
Block a user