repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/mount_path_test.go
tests/integration/mount_path_test.go
//go:build integration // +build integration package integration import ( "context" "fmt" "path" "time" "github.com/stretchr/testify/suite" "k8s.io/apimachinery/pkg/types" "github.com/samba-in-kubernetes/samba-operator/tests/utils/kube" "github.com/samba-in-kubernetes/samba-operator/tests/utils/smbclient" )...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/integration_test.go
tests/integration/integration_test.go
//go:build integration // +build integration package integration import ( "math/rand" "sort" "testing" "time" "github.com/stretchr/testify/suite" ) type namedSuite struct { name string testSuite suite.TestingSuite } // TestingGroup provides an interface to run groups of tests. type TestingGroup interfa...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/path_permissions.go
tests/integration/path_permissions.go
//go:build integration // +build integration package integration import ( "context" "fmt" "strings" "time" "github.com/stretchr/testify/suite" "k8s.io/apimachinery/pkg/types" "github.com/samba-in-kubernetes/samba-operator/tests/utils/kube" ) type MountPathPermissionsSuite struct { suite.Suite commonSourc...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/resource_update_test.go
tests/integration/resource_update_test.go
//go:build integration // +build integration // SPDX-License-Identifier: Apache-2.0 package integration import ( "context" "fmt" "math" "path" "strings" "time" "github.com/stretchr/testify/suite" "k8s.io/apimachinery/pkg/types" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-operator/api/v1al...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/util_test.go
tests/integration/util_test.go
//go:build integration // +build integration package integration import ( "context" "fmt" "path" "time" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/types" krand "k8s.io/apimachinery/pkg/util/rand" "github.com/samba-in-kubernetes/samba-operator/te...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/reconcile_test.go
tests/integration/reconcile_test.go
//go:build integration // +build integration package integration import ( "context" "fmt" "path" "time" "github.com/stretchr/testify/suite" "k8s.io/apimachinery/pkg/types" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-operator/api/v1alpha1" "github.com/samba-in-kubernetes/samba-operator/tests/...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/poll/poll.go
tests/utils/poll/poll.go
// Package poll assists in writing polling loops. package poll import ( "context" "errors" "time" ) var errProberCondUnset = errors.New("Prober Cond field is unset") // Probe interfaces are used to repeatedly test for a condition. type Probe interface { Condition() (bool, error) } // ProbeInterval interfaces sp...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/kube/exec.go
tests/utils/kube/exec.go
package kube import ( "bytes" "context" "errors" "fmt" "io" "net/http" corev1api "k8s.io/api/core/v1" "k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/tools/remotecommand" ) const ( podsResourceName = "pods" execSubResource = "exec" containerParamName = "container" ) // PodCommand identifies ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/kube/status.go
tests/utils/kube/status.go
package kube import ( "context" "errors" "fmt" corev1 "k8s.io/api/core/v1" "github.com/samba-in-kubernetes/samba-operator/tests/utils/poll" ) // PodIsReady returns true if a pod is running and containers are ready. func PodIsReady(pod *corev1.Pod) bool { var podReady, containersReady bool if pod.Status.Phase...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/kube/client.go
tests/utils/kube/client.go
package kube import ( "context" "errors" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" ) var ( // ErrNoMatchingPods indicates a selector didn't match any pods. ErrNoMatchingPods = errors.New(...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/kube/objclient.go
tests/utils/kube/objclient.go
package kube import ( "context" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" rtclient "sigs.k8s.io/controller-runtime/pkg/client" ) // I dis...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/kube/dynamic.go
tests/utils/kube/dynamic.go
package kube import ( "context" "errors" "io" "os" kerrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/types" // nol...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/kube/doc.go
tests/utils/kube/doc.go
// Package kube contains kubernetes utility functions for tests. package kube
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/dnsclient/dnsclient.go
tests/utils/dnsclient/dnsclient.go
// Package dnsclient helps check on the state of DNS from within a pod package dnsclient import ( "fmt" "strings" "github.com/samba-in-kubernetes/samba-operator/tests/utils/kube" "github.com/samba-in-kubernetes/samba-operator/tests/utils/smbclient" ) // CommandError from smbclient. XXX Hack alert! Clean this up....
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/smbclient/smbclient_test.go
tests/utils/smbclient/smbclient_test.go
package smbclient import ( "context" "fmt" "testing" "github.com/stretchr/testify/assert" "github.com/samba-in-kubernetes/samba-operator/tests/utils/kube" ) func TestCommandBuilders(t *testing.T) { var cmd []string cmd = smbclientWithAuth(Auth{"bob", "passw0rd"}) assert.Equal(t, []string{ "smbclient", ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/utils/smbclient/smbclient.go
tests/utils/smbclient/smbclient.go
// Package smbclient is used to execute smbclient commands. package smbclient import ( "context" "fmt" "strings" "github.com/samba-in-kubernetes/samba-operator/tests/utils/kube" ) // Listing of services from smbclient. type Listing []string // Host name or ip address for a share. type Host string func (h Host)...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/controllers/smbsecurityconfig_controller.go
controllers/smbsecurityconfig_controller.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/controllers/smbshare_controller.go
controllers/smbshare_controller.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/controllers/smbcommonconfig_controller.go
controllers/smbcommonconfig_controller.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/api/v1alpha1/zz_generated.deepcopy.go
api/v1alpha1/zz_generated.deepcopy.go
//go:build !ignore_autogenerated /* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/api/v1alpha1/smbsecurityconfig_types.go
api/v1alpha1/smbsecurityconfig_types.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/api/v1alpha1/groupversion_info.go
api/v1alpha1/groupversion_info.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/api/v1alpha1/smbcommonconfig_types.go
api/v1alpha1/smbcommonconfig_types.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/api/v1alpha1/smbshare_types.go
api/v1alpha1/smbshare_types.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/selector.go
internal/planner/selector.go
// SPDX-License-Identifier: Apache-2.0 package planner import ( "encoding/json" ) // builtinDefaultNodeSelector defines our defaults if no administrative // overrides are supplied. Samba containers run only on linux. Currently // they're only built for x86_64 (amd64). var builtinDefaultNodeSelector = map[string]str...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/paths_test.go
internal/planner/paths_test.go
// SPDX-License-Identifier: Apache-2.0 package planner import ( "testing" "github.com/stretchr/testify/assert" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-operator/api/v1alpha1" ) func TestShareMountPath(t *testing.T) { ic := phonyInstanceConfiguration() t.Run("neverGrouped", func(t *testing.T...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/compatible.go
internal/planner/compatible.go
// SPDX-License-Identifier: Apache-2.0 package planner import ( "fmt" "k8s.io/apimachinery/pkg/types" ) // IncompatibleInstanceError indicates SmbShare resources are not compatible // with each other and can not hosted by the same server. type IncompatibleInstanceError struct { current string existing string ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/configuration.go
internal/planner/configuration.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/instance.go
internal/planner/instance.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/compatible_test.go
internal/planner/compatible_test.go
// SPDX-License-Identifier: Apache-2.0 package planner import ( "testing" "github.com/stretchr/testify/assert" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-operator/api/v1alpha1" ) func phonyInstanceConfiguration() InstanceConfiguration { ic1 := In...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/paths.go
internal/planner/paths.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/misc.go
internal/planner/misc.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/properties.go
internal/planner/properties.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/args.go
internal/planner/args.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/configuration_test.go
internal/planner/configuration_test.go
// SPDX-License-Identifier: Apache-2.0 package planner import ( "testing" "github.com/stretchr/testify/assert" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-operator/api/v1alpha1" "github.com/samba-in-kubernetes/samba-operator/internal/conf" "github...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/planner_test.go
internal/planner/planner_test.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/planner/doc.go
internal/planner/doc.go
// Package planner helps determine the desired state. package planner
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/smbcc/container_config_test.go
internal/smbcc/container_config_test.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/smbcc/doc.go
internal/smbcc/doc.go
// Package smbcc manages sambacc JSON configuration. package smbcc
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/smbcc/container_config.go
internal/smbcc/container_config.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/conf/config.go
internal/conf/config.go
// Package conf defines the operator's configuration parameters. package conf import ( "fmt" "strings" "github.com/spf13/pflag" "github.com/spf13/viper" ) const ( // ClusterTypeDefault defines the default value for cluster type ClusterTypeDefault = "default" // ClusterTypeOpenShift defines the type-name for O...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/conf/global.go
internal/conf/global.go
package conf var globalConf *OperatorConfig // Get the global operator configuration object. func Get() *OperatorConfig { return globalConf } // Load the global operator configuration. func Load(s *Source) error { c, err := s.Read() if err != nil { return err } globalConf = c return nil }
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/smbshare_test.go
internal/resources/smbshare_test.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( "context" "fmt" "testing" "github.com/stretchr/testify/assert" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" rtclient "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/co...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/configmap_test.go
internal/resources/configmap_test.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/metrics.go
internal/resources/metrics.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( "context" "fmt" "strconv" monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachin...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/ownership.go
internal/resources/ownership.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/types" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-operator/api/v1alpha1" ) func smbShareOwnerRefs(obj metav1.Object) ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/statefulsets.go
internal/resources/statefulsets.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/result.go
internal/resources/result.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/openshift.go
internal/resources/openshift.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( "context" "strings" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" rtclient "sigs.k8s.io/controller-runtime/pkg/client"...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/pods.go
internal/resources/pods.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/volumes_test.go
internal/resources/volumes_test.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( "testing" "github.com/stretchr/testify/assert" corev1 "k8s.io/api/core/v1" ) func genVolMount(name, path string, tag volMountTag) volMount { var vmnt volMount vmnt.volume = corev1.Volume{ Name: name, VolumeSource: corev1.VolumeSource{ Emp...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/smbshare.go
internal/resources/smbshare.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/ownership_test.go
internal/resources/ownership_test.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( "testing" "github.com/stretchr/testify/assert" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-operator/api/v1alpha1" ) var ( yep = true ) func sampleConfig...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/deployments.go
internal/resources/deployments.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/services.go
internal/resources/services.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/volumes.go
internal/resources/volumes.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/util_fakes_test.go
internal/resources/util_fakes_test.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( "context" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" rtclient "sigs.k8s.io/controller-runtime/pkg/client" ) // These various do-nothing objects meet some of the commonly used interfaces /...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/doc.go
internal/resources/doc.go
// Package resources works directly with k8s resources. package resources
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/events.go
internal/resources/events.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/logger.go
internal/resources/logger.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/getters.go
internal/resources/getters.go
// SPDX-License-Identifier: Apache-2.0 package resources import ( "context" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" kresource "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" // nolint:type...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/internal/resources/configmap.go
internal/resources/configmap.go
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/cli_shared.go
cli_shared.go
package main import ( "app/backend" "embed" "fmt" "os" "slices" "strings" ) //go:embed build/windows/info.json var versionInfo embed.FS // getAppVersion returns version from embedded info.json func getAppVersion() string { return backend.GetVersion(versionInfo) } func isCLICommand(arg string) bool { support...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/main_cli.go
main_cli.go
//go:build cli package main import ( "os" ) func main() { // CLI-only mode for Windows // This binary doesn't include Wails/WebView, so always run CLI if len(os.Args) < 2 { // Don't show help or open window - just exit silently os.Exit(1) } runCLI() }
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/cli.go
cli.go
package main import ( "app/backend" "encoding/json" "fmt" "log/slog" "strings" "github.com/charmbracelet/bubbles/progress" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" ) // CLI flags and config type cliConfig struct { recursive bool threads ...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/main.go
main.go
//go:build !cli package main import ( "app/backend" "embed" "log" "os" "github.com/wailsapp/wails/v3/pkg/application" "github.com/wailsapp/wails/v3/pkg/events" ) //go:embed all:frontend/dist var assets embed.FS var title = "gotohp v" + getAppVersion() func main() { // Check if running in CLI mode based on ...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/configmanager.go
backend/configmanager.go
package backend import ( "fmt" "log" "net/url" "os" "path/filepath" "github.com/knadh/koanf/parsers/yaml" "github.com/knadh/koanf/providers/file" "github.com/knadh/koanf/providers/structs" "github.com/knadh/koanf/v2" ) type Config struct { Credentials []string `json:"credentials" koanf:"c...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/api.go
backend/api.go
package backend import ( "app/generated" "bytes" "compress/gzip" "context" "errors" "fmt" "io" "log" "net/http" "net/url" "os" "strconv" "strings" "time" "google.golang.org/protobuf/proto" ) type Api struct { androidAPIVersion int64 model string make string clientVersionCo...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/httpclient.go
backend/httpclient.go
package backend import ( "io" "log" "net/http" "net/url" "time" "github.com/hashicorp/go-retryablehttp" ) var httpClientLogger *log.Logger // SetHTTPClientLogger sets the logger for the HTTP client func SetHTTPClientLogger(logger *log.Logger) { httpClientLogger = logger } func NewHTTPClientWithProxy(proxyUR...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/app_interface.go
backend/app_interface.go
package backend import "log/slog" // AppInterface defines the interface that both GUI and CLI apps must implement type AppInterface interface { // Event emitter EmitEvent(event string, data any) // Logger GetLogger() *slog.Logger }
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/sha1calc.go
backend/sha1calc.go
package backend import ( "context" "crypto/sha1" "fmt" "io" "os" ) const ( contextCheckInterval = 64 * 1024 * 1024 // Check every 64MB copyBufferSize = 1 * 1024 * 1024 // 1MB copy buffer ) type chunkedContextWriter struct { ctx context.Context w io.Writer bytesSinceCheck in...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/cli_app.go
backend/cli_app.go
package backend import ( "io" "log" "log/slog" "os" ) // CLIApp implements AppInterface for CLI usage type CLIApp struct { eventCallback func(event string, data any) logger *slog.Logger } func NewCLIApp(eventCallback func(event string, data any), logLevel slog.Level) *CLIApp { var logger *slog.Logger ...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/wails_app.go
backend/wails_app.go
package backend import ( "log" "log/slog" "os" "github.com/wailsapp/wails/v3/pkg/application" ) // WailsApp wraps a Wails application to implement AppInterface type WailsApp struct { app *application.App } func NewWailsApp(app *application.App) *WailsApp { // Set debug level for GUI mode // Enable HTTP clien...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/upload.go
backend/upload.go
package backend import ( "context" "encoding/base64" "fmt" "os" "path/filepath" "slices" "strings" "sync" "github.com/wailsapp/wails/v3/pkg/application" ) func init() { application.RegisterEvent[UploadBatchStart]("uploadStart") application.RegisterEvent[application.Void]("uploadStop") application.Registe...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/backend/version.go
backend/version.go
package backend import ( "embed" "encoding/json" ) type VersionInfo struct { Fixed struct { FileVersion string `json:"file_version"` } `json:"fixed"` } func GetVersion(content embed.FS) string { // Read the embedded file data, err := content.ReadFile("build/windows/info.json") if err != nil { return "" }...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/generated/RemoteMatches.pb.go
generated/RemoteMatches.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.2 // source: .proto/RemoteMatches.proto package generated import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/generated/utils.go
generated/utils.go
package generated // GetPrimaryMediaKey safely accesses the first mediaKey func (x *RemoteMatches) GetMediaKey() string { if x == nil || x.Field1 == nil || x.Field1.Field2 == nil || x.Field1.Field2.Field2 == nil { return "" } return x.Field1.Field2.Field2.MediaKey }
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/generated/CommitToken.pb.go
generated/CommitToken.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.2 // source: .proto/CommitToken.proto package generated import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" ...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/generated/HashCheck.pb.go
generated/HashCheck.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.2 // source: .proto/HashCheck.proto package generated import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" s...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/generated/GetUploadToken.pb.go
generated/GetUploadToken.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.2 // source: .proto/GetUploadToken.proto package generated import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflec...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
false
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/generated/CommitUploadResponse.pb.go
generated/CommitUploadResponse.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.2 // source: .proto/CommitUploadResponse.proto package generated import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
true
xob0t/gotohp
https://github.com/xob0t/gotohp/blob/5d458a22413447f12f8c73864b77ba2a1cd3ec0b/generated/CommitUpload.pb.go
generated/CommitUpload.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.30.2 // source: .proto/CommitUpload.proto package generated import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect"...
go
MIT
5d458a22413447f12f8c73864b77ba2a1cd3ec0b
2026-01-07T09:45:52.056017Z
true
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cmd/wit-bindgen-go/main_test.go
cmd/wit-bindgen-go/main_test.go
// TODO: Remove the following go:build line when TinyGo supports Go 1.24. //go:build !(tinygo && go1.24) package main import ( "bytes" "context" "strings" "testing" ) // TestSimpleGenVerbosity ensures that a basic generation case honors the verbose flag func TestSimpleGenVerbosity(t *testing.T) { inWIT := `pack...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cmd/wit-bindgen-go/main.go
cmd/wit-bindgen-go/main.go
package main import ( "context" "fmt" "os" "github.com/urfave/cli/v3" "go.bytecodealliance.org/cmd/wit-bindgen-go/cmd/generate" "go.bytecodealliance.org/cmd/wit-bindgen-go/cmd/wit" "go.bytecodealliance.org/internal/module" ) func main() { err := Command.Run(context.Background(), os.Args) if err != nil { ...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cmd/wit-bindgen-go/cmd/generate/generate.go
cmd/wit-bindgen-go/cmd/generate/generate.go
package generate import ( "context" "fmt" "os" "path/filepath" "strings" "github.com/urfave/cli/v3" "go.bytecodealliance.org/internal/codec" "go.bytecodealliance.org/internal/go/gen" "go.bytecodealliance.org/internal/witcli" "go.bytecodealliance.org/wit/bindgen" "go.bytecodealliance.org/wit/logging" ) //...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/cmd/wit-bindgen-go/cmd/wit/wit.go
cmd/wit-bindgen-go/cmd/wit/wit.go
package wit import ( "context" "fmt" "github.com/urfave/cli/v3" "go.bytecodealliance.org/internal/witcli" "go.bytecodealliance.org/wit" ) // Command is the CLI command for wit. var Command = &cli.Command{ Name: "wit", Usage: "reverses a WIT JSON file into WIT syntax", Flags: []cli.Flag{ &cli.StringFlag{ ...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/x/cabi/docs.go
x/cabi/docs.go
// Package cabi contains a single WebAssembly function exported as cabi_realloc. // // To use, import this package with _: // // import _ "go.bytecodealliance.org/x/cabi" // // Function realloc is a WebAssembly [core function] that is validated to have the following core function type: // // (func (param $originalPtr i...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/x/cabi/realloc.go
x/cabi/realloc.go
package cabi import "unsafe" // realloc allocates or reallocates memory for Component Model calls across // the host-guest boundary. // // Note: the use of uintptr assumes 32-bit pointers when compiled for wasm or wasm32. func realloc(ptr unsafe.Pointer, size, align, newsize uintptr) unsafe.Pointer { if newsize <= s...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/x/cabi/realloc_test.go
x/cabi/realloc_test.go
package cabi import ( "slices" "testing" "unsafe" ) func TestRealloc(t *testing.T) { const threshold = 16 tests := []struct { name string ptr uintptr size uintptr align uintptr newsize uintptr want uintptr }{ {"nil", 0, 0, 1, 0, 0}, {"nil with align", 0, 0, 2, 0, 0}, {"align to...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/tools.go
tests/tools.go
//go:build tools package tests import _ "go.bytecodealliance.org/cmd/wit-bindgen-go"
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/tests.go
tests/tests.go
// Package tests exists as a standalone module in the wasm-tools-go repository for // testing Go code generated from WIT using wit-bindgen-go. // There are no user-importable packages in this module. package tests //go:generate rm -rf ./generated/* //go:generate mkdir -p ./generated //go:generate go run go.bytecodeal...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/sockets/sockets_test.go
tests/sockets/sockets_test.go
package sockets import ( "net/netip" "testing" "unsafe" instancenetwork "tests/generated/wasi/sockets/v0.2.0/instance-network" ipnamelookup "tests/generated/wasi/sockets/v0.2.0/ip-name-lookup" ) func TestResolveAddresses(t *testing.T) { const hostname = "localhost" network := instancenetwork.InstanceNetwork(...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/json/json_test.go
tests/json/json_test.go
package json_test import ( "encoding/json" "reflect" "testing" wallclock "tests/generated/wasi/clocks/v0.2.0/wall-clock" "tests/generated/wasi/filesystem/v0.2.0/types" "go.bytecodealliance.org/cm" ) func TestJSON(t *testing.T) { tests := []struct { name string json string into any want an...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/tcp-create-socket/tcp-create-socket.wasm.go
tests/generated/wasi/sockets/v0.2.0/tcp-create-socket/tcp-create-socket.wasm.go
// Code generated by wit-bindgen-go. DO NOT EDIT. package tcpcreatesocket import ( "go.bytecodealliance.org/cm" ) // This file contains wasmimport and wasmexport declarations for "wasi:sockets@0.2.0". //go:wasmimport wasi:sockets/tcp-create-socket@0.2.0 create-tcp-socket //go:noescape func wasmimport_CreateTCPSock...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/tcp-create-socket/tcp-create-socket.wit.go
tests/generated/wasi/sockets/v0.2.0/tcp-create-socket/tcp-create-socket.wit.go
// Code generated by wit-bindgen-go. DO NOT EDIT. // Package tcpcreatesocket represents the imported interface "wasi:sockets/tcp-create-socket@0.2.0". package tcpcreatesocket import ( "go.bytecodealliance.org/cm" "tests/generated/wasi/sockets/v0.2.0/network" "tests/generated/wasi/sockets/v0.2.0/tcp" ) // Network ...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/tcp/abi.go
tests/generated/wasi/sockets/v0.2.0/tcp/abi.go
// Code generated by wit-bindgen-go. DO NOT EDIT. package tcp import ( "go.bytecodealliance.org/cm" "tests/generated/wasi/sockets/v0.2.0/network" "unsafe" ) // TupleTCPSocketInputStreamOutputStreamShape is used for storage in variant or result types. type TupleTCPSocketInputStreamOutputStreamShape struct { _ ...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/tcp/tcp.wit.go
tests/generated/wasi/sockets/v0.2.0/tcp/tcp.wit.go
// Code generated by wit-bindgen-go. DO NOT EDIT. // Package tcp represents the imported interface "wasi:sockets/tcp@0.2.0". package tcp import ( "go.bytecodealliance.org/cm" monotonicclock "tests/generated/wasi/clocks/v0.2.0/monotonic-clock" "tests/generated/wasi/io/v0.2.0/poll" "tests/generated/wasi/io/v0.2.0/s...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/tcp/tcp.wasm.go
tests/generated/wasi/sockets/v0.2.0/tcp/tcp.wasm.go
// Code generated by wit-bindgen-go. DO NOT EDIT. package tcp import ( "go.bytecodealliance.org/cm" ) // This file contains wasmimport and wasmexport declarations for "wasi:sockets@0.2.0". //go:wasmimport wasi:sockets/tcp@0.2.0 [resource-drop]tcp-socket //go:noescape func wasmimport_TCPSocketResourceDrop(self0 uin...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/udp/udp.wasm.go
tests/generated/wasi/sockets/v0.2.0/udp/udp.wasm.go
// Code generated by wit-bindgen-go. DO NOT EDIT. package udp import ( "go.bytecodealliance.org/cm" ) // This file contains wasmimport and wasmexport declarations for "wasi:sockets@0.2.0". //go:wasmimport wasi:sockets/udp@0.2.0 [resource-drop]udp-socket //go:noescape func wasmimport_UDPSocketResourceDrop(self0 uin...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false
bytecodealliance/go-modules
https://github.com/bytecodealliance/go-modules/blob/55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1/tests/generated/wasi/sockets/v0.2.0/udp/abi.go
tests/generated/wasi/sockets/v0.2.0/udp/abi.go
// Code generated by wit-bindgen-go. DO NOT EDIT. package udp import ( "go.bytecodealliance.org/cm" "tests/generated/wasi/sockets/v0.2.0/network" "unsafe" ) // IPSocketAddressShape is used for storage in variant or result types. type IPSocketAddressShape struct { _ cm.HostLayout shape [unsafe.Sizeof(IPSocke...
go
Apache-2.0
55a8715c694fb4bbe75c269ffd4a0ca14c80c6f1
2026-01-07T09:45:48.830497Z
false