fix words misspell
Signed-off-by: Michael Wan <zirenwan@gmail.com>
This commit is contained in:
parent
3a6825e1a0
commit
7fd6d5e2be
@ -659,7 +659,7 @@ func TestApplyTar(t *testing.T) {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if _, err := os.Stat(p); err != nil {
|
if _, err := os.Stat(p); err != nil {
|
||||||
return errors.Wrapf(err, "failure checking existance for %v", d)
|
return errors.Wrapf(err, "failure checking existence for %v", d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -320,7 +320,7 @@ func (c *Client) Pull(ctx context.Context, ref string, opts ...RemoteOpt) (Image
|
|||||||
childrenHandler := images.ChildrenHandler(store)
|
childrenHandler := images.ChildrenHandler(store)
|
||||||
// Set any children labels for that content
|
// Set any children labels for that content
|
||||||
childrenHandler = images.SetChildrenLabels(store, childrenHandler)
|
childrenHandler = images.SetChildrenLabels(store, childrenHandler)
|
||||||
// Filter childen by platforms
|
// Filter children by platforms
|
||||||
childrenHandler = images.FilterPlatforms(childrenHandler, pullCtx.Platforms...)
|
childrenHandler = images.FilterPlatforms(childrenHandler, pullCtx.Platforms...)
|
||||||
|
|
||||||
handler = images.Handlers(append(pullCtx.BaseHandlers,
|
handler = images.Handlers(append(pullCtx.BaseHandlers,
|
||||||
|
@ -375,12 +375,12 @@ type directIO struct {
|
|||||||
cio.DirectIO
|
cio.DirectIO
|
||||||
}
|
}
|
||||||
|
|
||||||
// ioCreate returns IO avaliable for use with task creation
|
// ioCreate returns IO available for use with task creation
|
||||||
func (f *directIO) IOCreate(id string) (cio.IO, error) {
|
func (f *directIO) IOCreate(id string) (cio.IO, error) {
|
||||||
return f, nil
|
return f, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ioAttach returns IO avaliable for use with task attachment
|
// ioAttach returns IO available for use with task attachment
|
||||||
func (f *directIO) IOAttach(set *cio.FIFOSet) (cio.IO, error) {
|
func (f *directIO) IOAttach(set *cio.FIFOSet) (cio.IO, error) {
|
||||||
return f, nil
|
return f, nil
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,6 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package defaults provides several common defaults for interacting wtih
|
// Package defaults provides several common defaults for interacting with
|
||||||
// containerd. These can be used on the client-side or server-side.
|
// containerd. These can be used on the client-side or server-side.
|
||||||
package defaults
|
package defaults
|
||||||
|
@ -61,7 +61,7 @@ func init() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// CompareApplier handles both comparision and
|
// CompareApplier handles both comparison and
|
||||||
// application of layer diffs.
|
// application of layer diffs.
|
||||||
type CompareApplier interface {
|
type CompareApplier interface {
|
||||||
diff.Applier
|
diff.Applier
|
||||||
|
@ -92,7 +92,7 @@ var Always FilterFunc = func(adaptor Adaptor) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Any allows multiple filters to be matched aginst the object
|
// Any allows multiple filters to be matched against the object
|
||||||
type Any []Filter
|
type Any []Filter
|
||||||
|
|
||||||
// Match returns true if any of the provided filters are true
|
// Match returns true if any of the provided filters are true
|
||||||
@ -106,7 +106,7 @@ func (m Any) Match(adaptor Adaptor) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// All allows multiple filters to be matched aginst the object
|
// All allows multiple filters to be matched against the object
|
||||||
type All []Filter
|
type All []Filter
|
||||||
|
|
||||||
// Match only returns true if all filters match the object
|
// Match only returns true if all filters match the object
|
||||||
|
@ -315,7 +315,7 @@ func (s *gcScheduler) run(ctx context.Context) {
|
|||||||
// Reschedule garbage collection for same duration + 1 second
|
// Reschedule garbage collection for same duration + 1 second
|
||||||
schedC, nextCollection = schedule(nextCollection.Sub(*lastCollection) + time.Second)
|
schedC, nextCollection = schedule(nextCollection.Sub(*lastCollection) + time.Second)
|
||||||
|
|
||||||
// Update last collection time even though failure occured
|
// Update last collection time even though failure occurred
|
||||||
lastCollection = &last
|
lastCollection = &last
|
||||||
|
|
||||||
for _, w := range s.waiters {
|
for _, w := range s.waiters {
|
||||||
|
@ -279,7 +279,7 @@ func Check(ctx context.Context, provider content.Provider, image ocispec.Descrip
|
|||||||
|
|
||||||
// TODO(stevvooe): It is possible that referenced conponents could have
|
// TODO(stevvooe): It is possible that referenced conponents could have
|
||||||
// children, but this is rare. For now, we ignore this and only verify
|
// children, but this is rare. For now, we ignore this and only verify
|
||||||
// that manfiest components are present.
|
// that manifest components are present.
|
||||||
required = append([]ocispec.Descriptor{mfst.Config}, mfst.Layers...)
|
required = append([]ocispec.Descriptor{mfst.Config}, mfst.Layers...)
|
||||||
|
|
||||||
for _, desc := range required {
|
for _, desc := range required {
|
||||||
|
@ -200,7 +200,7 @@ func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts
|
|||||||
log.G(ctx).WithField("id", id).Info("shim reaped")
|
log.G(ctx).WithField("id", id).Info("shim reaped")
|
||||||
t, err := r.tasks.Get(ctx, id)
|
t, err := r.tasks.Get(ctx, id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Task was never started or was already sucessfully deleted
|
// Task was never started or was already successfully deleted
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
lc := t.(*Task)
|
lc := t.(*Task)
|
||||||
|
@ -89,7 +89,7 @@ type Registration struct {
|
|||||||
|
|
||||||
// InitFn is called when initializing a plugin. The registration and
|
// InitFn is called when initializing a plugin. The registration and
|
||||||
// context are passed in. The init function may modify the registration to
|
// context are passed in. The init function may modify the registration to
|
||||||
// add exports, capabilites and platform support declarations.
|
// add exports, capabilities and platform support declarations.
|
||||||
InitFn func(*InitContext) (interface{}, error)
|
InitFn func(*InitContext) (interface{}, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ func (s ExitStatus) ExitTime() time.Time {
|
|||||||
return s.exitedAt
|
return s.exitedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error returns the error, if any, that occured while waiting for the
|
// Error returns the error, if any, that occurred while waiting for the
|
||||||
// process.
|
// process.
|
||||||
func (s ExitStatus) Error() error {
|
func (s ExitStatus) Error() error {
|
||||||
return s.err
|
return s.err
|
||||||
|
@ -34,7 +34,7 @@ type config struct {
|
|||||||
// Order is the order of preference in which to try diff algorithms, the
|
// Order is the order of preference in which to try diff algorithms, the
|
||||||
// first differ which is supported is used.
|
// first differ which is supported is used.
|
||||||
// Note when multiple differs may be supported, this order will be
|
// Note when multiple differs may be supported, this order will be
|
||||||
// respected for which is choosen. Each differ should return the same
|
// respected for which is chosen. Each differ should return the same
|
||||||
// correct output, allowing any ordering to be used to prefer
|
// correct output, allowing any ordering to be used to prefer
|
||||||
// more optimimal implementations.
|
// more optimimal implementations.
|
||||||
Order []string `toml:"default"`
|
Order []string `toml:"default"`
|
||||||
|
@ -594,7 +594,7 @@ func testParents(ctx context.Context, t *testing.T, ms *MetaStore) {
|
|||||||
parents []string
|
parents []string
|
||||||
)
|
)
|
||||||
if info.Kind == snapshots.KindCommitted {
|
if info.Kind == snapshots.KindCommitted {
|
||||||
// When commited, create view and resolve from view
|
// When committed, create view and resolve from view
|
||||||
nid := fmt.Sprintf("test-%s-%d", tc.Name, i)
|
nid := fmt.Sprintf("test-%s-%d", tc.Name, i)
|
||||||
s, err := CreateSnapshot(ctx, snapshots.KindView, nid, name)
|
s, err := CreateSnapshot(ctx, snapshots.KindView, nid, name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -543,7 +543,7 @@ func checkRemoveIntermediateSnapshot(ctx context.Context, t *testing.T, snapshot
|
|||||||
// baseTestSnapshots creates a base set of snapshots for tests, each snapshot is empty
|
// baseTestSnapshots creates a base set of snapshots for tests, each snapshot is empty
|
||||||
// Tests snapshots:
|
// Tests snapshots:
|
||||||
// c1 - committed snapshot, no parent
|
// c1 - committed snapshot, no parent
|
||||||
// c2 - commited snapshot, c1 is parent
|
// c2 - committed snapshot, c1 is parent
|
||||||
// a1 - active snapshot, c2 is parent
|
// a1 - active snapshot, c2 is parent
|
||||||
// a1 - active snapshot, no parent
|
// a1 - active snapshot, no parent
|
||||||
// v1 - view snapshot, v1 is parent
|
// v1 - view snapshot, v1 is parent
|
||||||
@ -757,7 +757,7 @@ func checkRemove(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
|
|||||||
if err := snapshotter.Remove(ctx, "committed-1"); err != nil {
|
if err := snapshotter.Remove(ctx, "committed-1"); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if err := snapshotter.Commit(ctx, "commited-1", "reuse-1", opt); err != nil {
|
if err := snapshotter.Commit(ctx, "committed-1", "reuse-1", opt); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -769,7 +769,7 @@ func checkSnapshotterViewReadonly(ctx context.Context, t *testing.T, snapshotter
|
|||||||
if _, err := snapshotter.Prepare(ctx, preparing, "", opt); err != nil {
|
if _, err := snapshotter.Prepare(ctx, preparing, "", opt); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
committed := filepath.Join(work, "commited")
|
committed := filepath.Join(work, "committed")
|
||||||
if err := snapshotter.Commit(ctx, committed, preparing, opt); err != nil {
|
if err := snapshotter.Commit(ctx, committed, preparing, opt); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user