Skip to content

Commit

Permalink
Clean up imports
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Sun <[email protected]>
  • Loading branch information
marshtompsxd committed Oct 7, 2024
1 parent 5aca8d7 commit f50326c
Show file tree
Hide file tree
Showing 86 changed files with 76 additions and 261 deletions.
1 change: 0 additions & 1 deletion src/kubernetes_api_objects/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use deps_hack::kube;
use vstd::prelude::*;

verus! {
Expand Down
6 changes: 1 addition & 5 deletions src/kubernetes_api_objects/exec/affinity.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*,
};
use crate::kubernetes_api_objects::exec::resource::*;
use crate::kubernetes_api_objects::spec::affinity::*;
use crate::vstd_ext::{string_map::*, string_view::*};
use vstd::prelude::*;

verus! {
Expand Down
9 changes: 3 additions & 6 deletions src/kubernetes_api_objects/exec/api_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::*;
use crate::kubernetes_api_objects::exec::{api_resource::*, dynamic::*, preconditions::*};
use crate::kubernetes_api_objects::spec::{
api_method::*,
common::{Kind, ObjectRef},
};
use crate::vstd_ext::{option_lib::*, string_view::*};
use vstd::{prelude::*, string::*, view::*};
use crate::kubernetes_api_objects::spec::{api_method::*, common::ObjectRef};
use crate::vstd_ext::option_lib::*;
use vstd::prelude::*;

use vstd::pervasive::unreached;

Expand Down
2 changes: 1 addition & 1 deletion src/kubernetes_api_objects/exec/api_resource.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::exec::{object_meta::*, resource::*};
use crate::kubernetes_api_objects::exec::resource::*;
use crate::kubernetes_api_objects::spec::api_resource::*;
use vstd::prelude::*;

Expand Down
2 changes: 0 additions & 2 deletions src/kubernetes_api_objects/exec/common.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::spec::common::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::string::*;

verus! {

Expand Down
2 changes: 1 addition & 1 deletion src/kubernetes_api_objects/exec/config_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*,
};
use crate::kubernetes_api_objects::spec::{config_map::*, resource::*};
use crate::vstd_ext::{string_map::*, string_view::*};
use crate::vstd_ext::string_map::*;
use vstd::prelude::*;

verus! {
Expand Down
9 changes: 3 additions & 6 deletions src/kubernetes_api_objects/exec/container.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, resource::*, resource_requirements::*, volume::*,
};
use crate::kubernetes_api_objects::spec::{container::*, resource::*};
use crate::kubernetes_api_objects::exec::{resource_requirements::*, volume::*};
use crate::kubernetes_api_objects::spec::container::*;
use crate::vstd_ext::string_view::*;
use vstd::{prelude::*, seq_lib::*, string::*};
use vstd::prelude::*;

verus! {

Expand Down
3 changes: 1 addition & 2 deletions src/kubernetes_api_objects/exec/daemon_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use crate::kubernetes_api_objects::exec::{
resource::*,
};
use crate::kubernetes_api_objects::spec::{daemon_set::*, resource::*};
use crate::vstd_ext::{string_map::*, string_view::*};
use vstd::{prelude::*, seq_lib::*, string::*};
use vstd::prelude::*;

verus! {

Expand Down
6 changes: 2 additions & 4 deletions src/kubernetes_api_objects/exec/dynamic.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{object_meta::*, owner_reference::*, resource::*};
use crate::kubernetes_api_objects::spec::{common::*, dynamic::*};
use crate::vstd_ext::string_view::*;
use crate::kubernetes_api_objects::exec::{object_meta::*, resource::*};
use crate::kubernetes_api_objects::spec::dynamic::*;
use vstd::prelude::*;

verus! {
Expand Down
5 changes: 2 additions & 3 deletions src/kubernetes_api_objects/exec/label_selector.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::resource::*;
use crate::kubernetes_api_objects::spec::label_selector::*;
use crate::vstd_ext::{string_map::*, string_view::*};
use vstd::{prelude::*, string::*};
use crate::vstd_ext::string_map::*;
use vstd::prelude::*;

verus! {

Expand Down
3 changes: 1 addition & 2 deletions src/kubernetes_api_objects/exec/object_meta.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{owner_reference::*, resource::*};
use crate::kubernetes_api_objects::spec::object_meta::*;
use crate::vstd_ext::{string_map::*, string_view::*};
use vstd::{prelude::*, string::*};
use vstd::prelude::*;

verus! {

Expand Down
4 changes: 1 addition & 3 deletions src/kubernetes_api_objects/exec/owner_reference.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::resource::*;
use crate::kubernetes_api_objects::spec::owner_reference::*;
use crate::vstd_ext::{string_map::*, string_view::*};
use vstd::{prelude::*, string::*};
use vstd::prelude::*;

verus! {

Expand Down
2 changes: 0 additions & 2 deletions src/kubernetes_api_objects/exec/persistent_volume_claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*, volume_resource_requirements::*,
};
use crate::kubernetes_api_objects::spec::{persistent_volume_claim::*, resource::*};
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::seq_lib::*;

verus! {

Expand Down
6 changes: 2 additions & 4 deletions src/kubernetes_api_objects/exec/pod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{
affinity::*, api_resource::*, container::*, dynamic::*, object_meta::*, resource::*,
resource_requirements::*, toleration::*, volume::*,
toleration::*, volume::*,
};
use crate::kubernetes_api_objects::spec::{pod::*, resource::*};
use crate::vstd_ext::{string_map::*, string_view::*};
use crate::vstd_ext::string_map::*;
use vstd::prelude::*;
use vstd::seq_lib::*;
use vstd::string::*;

verus! {

Expand Down
8 changes: 1 addition & 7 deletions src/kubernetes_api_objects/exec/pod_template_spec.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, pod::*, resource::*,
};
use crate::kubernetes_api_objects::exec::{object_meta::*, pod::*, resource::*};
use crate::kubernetes_api_objects::spec::pod_template_spec::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::seq_lib::*;
use vstd::string::*;

verus! {

Expand Down
3 changes: 1 addition & 2 deletions src/kubernetes_api_objects/exec/preconditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::exec::{object_meta::*, resource::*};
use crate::kubernetes_api_objects::spec::preconditions::*;
use crate::vstd_ext::string_view::*;
use vstd::{prelude::*, string::*, view::*};
use vstd::prelude::*;

verus! {

Expand Down
4 changes: 1 addition & 3 deletions src/kubernetes_api_objects/exec/resource_requirements.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::exec::resource::*;
use crate::kubernetes_api_objects::spec::{resource::*, resource_requirements::*};
use crate::kubernetes_api_objects::spec::resource_requirements::*;
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;

verus! {
Expand Down
3 changes: 1 addition & 2 deletions src/kubernetes_api_objects/exec/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*,
};
use crate::kubernetes_api_objects::spec::{resource::*, role::*};
use crate::vstd_ext::{string_map::StringMap, string_view::StringView};
use vstd::{prelude::*, seq_lib::*};
use vstd::prelude::*;

verus! {

Expand Down
4 changes: 0 additions & 4 deletions src/kubernetes_api_objects/exec/role_binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*,
};
use crate::kubernetes_api_objects::spec::{resource::*, role_binding::*};
use crate::vstd_ext::string_map::StringMap;
use crate::vstd_ext::string_view::StringView;
use vstd::prelude::*;
use vstd::seq_lib::*;
use vstd::string::*;

verus! {

Expand Down
1 change: 0 additions & 1 deletion src/kubernetes_api_objects/exec/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::kubernetes_api_objects::exec::{
};
use crate::kubernetes_api_objects::spec::{resource::*, secret::*};
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;

verus! {
Expand Down
2 changes: 0 additions & 2 deletions src/kubernetes_api_objects/exec/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ use crate::kubernetes_api_objects::exec::{
};
use crate::kubernetes_api_objects::spec::{resource::*, service::*};
use crate::vstd_ext::string_map::StringMap;
use crate::vstd_ext::string_view::StringView;
use vstd::prelude::*;
use vstd::seq_lib::*;

verus! {

Expand Down
2 changes: 0 additions & 2 deletions src/kubernetes_api_objects/exec/service_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*,
};
use crate::kubernetes_api_objects::spec::{resource::*, service_account::*};
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;

verus! {
Expand Down
4 changes: 0 additions & 4 deletions src/kubernetes_api_objects/exec/stateful_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ use crate::kubernetes_api_objects::exec::{
pod_template_spec::*, resource::*,
};
use crate::kubernetes_api_objects::spec::{resource::*, stateful_set::*};
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::seq_lib::*;
use vstd::string::*;

verus! {

Expand Down
7 changes: 1 addition & 6 deletions src/kubernetes_api_objects/exec/toleration.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*,
};
use crate::kubernetes_api_objects::exec::resource::*;
use crate::kubernetes_api_objects::spec::toleration::*;
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;

verus! {
Expand Down
7 changes: 1 addition & 6 deletions src/kubernetes_api_objects/exec/volume.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::UnmarshalError;
use crate::kubernetes_api_objects::exec::{
api_resource::*, dynamic::*, object_meta::*, resource::*,
};
use crate::kubernetes_api_objects::spec::volume::*;
use crate::vstd_ext::string_view::*;
use vstd::{prelude::*, seq_lib::*, string::*};
use vstd::prelude::*;

verus! {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::exec::resource::*;
use crate::kubernetes_api_objects::spec::{resource::*, volume_resource_requirements::*};
use crate::kubernetes_api_objects::spec::volume_resource_requirements::*;
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;

verus! {
Expand Down
3 changes: 1 addition & 2 deletions src/kubernetes_api_objects/spec/api_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ use crate::kubernetes_api_objects::spec::{
preconditions::*,
};
use crate::vstd_ext::string_view::*;
use vstd::string::*;
use vstd::{prelude::*, view::*};
use vstd::prelude::*;

verus! {

Expand Down
1 change: 0 additions & 1 deletion src/kubernetes_api_objects/spec/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: MIT
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::string::*;

verus! {

Expand Down
2 changes: 1 addition & 1 deletion src/kubernetes_api_objects/spec/config_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::*;
use crate::kubernetes_api_objects::spec::{common::*, dynamic::*, object_meta::*, resource::*};
use crate::vstd_ext::{string_map::*, string_view::*};
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;

verus! {
Expand Down
6 changes: 2 additions & 4 deletions src/kubernetes_api_objects/spec/container.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::spec::{
common::*, dynamic::*, resource::*, resource_requirements::*, volume::*,
};
use crate::kubernetes_api_objects::spec::{resource_requirements::*, volume::*};
use crate::vstd_ext::string_view::*;
use vstd::{prelude::*, string::*};
use vstd::prelude::*;

verus! {

Expand Down
4 changes: 0 additions & 4 deletions src/kubernetes_api_objects/spec/daemon_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ use crate::kubernetes_api_objects::error::*;
use crate::kubernetes_api_objects::spec::{
common::*, dynamic::*, label_selector::*, object_meta::*, pod_template_spec::*, resource::*,
};
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::seq_lib::*;
use vstd::string::*;

verus! {

Expand Down
4 changes: 1 addition & 3 deletions src/kubernetes_api_objects/spec/dynamic.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::spec::{
common::*, object_meta::*, owner_reference::*, resource::*,
};
use crate::kubernetes_api_objects::spec::{common::*, object_meta::*, resource::*};
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;

Expand Down
4 changes: 0 additions & 4 deletions src/kubernetes_api_objects/spec/label_selector.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::*;
use crate::kubernetes_api_objects::spec::{common::*, resource::*};
use crate::vstd_ext::string_map::*;
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::string::*;

verus! {

Expand Down
5 changes: 1 addition & 4 deletions src/kubernetes_api_objects/spec/object_meta.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Copyright 2022 VMware, Inc.
// SPDX-License-Identifier: MIT
use crate::kubernetes_api_objects::error::*;
use crate::kubernetes_api_objects::spec::{common::*, owner_reference::*, resource::*};
use crate::vstd_ext::string_map::*;
use crate::kubernetes_api_objects::spec::{common::*, owner_reference::*};
use crate::vstd_ext::string_view::*;
use vstd::prelude::*;
use vstd::string::*;

verus! {

Expand Down
Loading

0 comments on commit f50326c

Please sign in to comment.