- Sort Score
- Result 10 results
- Languages All
Results 841 - 850 of 1,950 for func (0.05 sec)
-
cmd/sts-handlers.go
// registerSTSRouter - registers AWS STS compatible APIs. func registerSTSRouter(router *mux.Router) { // Initialize STS. sts := &stsAPIHandlers{} // STS Router stsRouter := router.NewRoute().PathPrefix(SlashSeparator).Subrouter() // Assume roles with no JWT, handles AssumeRole. stsRouter.Methods(http.MethodPost).MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) bool {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 01:29:20 UTC 2024 - 33.9K bytes - Viewed (0) -
istioctl/pkg/workload/workload.go
} func isRevisioned(revision string) bool { return revision != "" && revision != "default" } func IstiodHost(ns string, revision string) string { istiod := "istiod" if isRevisioned(revision) { istiod = fmt.Sprintf("%s-%s", istiod, revision) } return fmt.Sprintf("%s.%s.svc", istiod, ns) } func IstiodAddr(ns, revision string) string {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 25.3K bytes - Viewed (0) -
cmd/metrics-v3-system-process.go
processVirtualMemoryBytesMD = NewGaugeMD(processVirtualMemoryBytes, "Virtual memory size in bytes") processVirtualMemoryMaxBytesMD = NewGaugeMD(processVirtualMemoryMaxBytes, "Maximum virtual memory size in bytes") ) func loadProcStatMetrics(ctx context.Context, stat procfs.ProcStat, m MetricValues) { if stat.CPUTime() > 0 { m.Set(processCPUTotalSeconds, float64(stat.CPUTime())) } if stat.ResidentMemory() > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 20 17:55:03 UTC 2024 - 6.5K bytes - Viewed (0) -
internal/config/crypto_test.go
b.Fatal(err) } plaintext.Reset(data) } } b.Run("1KB", func(b *testing.B) { benchmarkEncrypt(1*1024, b) }) b.Run("512KB", func(b *testing.B) { benchmarkEncrypt(512*1024, b) }) b.Run("1MB", func(b *testing.B) { benchmarkEncrypt(1024*1024, b) }) b.Run("10MB", func(b *testing.B) { benchmarkEncrypt(10*1024*1024, b) })
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/metacache-walk_gen.go
package cmd // Code generated by github.com/tinylib/msgp DO NOT EDIT. import ( "github.com/tinylib/msgp/msgp" ) // DecodeMsg implements msgp.Decodable func (z *WalkDirOptions) DecodeMsg(dc *msgp.Reader) (err error) { var field []byte _ = field var zb0001 uint32 zb0001, err = dc.ReadMapHeader() if err != nil { err = msgp.WrapError(err) return } for zb0001 > 0 { zb0001-- field, err = dc.ReadMapKeyPtr()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 7K bytes - Viewed (0) -
cmd/s3-zip-handlers.go
) // splitZipExtensionPath splits the S3 path to the zip file and the path inside the zip: // // e.g /path/to/archive.zip/backup-2021/myimage.png => /path/to/archive.zip, backup/myimage.png func splitZipExtensionPath(input string) (zipPath, object string, err error) { idx := strings.Index(input, archivePattern) if idx < 0 { // Should never happen return "", "", errors.New("unable to parse zip path") }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 15.8K bytes - Viewed (0) -
internal/hash/sha256/sh256.go
package sha256 import ( "crypto/sha256" "hash" ) // New initializes a new sha256.New() func New() hash.Hash { return sha256.New() } // Sum256 returns the SHA256 checksum of the data. func Sum256(data []byte) [sha256.Size]byte { return sha256.Sum256(data) } // Size is the size of a SHA256 checksum in bytes.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 26 06:31:35 UTC 2024 - 1.1K bytes - Viewed (0) -
clause/select_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestSelect(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}}, "SELECT * FROM `users`", nil, }, { []clause.Interface{clause.Select{ Columns: []clause.Column{clause.PrimaryColumn}, }, clause.From{}},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Feb 18 01:06:43 UTC 2023 - 1.7K bytes - Viewed (0) -
istioctl/pkg/cli/context_test.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package cli import "testing" func Test_handleNamespace(t *testing.T) { ns := handleNamespace("test", "default") if ns != "test" { t.Fatalf("Get the incorrect namespace: %q back", ns) } tests := []struct { description string
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 09 18:17:49 UTC 2023 - 1.4K bytes - Viewed (0) -
istioctl/pkg/util/clusters/wrapper.go
type Wrapper struct { *admin.Clusters } // MarshalJSON is a custom marshaller to handle protobuf pain func (w *Wrapper) MarshalJSON() ([]byte, error) { return protomarshal.Marshal(w) } // UnmarshalJSON is a custom unmarshaller to handle protobuf pain func (w *Wrapper) UnmarshalJSON(b []byte) error { cd := &admin.Clusters{} err := protomarshal.UnmarshalAllowUnknown(b, cd) *w = Wrapper{cd}
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 1.2K bytes - Viewed (0)