diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9761bf7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,14 @@ +--- +# Test building the code and docker image +kind: pipeline +type: docker +name: test-build + +steps: +- name: go-test + image: golang + commands: + - make test + depends_on: + +# TODO: publish doc diff --git a/.gitignore b/.gitignore index adf8f72..69c4728 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ # Go workspace file go.work +dist \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f995fe --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +test: + go test \ No newline at end of file diff --git a/base.go b/base.go new file mode 100644 index 0000000..c4982d2 --- /dev/null +++ b/base.go @@ -0,0 +1,7 @@ +package devicepath + +type DevicePathNode interface{} + +type DevicePath interface { + String() string +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b28cea0 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.faercol.me/faercol/device-path + +go 1.20 diff --git a/parser.go b/parser.go new file mode 100644 index 0000000..2265c91 --- /dev/null +++ b/parser.go @@ -0,0 +1,9 @@ +package devicepath + +func ParseNodeString(string) (DevicePathNode, error) { + return nil, nil +} + +func ParsePathString(string) (DevicePath, error) { + return nil, nil +} diff --git a/parser_test.go b/parser_test.go new file mode 100644 index 0000000..7a8aa38 --- /dev/null +++ b/parser_test.go @@ -0,0 +1,7 @@ +package devicepath_test + +import "testing" + +func TestTest(t *testing.T) { + +}