Skip to content

Commit

Permalink
Make embeddable
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud authored and galal-hussein committed Dec 13, 2023
1 parent 3b3a947 commit c592b05
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion cmd/crictl/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/container_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"time"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/crictl_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main_test
package crictl_test

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions cmd/crictl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"fmt"
Expand Down Expand Up @@ -141,7 +141,7 @@ func getTimeout(timeDuration time.Duration) time.Duration {
return defaultTimeout // use default
}

func main() {
func Main() {
app := cli.NewApp()
app.Name = "crictl"
app.Usage = "client for CRI"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/main_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"os"
Expand Down
4 changes: 2 additions & 2 deletions cmd/crictl/main_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"os"
Expand All @@ -28,6 +28,6 @@ const (
defaultConfigPath = "/etc/crictl.yaml"
)

var defaultRuntimeEndpoints = []string{"unix:///var/run/dockershim.sock", "unix:///run/containerd/containerd.sock", "unix:///run/crio/crio.sock", "unix:///var/run/cri-dockerd.sock"}
var defaultRuntimeEndpoints = []string{"unix:///run/k3s/containerd/containerd.sock", "unix:///var/run/dockershim.sock", "unix:///run/containerd/containerd.sock", "unix:///run/crio/crio.sock", "unix:///var/run/cri-dockerd.sock"}

var shutdownSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}
2 changes: 1 addition & 1 deletion cmd/crictl/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/pod_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/pod_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/runtime_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crictl/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package crictl

import (
"context"
Expand Down

0 comments on commit c592b05

Please sign in to comment.