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
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/struct_test.go
client/column/struct_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/json_test.go
client/column/json_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/generic_base.go
client/column/generic_base.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/nullable.go
client/column/nullable.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/vector.go
client/column/vector.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/conversion.go
client/column/conversion.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/array.go
client/column/array.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/vector_test.go
client/column/vector_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/dynamic_test.go
client/column/dynamic_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/generic_base_test.go
client/column/generic_base_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/array_test.go
client/column/array_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/sparse.go
client/column/sparse.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/scalar.go
client/column/scalar.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/geometry.go
client/column/geometry.go
package column import ( "github.com/cockroachdb/errors" "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" "github.com/milvus-io/milvus/client/v2/entity" ) type ColumnGeometryWKT struct { *genericColumnBase[string] } // Name returns column name. func (c *ColumnGeometryWKT) Name() string { return c.name } ...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/dynamic.go
client/column/dynamic.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/sparse_test.go
client/column/sparse_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/column/scalar_test.go
client/column/scalar_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/common/version_test.go
client/common/version_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/common/version.go
client/common/version.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/function.go
client/entity/function.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/vectors.go
client/entity/vectors.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/rbac.go
client/entity/rbac.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/alias.go
client/entity/alias.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/field_test.go
client/entity/field_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/database.go
client/entity/database.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/segment.go
client/entity/segment.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/collection.go
client/entity/collection.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/field.go
client/entity/field.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/resource_group.go
client/entity/resource_group.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/sparse.go
client/entity/sparse.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/collection_attr_test.go
client/entity/collection_attr_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/schema_example_test.go
client/entity/schema_example_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/function_test.go
client/entity/function_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/load_state.go
client/entity/load_state.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/privilege_group.go
client/entity/privilege_group.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/sparse_test.go
client/entity/sparse_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/analyzer.go
client/entity/analyzer.go
package entity type Token struct { Text string StartOffset int64 EndOffset int64 Position int64 PositionLength int64 Hash uint32 } type AnalyzerResult struct { Tokens []*Token }
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/vectors_test.go
client/entity/vectors_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/collection_attr.go
client/entity/collection_attr.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/schema_test.go
client/entity/schema_test.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/common.go
client/entity/common.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
milvus-io/milvus
https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/client/entity/schema.go
client/entity/schema.go
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
go
Apache-2.0
9d9fe2273adea818132bd2c5b9710bdecc8c8a85
2026-01-07T08:35:46.736408Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/main.go
main.go
//go:generate bash -c "mkdir -p codegen && go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.12.4 -generate types,server,spec -package codegen api/casaos/openapi.yaml > codegen/casaos_api.go" //go:generate bash -c "mkdir -p codegen/message_bus && go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.12.4 ...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/sign/sign.go
pkg/sign/sign.go
package sign import "errors" type Sign interface { Sign(data string, expire int64) string Verify(data, sign string) error } var ( ErrSignExpired = errors.New("sign expired") ErrSignInvalid = errors.New("sign invalid") ErrExpireInvalid = errors.New("expire invalid") ErrExpireMissing = errors.New("expire mis...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/sign/hmac.go
pkg/sign/hmac.go
package sign import ( "crypto/hmac" "crypto/sha256" "encoding/base64" "io" "strconv" "strings" "time" ) type HMACSign struct { SecretKey []byte } func (s HMACSign) Sign(data string, expire int64) string { h := hmac.New(sha256.New, s.SecretKey) expireTimeStamp := strconv.FormatInt(expire, 10) _, err := io....
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/sqlite/db_test.go
pkg/sqlite/db_test.go
package sqlite import ( "testing" ) func TestGetDb(t *testing.T) { // fmt.Println(GetDb()) // db:=GetDb() // d:=model.DDNSTypeDBModel{ // Name: "test", // ApiHost: "http://www.google.com", // } // db.Create(&d) }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/sqlite/db.go
pkg/sqlite/db.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2022-05-13 18:15:46 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-31 13:39:24 * @FilePath: /CasaOS/pkg/sqlite/db.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package sqlite import ( "fmt"...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/cache/cache.go
pkg/cache/cache.go
package cache import ( "time" "github.com/patrickmn/go-cache" ) func Init() *cache.Cache { return cache.New(5*time.Minute, 60*time.Second) }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/samba/smaba.go
pkg/samba/smaba.go
/* * @Author: LinkLeong link@icewhale.org * @Date: 2022-07-27 10:35:29 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-01 13:56:44 * @FilePath: /CasaOS/pkg/samba/smaba.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package samba import ( "err...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/github/github.go
pkg/github/github.go
package github import ( "context" "github.com/google/go-github/v36/github" "golang.org/x/oauth2" ) func GetGithubClient() *github.Client { ctx := context.Background() ts := oauth2.StaticTokenSource( &oauth2.Token{AccessToken: ""}, ) tc := oauth2.NewClient(ctx, ts) client := github.NewClient(tc) return clie...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/gredis/redis.go
pkg/gredis/redis.go
package gredis import ( "time" "github.com/IceWhaleTech/CasaOS/model" "github.com/gomodule/redigo/redis" ) func GetRedisConn(m *model.RedisModel) *redis.Pool { redisConn := &redis.Pool{ MaxIdle: m.MaxIdle, MaxActive: m.MaxActive, IdleTimeout: m.IdleTimeout * time.Second, Dial: func() (redis.Conn, e...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/time.go
pkg/utils/time.go
package utils import ( "sync" "time" ) func MustParseCNTime(str string) time.Time { lastOpTime, _ := time.ParseInLocation("2006-01-02 15:04:05 -07", str+" +08", time.Local) return lastOpTime } func NewDebounce(interval time.Duration) func(f func()) { var timer *time.Timer var lock sync.Mutex return func(f fun...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/bool.go
pkg/utils/bool.go
package utils func IsBool(bs ...bool) bool { return len(bs) > 0 && bs[0] }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/path.go
pkg/utils/path.go
package utils import ( "errors" "net/url" stdpath "path" "strings" ) // FixAndCleanPath // The upper layer of the root directory is still the root directory. // So ".." And "." will be cleared // for example // 1. ".." or "." => "/" // 2. "../..." or "./..." => "/..." // 3. "../.x." or "./.x." => "/.x." // 4. "x/...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/network_detection_test.go
pkg/utils/network_detection_test.go
/* * @Author: LinkLeong a624669980@163.com * @Date: 2022-05-08 15:07:31 * @LastEditors: LinkLeong a624669980@163.com * @LastEditTime: 2022-05-09 11:43:30 * @FilePath: /CasaOS/pkg/utils/network_detection_test.go * @Description: * * Copyright (c) 2022 by LinkLeong a624669980@163.com, All Rights Reserved. */ pac...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/default_query.go
pkg/utils/default_query.go
package utils import "github.com/labstack/echo/v4" func DefaultQuery(ctx echo.Context, key string, defaultValue string) string { if value := ctx.QueryParam(key); value != "" { return value } return defaultValue }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/network_detection.go
pkg/utils/network_detection.go
/* * @Author: LinkLeong a624669980@163.com * @Date: 2022-05-08 14:58:46 * @LastEditors: LinkLeong a624669980@163.com * @LastEditTime: 2022-05-09 13:42:26 * @FilePath: /CasaOS/pkg/utils/network_detection.go * @Description: * * Copyright (c) 2022 by LinkLeong a624669980@163.com, All Rights Reserved. */ package u...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/udev_helper.go
pkg/utils/udev_helper.go
/* * @Author: LinkLeong link@icewhale.org * @Date: 2022-08-10 16:06:12 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-10 16:11:37 * @FilePath: /CasaOS/pkg/utils/udev_helper.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package utils // func ...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/slice.go
pkg/utils/slice.go
package utils // SliceEqual check if two slices are equal func SliceEqual[T comparable](a, b []T) bool { if len(a) != len(b) { return false } for i, v := range a { if v != b[i] { return false } } return true } // SliceContains check if slice contains element func SliceContains[T comparable](arr []T, v T...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/ctx.go
pkg/utils/ctx.go
package utils import ( "context" ) func IsCanceled(ctx context.Context) bool { select { case <-ctx.Done(): return true default: return false } }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/balance.go
pkg/utils/balance.go
package utils import "strings" var balance = ".balance" func IsBalance(str string) bool { return strings.Contains(str, balance) } // GetActualMountPath remove balance suffix func GetActualMountPath(virtualPath string) string { bIndex := strings.LastIndex(virtualPath, ".balance") if bIndex != -1 { virtualPath =...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/default_post_form.go
pkg/utils/default_post_form.go
package utils import "github.com/labstack/echo/v4" func DefaultPostForm(ctx echo.Context, key, defaultValue string) string { value := ctx.Request().Form.Get(key) if value == "" { return defaultValue } return value }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/file/block.go
pkg/utils/file/block.go
package file import ( "crypto/md5" "encoding/hex" "io" "math" "os" "strconv" ) // Get info of block func GetBlockInfo(fileSize int64) (blockSize int, length int) { switch { case fileSize <= 1<<28: //256M blockSize = 1 << 17 //128kb case fileSize <= 1<<29: //512M blockSize = 1 << 18 //256kb case fileSize...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/file/file.go
pkg/utils/file/file.go
package file import ( "bufio" "bytes" "errors" "fmt" "io" "io/fs" "io/ioutil" "log" "mime/multipart" "os" "path" path2 "path" "path/filepath" "strconv" "strings" "github.com/mholt/archiver/v3" ) // GetSize get the file size func GetSize(f multipart.File) (int, error) { content, err := ioutil.ReadAll...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/file/image.go
pkg/utils/file/image.go
package file import ( "bytes" "errors" "fmt" "io" "net/http" "os" "path/filepath" "strings" "github.com/disintegration/imaging" "github.com/dsoprea/go-exif/v3" exifcommon "github.com/dsoprea/go-exif/v3/common" ) func GetImage(path string, width, height int) ([]byte, error) { if thumbnail, err := GetThumb...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/file/reader.go
pkg/utils/file/reader.go
package file import ( "bytes" "fmt" "io" "os" ) var ( buffSize = 1 << 20 ) // ReadLineFromEnd -- type ReadLineFromEnd struct { f *os.File fileSize int bwr *bytes.Buffer lineBuff []byte swapBuff []byte isFirst bool } // NewReadLineFromEnd -- func NewReadLineFromEnd(name string) (rd *ReadLineFromEnd...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/file/file_test.go
pkg/utils/file/file_test.go
package file import ( "fmt" "testing" "go.uber.org/goleak" ) func TestNameAccumulation(t *testing.T) { goleak.VerifyNone(t) fmt.Println("aaa") a := NameAccumulation("/mnt/test_1_1", "/") fmt.Println(a) }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/encryption/md5_helper.go
pkg/utils/encryption/md5_helper.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2022-06-14 14:33:25 * @LastEditors: LinkLeong * @LastEditTime: 2022-06-14 14:33:49 * @FilePath: /CasaOS/pkg/utils/encryption/md5_helper.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package encry...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/version/version.go
pkg/utils/version/version.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2022-05-13 18:15:46 * @LastEditors: LinkLeong * @LastEditTime: 2022-07-21 15:27:53 * @FilePath: /CasaOS/pkg/utils/version/version.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package version im...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/common_err/e.go
pkg/utils/common_err/e.go
package common_err const ( SUCCESS = 200 SERVICE_ERROR = 500 CLIENT_ERROR = 400 ERROR_AUTH_TOKEN = 401 INVALID_PARAMS = 4000 //user PWD_INVALID = 10001 PWD_IS_EMPTY = 10002 PWD_INVALID_OLD = 10003 ACCOUNT_LOCK = 10004 PWD_IS_TOO_SIMPLE = ...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/ip_helper/ip_test.go
pkg/utils/ip_helper/ip_test.go
package ip_helper import ( "fmt" "net" "testing" "go.uber.org/goleak" ) func TestGetExternalIPV4(t *testing.T) { goleak.VerifyNone(t) ipv4 := make(chan string) go func() { ipv4 <- GetExternalIPV4() }() fmt.Println(<-ipv4) } func TestGetExternalIPV6(t *testing.T) { ipv6 := make(chan string) go func() { ip...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/ip_helper/ip.go
pkg/utils/ip_helper/ip.go
package ip_helper import ( "fmt" "net" "strings" httper2 "github.com/IceWhaleTech/CasaOS/pkg/utils/httper" ) func IsIPv4(address string) bool { return strings.Count(address, ":") < 2 } func IsIPv6(address string) bool { return strings.Count(address, ":") >= 2 } // 获取外网ip func GetExternalIPV4() string { retu...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/httper/drive.go
pkg/utils/httper/drive.go
package httper import ( "encoding/json" "fmt" "net" "net/http" "time" "github.com/IceWhaleTech/CasaOS-Common/utils/logger" "github.com/go-resty/resty/v2" "go.uber.org/zap" ) type MountList struct { MountPoints []MountPoints `json:"mountPoints"` } type MountPoints struct { MountPoint string `json:"MountPoin...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/httper/zerotier.go
pkg/utils/httper/zerotier.go
package httper import ( "fmt" "io/ioutil" "net/http" "strings" ) func ZTGet(url string) ([]byte, error) { port, err := ioutil.ReadFile("/var/lib/zerotier-one/zerotier-one.port") if err != nil { return nil, err } // Build the target URL targetURL := fmt.Sprintf("http://localhost:%s%s", strings.TrimSpace(st...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/utils/httper/httper.go
pkg/utils/httper/httper.go
package httper import ( "bytes" "fmt" "io" "io/ioutil" "net/http" "time" "github.com/IceWhaleTech/CasaOS/pkg/config" "github.com/tidwall/gjson" ) // 发送GET请求 // url:请求地址 // response:请求返回的内容 func Get(url string, head map[string]string) (response string) { client := &http.Client{Timeout: 30 * time.Second} req...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/generic_sync/generic_sync.go
pkg/generic_sync/generic_sync.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package generic_sync import ( "sync" "sync/atomic" "unsafe" ) // MapOf is like a Go map[interface{}]interface{} but is safe for concurrent use // by multip...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/singleflight/singleflight.go
pkg/singleflight/singleflight.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package singleflight provides a duplicate function call suppression // mechanism. package singleflight import ( "bytes" "errors" "fmt" "runtime" "runti...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/config/init.go
pkg/config/init.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2022-05-13 18:15:46 * @LastEditors: LinkLeong * @LastEditTime: 2022-09-05 11:58:02 * @FilePath: /CasaOS/pkg/config/init.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package config import ( "fm...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/config/config.go
pkg/config/config.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2021-09-30 18:18:14 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-31 17:04:02 * @FilePath: /CasaOS/pkg/config/config.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package config import ( "...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/ddns/emum.go
pkg/ddns/emum.go
package ddns const ( GOGADDY = iota GOOGLE ) const ( A = "A" AAAA = "AAAA" ) const ( GODADDYAPIURL = "https://api.godaddy.com" )
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/pkg/fs/fs.go
pkg/fs/fs.go
package fs import "io" // CheckClose is a utility function used to check the return from // Close in a defer statement. func CheckClose(c io.Closer, err *error) { cerr := c.Close() if *err == nil { *err = cerr } }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/health.go
service/health.go
package service import ( "github.com/IceWhaleTech/CasaOS-Common/utils/port" "github.com/IceWhaleTech/CasaOS-Common/utils/systemctl" ) type HealthService interface { Services() (map[bool]*[]string, error) Ports() ([]int, []int, error) } type service struct{} func (s *service) Services() (map[bool]*[]string, erro...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/storage.go
service/storage.go
package service import ( "io/ioutil" "github.com/IceWhaleTech/CasaOS-Common/utils/logger" "github.com/IceWhaleTech/CasaOS/pkg/utils/file" "github.com/IceWhaleTech/CasaOS/pkg/utils/httper" "go.uber.org/zap" ) type StorageService interface { MountStorage(mountPoint, fs string) error UnmountStorage(mountPoint st...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/file.go
service/file.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2021-12-20 14:15:46 * @LastEditors: LinkLeong * @LastEditTime: 2022-07-04 16:18:23 * @FilePath: /CasaOS/service/file.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package service import ( "cont...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/file_upload.go
service/file_upload.go
package service import ( "fmt" "io" "mime/multipart" "os" "path/filepath" "sync" "github.com/IceWhaleTech/CasaOS-Common/utils/logger" "github.com/labstack/echo/v4" "go.uber.org/zap" ) type FileInfo struct { init bool uploaded []bool uploadedChunkNum int64 } type FileUploadService str...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/service.go
service/service.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2022-07-12 09:48:56 * @LastEditors: LinkLeong * @LastEditTime: 2022-09-02 22:10:05 * @FilePath: /CasaOS/service/service.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package service import ( "g...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/peer.go
service/peer.go
/* * @Author: LinkLeong link@icewhale.org * @Date: 2022-07-26 18:13:22 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-04 20:10:31 * @FilePath: /CasaOS/service/connections.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package service import (...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/other.go
service/other.go
package service import ( "net/url" "strings" "sync" "time" "github.com/IceWhaleTech/CasaOS-Common/utils/logger" "github.com/IceWhaleTech/CasaOS/model" "github.com/go-resty/resty/v2" "github.com/tidwall/gjson" "go.uber.org/zap" ) type OtherService interface { Search(key string) ([]model.SearchEngine, error)...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/health_test.go
service/health_test.go
package service_test import ( "testing" "github.com/IceWhaleTech/CasaOS/service" "github.com/stretchr/testify/assert" ) func TestPorts(t *testing.T) { service := service.NewHealthService() tcpPorts, udpPorts, err := service.Ports() assert.NoError(t, err) assert.NotEmpty(t, tcpPorts) assert.NotEmpty(t, udpP...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/file_test.go
service/file_test.go
package service import ( "context" "fmt" "io" "log" "os" "testing" "time" ) var ( ctx context.Context cancel context.CancelFunc ) func TestNewInteruptReader(t *testing.T) { t.Skip("This test is always failing. Skipped to unblock releasing - MUST FIX!") ctx, cancel = context.WithCancel(context.Backgrou...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/shares.go
service/shares.go
/* * @Author: LinkLeong link@icewhale.org * @Date: 2022-07-26 11:21:14 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-18 11:16:25 * @FilePath: /CasaOS/service/shares.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package service import ( "pa...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/system.go
service/system.go
package service import ( "encoding/json" "errors" "fmt" "io" net2 "net" "os" "path/filepath" "runtime" "strconv" "strings" "time" "github.com/IceWhaleTech/CasaOS-Common/utils/command" exec2 "github.com/IceWhaleTech/CasaOS-Common/utils/exec" "github.com/IceWhaleTech/CasaOS-Common/utils/file" "github.co...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/connections.go
service/connections.go
/* * @Author: LinkLeong link@icewhale.org * @Date: 2022-07-26 18:13:22 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-04 20:10:31 * @FilePath: /CasaOS/service/connections.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package service import (...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/rely.go
service/rely.go
/* * @Author: LinkLeong link@icewhale.com * @Date: 2021-09-30 18:18:14 * @LastEditors: LinkLeong * @LastEditTime: 2022-06-02 18:00:57 * @FilePath: /CasaOS/service/rely.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package service import ( model...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/other_test.go
service/other_test.go
package service import ( "testing" "github.com/IceWhaleTech/CasaOS-Common/utils/logger" "go.uber.org/goleak" ) func TestSearch(t *testing.T) { logger.LogInitConsoleOnly() goleak.VerifyNone(t) if d, e := NewOtherService().Search("test"); e != nil || d == nil { t.Error("then test search error", e) } }
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/data_ handling.go
service/data_ handling.go
package service
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/notify.go
service/notify.go
package service import ( "context" "encoding/json" json2 "encoding/json" "fmt" "net/http" "time" "github.com/IceWhaleTech/CasaOS-Common/utils/logger" "github.com/IceWhaleTech/CasaOS/common" model2 "github.com/IceWhaleTech/CasaOS/model" "github.com/IceWhaleTech/CasaOS/model/notify" "github.com/IceWhaleTech/...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/casa.go
service/casa.go
package service import ( json2 "encoding/json" "time" "github.com/IceWhaleTech/CasaOS/model" "github.com/IceWhaleTech/CasaOS/pkg/config" "github.com/IceWhaleTech/CasaOS/pkg/utils/httper" "github.com/tidwall/gjson" ) type CasaService interface { GetCasaosVersion() model.Version } type casaService struct{} /*...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/socket.go
service/socket.go
package service import ( "net/http" "strconv" "strings" model2 "github.com/IceWhaleTech/CasaOS/service/model" "github.com/mileusna/useragent" ) type Name struct { Model string `json:"model"` OS string `json:"os"` Browser string `json:"browser"` DeviceName string `json:"deviceName"` Disp...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false
IceWhaleTech/CasaOS
https://github.com/IceWhaleTech/CasaOS/blob/0d3b2f444ec0193193cf03eef6d43c6e35b0183e/service/model/o_shares.go
service/model/o_shares.go
/* * @Author: LinkLeong link@icewhale.org * @Date: 2022-07-26 11:17:17 * @LastEditors: LinkLeong * @LastEditTime: 2022-07-27 15:25:07 * @FilePath: /CasaOS/service/model/o_shares.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved. */ package model type Sh...
go
Apache-2.0
0d3b2f444ec0193193cf03eef6d43c6e35b0183e
2026-01-07T08:36:15.413287Z
false