Documentation
¶
Overview ¶
Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, 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.
Index ¶
- func GetNumCPU() int
- func Int64PtrToIntPtr(int64ptr *int64) *int
- func MaxNum[T constraints.Integer | constraints.Float](a, b T) T
- func SignHTTPRequest(req *http.Request, region, service string, creds *credentials.Credentials, ...) error
- func Uint16SliceToStringSlice(slice []uint16) []*string
- func ZeroOrNil(obj interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int64PtrToIntPtr ¶
Int64PtrToIntPtr converts a *int64 to *int.
func MaxNum ¶
func MaxNum[T constraints.Integer | constraints.Float](a, b T) T
MaxNum returns the maximum value between two numbers.
func SignHTTPRequest ¶
func SignHTTPRequest(req *http.Request, region, service string, creds *credentials.Credentials, body io.ReadSeeker) error
SignHTTPRequest signs an http.Request struct with authv4 using the given region, service, and credentials.
func Uint16SliceToStringSlice ¶
Uint16SliceToStringSlice converts a slice of type uint16 to a slice of type *string. It uses strconv.Itoa on each element
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package cipher provides customized cipher configuration for agent client
|
Package cipher provides customized cipher configuration for agent client |
mocks
Package mock_execwrapper is a generated GoMock package.
|
Package mock_execwrapper is a generated GoMock package. |
Package httpproxy provides support for HTTP proxy determination based on environment variables, as provided by net/http's ProxyFromEnvironment function.
|
Package httpproxy provides support for HTTP proxy determination based on environment variables, as provided by net/http's ProxyFromEnvironment function. |
mocks
Package mock_ioutilwrapper is a generated GoMock package.
|
Package mock_ioutilwrapper is a generated GoMock package. |
mocks
Package mock_netlinkwrapper is a generated GoMock package.
|
Package mock_netlinkwrapper is a generated GoMock package. |
mocks
Package mock_netwrapper is a generated GoMock package.
|
Package mock_netwrapper is a generated GoMock package. |
mocks
Package mock_oswrapper is a generated GoMock package.
|
Package mock_oswrapper is a generated GoMock package. |
mock
Package mock_retry is a generated GoMock package.
|
Package mock_retry is a generated GoMock package. |
Package ttime implements a testable alternative to the Go "time" package.
|
Package ttime implements a testable alternative to the Go "time" package. |
mocks
Package mock_ttime is a generated GoMock package.
|
Package mock_ttime is a generated GoMock package. |