Skip to content

Commit 0e6dfc0

Browse files
author
Haiyan Meng
committed
Rename functions
Signed-off-by: Haiyan Meng <[email protected]>
1 parent e2136ae commit 0e6dfc0

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

generate/generate.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func New() Generator {
7171
},
7272
},
7373
},
74-
Hostname: "shell",
74+
Hostname: "mrsdalloway",
7575
Mounts: []rspec.Mount{
7676
{
7777
Destination: "/proc",
@@ -683,8 +683,8 @@ func parseIDMapping(idms string) (rspec.IDMapping, error) {
683683
return idMapping, nil
684684
}
685685

686-
// ClearLinuxUIDMapping clears g.spec.Linux.UIDMappings.
687-
func (g Generator) ClearLinuxUIDMapping() {
686+
// ClearLinuxUIDMappings clear g.spec.Linux.UIDMappings.
687+
func (g Generator) ClearLinuxUIDMappings() {
688688
g.spec.Linux.UIDMappings = []rspec.IDMapping{}
689689
}
690690

@@ -699,8 +699,8 @@ func (g Generator) AddLinuxUIDMapping(uidMap string) error {
699699
return nil
700700
}
701701

702-
// ClearLinuxGIDMapping clears g.spec.Linux.GIDMappings.
703-
func (g Generator) ClearLinuxGIDMapping() {
702+
// ClearLinuxGIDMappings clear g.spec.Linux.GIDMappings.
703+
func (g Generator) ClearLinuxGIDMappings() {
704704
g.spec.Linux.GIDMappings = []rspec.IDMapping{}
705705
}
706706

@@ -742,8 +742,8 @@ func parseHook(s string) rspec.Hook {
742742
return rspec.Hook{Path: path, Args: args}
743743
}
744744

745-
// ClearPreStartHook clears g.spec.Hooks.Prestart.
746-
func (g Generator) ClearPreStartHook() {
745+
// ClearPreStartHooks clear g.spec.Hooks.Prestart.
746+
func (g Generator) ClearPreStartHooks() {
747747
g.spec.Hooks.Prestart = []rspec.Hook{}
748748
}
749749

@@ -754,8 +754,8 @@ func (g Generator) AddPreStartHook(s string) error {
754754
return nil
755755
}
756756

757-
// ClearPostStopHook clears g.spec.Hooks.Poststop.
758-
func (g Generator) ClearPostStopHook() {
757+
// ClearPostStopHooks clear g.spec.Hooks.Poststop.
758+
func (g Generator) ClearPostStopHooks() {
759759
g.spec.Hooks.Poststop = []rspec.Hook{}
760760
}
761761

@@ -766,8 +766,8 @@ func (g Generator) AddPostStopHook(s string) error {
766766
return nil
767767
}
768768

769-
// ClearPostStartHook clears g.spec.Hooks.Poststart.
770-
func (g Generator) ClearPostStartHook() {
769+
// ClearPostStartHooks clear g.spec.Hooks.Poststart.
770+
func (g Generator) ClearPostStartHooks() {
771771
g.spec.Hooks.Poststart = []rspec.Hook{}
772772
}
773773

@@ -932,8 +932,8 @@ func mapStrToNamespace(ns string, path string) (rspec.Namespace, error) {
932932
}
933933
}
934934

935-
// ClearLinuxNamespace clears g.spec.Linux.Namespaces.
936-
func (g Generator) ClearLinuxNamespace() {
935+
// ClearLinuxNamespaces clear g.spec.Linux.Namespaces.
936+
func (g Generator) ClearLinuxNamespaces() {
937937
g.spec.Linux.Namespaces = []rspec.Namespace{}
938938
}
939939

0 commit comments

Comments
 (0)