query_docstring stringlengths 24 20.8k | positive_code stringlengths 17 325k | hard_negative_code stringlengths 17 325k | similarity_score float64 0.3 1 | query_repo stringclasses 407
values | query_path stringlengths 5 170 | hn_repo stringclasses 400
values | hn_path stringlengths 5 170 | hn_license stringclasses 4
values | language stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|
PostHTTPListenerModify is called after Envoy Gateway is done generating a
Listener xDS configuration and before that configuration is passed on to
Envoy Proxy.
This example adds Basic Authentication on the Listener level as an example.
Note: This implementation is not secure, and should not be used to protect
anything ... | func (s *Server) PostHTTPListenerModify(ctx context.Context, req *pb.PostHTTPListenerModifyRequest) (*pb.PostHTTPListenerModifyResponse, error) {
s.log.Info("postHTTPListenerModify callback was invoked")
// Collect all of the required username/password combinations from the
// provided contexts that were attached to... | func (t *testingExtensionServer) PostHTTPListenerModify(_ context.Context, req *pb.PostHTTPListenerModifyRequest) (*pb.PostHTTPListenerModifyResponse, error) {
// Only make the change when the listener's name matches the expected testdata
// This prevents us from having to update every single testfile.out
switch req... | 0.713937 | envoyproxy/gateway | examples/extension-server/internal/extensionserver/server.go | envoyproxy/gateway | internal/xds/translator/extensionserver_test.go | Apache-2.0 | go |
PostHTTPListenerModify is called after Envoy Gateway is done generating a
Listener xDS configuration and before that configuration is passed on to
Envoy Proxy.
This example adds Basic Authentication on the Listener level as an example.
Note: This implementation is not secure, and should not be used to protect
anything ... | func (s *Server) PostHTTPListenerModify(ctx context.Context, req *pb.PostHTTPListenerModifyRequest) (*pb.PostHTTPListenerModifyResponse, error) {
s.log.Info("postHTTPListenerModify callback was invoked")
// Collect all of the required username/password combinations from the
// provided contexts that were attached to... | func (*basicAuth) patchHCM(mgr *hcmv3.HttpConnectionManager, irListener *ir.HTTPListener) error {
if mgr == nil {
return errors.New("hcm is nil")
}
if irListener == nil {
return errors.New("ir listener is nil")
}
var errs error
for _, route := range irListener.Routes {
if route.Security == nil || route.Se... | 0.551244 | envoyproxy/gateway | examples/extension-server/internal/extensionserver/server.go | envoyproxy/gateway | internal/xds/translator/basicauth.go | Apache-2.0 | go |
PostHTTPListenerModify is called after Envoy Gateway is done generating a
Listener xDS configuration and before that configuration is passed on to
Envoy Proxy.
This example adds Basic Authentication on the Listener level as an example.
Note: This implementation is not secure, and should not be used to protect
anything ... | func (s *Server) PostHTTPListenerModify(ctx context.Context, req *pb.PostHTTPListenerModifyRequest) (*pb.PostHTTPListenerModifyResponse, error) {
s.log.Info("postHTTPListenerModify callback was invoked")
// Collect all of the required username/password combinations from the
// provided contexts that were attached to... | func (c *ELBV2) ModifyListener(input *ModifyListenerInput) (*ModifyListenerOutput, error) {
req, out := c.ModifyListenerRequest(input)
return out, req.Send()
} | 0.546635 | envoyproxy/gateway | examples/extension-server/internal/extensionserver/server.go | aws/aws-sdk-go | service/elbv2/api.go | Apache-2.0 | go |
PostHTTPListenerModify is called after Envoy Gateway is done generating a
Listener xDS configuration and before that configuration is passed on to
Envoy Proxy.
This example adds Basic Authentication on the Listener level as an example.
Note: This implementation is not secure, and should not be used to protect
anything ... | func (s *Server) PostHTTPListenerModify(ctx context.Context, req *pb.PostHTTPListenerModifyRequest) (*pb.PostHTTPListenerModifyResponse, error) {
s.log.Info("postHTTPListenerModify callback was invoked")
// Collect all of the required username/password combinations from the
// provided contexts that were attached to... | func (s *sandwichedTranslationPass) ApplyListenerPlugin(ctx context.Context, pCtx *ir.ListenerContext, out *listenerv3.Listener) {
_, ok := pCtx.Policy.(SandwichedInboundPolicy)
if !ok {
return
}
out.ListenerFilters = append(out.GetListenerFilters(), ProxyProtocolTLV)
s.isSandwiched = true
return
} | 0.514312 | envoyproxy/gateway | examples/extension-server/internal/extensionserver/server.go | kgateway-dev/kgateway | internal/kgateway/extensions2/plugins/sandwich/plugin.go | Apache-2.0 | go |
PostHTTPListenerModify is called after Envoy Gateway is done generating a
Listener xDS configuration and before that configuration is passed on to
Envoy Proxy.
This example adds Basic Authentication on the Listener level as an example.
Note: This implementation is not secure, and should not be used to protect
anything ... | func (s *Server) PostHTTPListenerModify(ctx context.Context, req *pb.PostHTTPListenerModifyRequest) (*pb.PostHTTPListenerModifyResponse, error) {
s.log.Info("postHTTPListenerModify callback was invoked")
// Collect all of the required username/password combinations from the
// provided contexts that were attached to... | func (t *waypointTranslator) buildHTTPVirtualHost(
ctx context.Context,
baseReporter reports.Reporter,
gw *ir.Gateway,
gwListener *ir.Listener,
svc waypointquery.Service,
httpRoutes []*query.RouteInfo,
) *ir.VirtualHost {
if len(httpRoutes) == 0 {
return nil
}
var translatedRoutes []ir.HttpRouteRuleMatchIR
... | 0.499061 | envoyproxy/gateway | examples/extension-server/internal/extensionserver/server.go | kgateway-dev/kgateway | internal/kgateway/extensions2/plugins/waypoint/waypoint_translator.go | Apache-2.0 | go |
ToUint32 returns uint32 value dereferenced if the passed
in pointer was not nil. Returns a uint32 zero value if the
pointer was nil. | func ToUint32(p *uint32) (v uint32) {
if p == nil {
return v
}
return *p
} | func ToUint(p *uint) (v uint) {
if p == nil {
return v
}
return *p
} | 0.889822 | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | Apache-2.0 | go |
ToUint32 returns uint32 value dereferenced if the passed
in pointer was not nil. Returns a uint32 zero value if the
pointer was nil. | func ToUint32(p *uint32) (v uint32) {
if p == nil {
return v
}
return *p
} | func ToUint32Slice(vs []*uint32) []uint32 {
ps := make([]uint32, len(vs))
for i, v := range vs {
ps[i] = ToUint32(v)
}
return ps
} | 0.879275 | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | Apache-2.0 | go |
ToUint32 returns uint32 value dereferenced if the passed
in pointer was not nil. Returns a uint32 zero value if the
pointer was nil. | func ToUint32(p *uint32) (v uint32) {
if p == nil {
return v
}
return *p
} | func ToUint8(p *uint8) (v uint8) {
if p == nil {
return v
}
return *p
} | 0.856035 | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | Apache-2.0 | go |
ToUint32 returns uint32 value dereferenced if the passed
in pointer was not nil. Returns a uint32 zero value if the
pointer was nil. | func ToUint32(p *uint32) (v uint32) {
if p == nil {
return v
}
return *p
} | func ToInt32(p *int32) (v int32) {
if p == nil {
return v
}
return *p
} | 0.845522 | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | Apache-2.0 | go |
ToUint32 returns uint32 value dereferenced if the passed
in pointer was not nil. Returns a uint32 zero value if the
pointer was nil. | func ToUint32(p *uint32) (v uint32) {
if p == nil {
return v
}
return *p
} | func ToUint64(p *uint64) (v uint64) {
if p == nil {
return v
}
return *p
} | 0.833802 | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | tektoncd/cli | vendor/github.com/aws/smithy-go/ptr/from_ptr.go | Apache-2.0 | go |
ListCertificateProvidersRequest generates a "aws/request.Request" representing the
client's request for the ListCertificateProviders operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call... | func (c *IoT) ListCertificateProvidersRequest(input *ListCertificateProvidersInput) (req *request.Request, output *ListCertificateProvidersOutput) {
op := &request.Operation{
Name: opListCertificateProviders,
HTTPMethod: "GET",
HTTPPath: "/certificate-providers/",
}
if input == nil {
input = &ListCe... | func (c *IoT) ListCertificateProvidersWithContext(ctx aws.Context, input *ListCertificateProvidersInput, opts ...request.Option) (*ListCertificateProvidersOutput, error) {
req, out := c.ListCertificateProvidersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.834796 | aws/aws-sdk-go | service/iot/api.go | aws/aws-sdk-go | service/iot/api.go | Apache-2.0 | go |
ListCertificateProvidersRequest generates a "aws/request.Request" representing the
client's request for the ListCertificateProviders operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call... | func (c *IoT) ListCertificateProvidersRequest(input *ListCertificateProvidersInput) (req *request.Request, output *ListCertificateProvidersOutput) {
op := &request.Operation{
Name: opListCertificateProviders,
HTTPMethod: "GET",
HTTPPath: "/certificate-providers/",
}
if input == nil {
input = &ListCe... | func (c *IoT) DescribeCertificateProviderRequest(input *DescribeCertificateProviderInput) (req *request.Request, output *DescribeCertificateProviderOutput) {
op := &request.Operation{
Name: opDescribeCertificateProvider,
HTTPMethod: "GET",
HTTPPath: "/certificate-providers/{certificateProviderName}",
}
... | 0.768989 | aws/aws-sdk-go | service/iot/api.go | aws/aws-sdk-go | service/iot/api.go | Apache-2.0 | go |
ListCertificateProvidersRequest generates a "aws/request.Request" representing the
client's request for the ListCertificateProviders operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call... | func (c *IoT) ListCertificateProvidersRequest(input *ListCertificateProvidersInput) (req *request.Request, output *ListCertificateProvidersOutput) {
op := &request.Operation{
Name: opListCertificateProviders,
HTTPMethod: "GET",
HTTPPath: "/certificate-providers/",
}
if input == nil {
input = &ListCe... | func (c *IoT) CreateCertificateProviderRequest(input *CreateCertificateProviderInput) (req *request.Request, output *CreateCertificateProviderOutput) {
op := &request.Operation{
Name: opCreateCertificateProvider,
HTTPMethod: "POST",
HTTPPath: "/certificate-providers/{certificateProviderName}",
}
if in... | 0.746974 | aws/aws-sdk-go | service/iot/api.go | aws/aws-sdk-go | service/iot/api.go | Apache-2.0 | go |
ListCertificateProvidersRequest generates a "aws/request.Request" representing the
client's request for the ListCertificateProviders operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call... | func (c *IoT) ListCertificateProvidersRequest(input *ListCertificateProvidersInput) (req *request.Request, output *ListCertificateProvidersOutput) {
op := &request.Operation{
Name: opListCertificateProviders,
HTTPMethod: "GET",
HTTPPath: "/certificate-providers/",
}
if input == nil {
input = &ListCe... | func (c *CognitoIdentityProvider) ListIdentityProvidersRequest(input *ListIdentityProvidersInput) (req *request.Request, output *ListIdentityProvidersOutput) {
op := &request.Operation{
Name: opListIdentityProviders,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: ... | 0.744537 | aws/aws-sdk-go | service/iot/api.go | aws/aws-sdk-go | service/cognitoidentityprovider/api.go | Apache-2.0 | go |
ListCertificateProvidersRequest generates a "aws/request.Request" representing the
client's request for the ListCertificateProviders operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call... | func (c *IoT) ListCertificateProvidersRequest(input *ListCertificateProvidersInput) (req *request.Request, output *ListCertificateProvidersOutput) {
op := &request.Operation{
Name: opListCertificateProviders,
HTTPMethod: "GET",
HTTPPath: "/certificate-providers/",
}
if input == nil {
input = &ListCe... | func (c *IAM) ListOpenIDConnectProvidersRequest(input *ListOpenIDConnectProvidersInput) (req *request.Request, output *ListOpenIDConnectProvidersOutput) {
op := &request.Operation{
Name: opListOpenIDConnectProviders,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListOpenIDConnectPr... | 0.74383 | aws/aws-sdk-go | service/iot/api.go | aws/aws-sdk-go | service/iam/api.go | Apache-2.0 | go |
DescribeEdgeConfigurationRequest generates a "aws/request.Request" representing the
client's request for the DescribeEdgeConfiguration operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API ca... | func (c *KinesisVideo) DescribeEdgeConfigurationRequest(input *DescribeEdgeConfigurationInput) (req *request.Request, output *DescribeEdgeConfigurationOutput) {
op := &request.Operation{
Name: opDescribeEdgeConfiguration,
HTTPMethod: "POST",
HTTPPath: "/describeEdgeConfiguration",
}
if input == nil {
... | func (c *KinesisVideo) DeleteEdgeConfigurationRequest(input *DeleteEdgeConfigurationInput) (req *request.Request, output *DeleteEdgeConfigurationOutput) {
op := &request.Operation{
Name: opDeleteEdgeConfiguration,
HTTPMethod: "POST",
HTTPPath: "/deleteEdgeConfiguration",
}
if input == nil {
input = ... | 0.858726 | aws/aws-sdk-go | service/kinesisvideo/api.go | aws/aws-sdk-go | service/kinesisvideo/api.go | Apache-2.0 | go |
DescribeEdgeConfigurationRequest generates a "aws/request.Request" representing the
client's request for the DescribeEdgeConfiguration operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API ca... | func (c *KinesisVideo) DescribeEdgeConfigurationRequest(input *DescribeEdgeConfigurationInput) (req *request.Request, output *DescribeEdgeConfigurationOutput) {
op := &request.Operation{
Name: opDescribeEdgeConfiguration,
HTTPMethod: "POST",
HTTPPath: "/describeEdgeConfiguration",
}
if input == nil {
... | func (c *KinesisVideo) DescribeEdgeConfiguration(input *DescribeEdgeConfigurationInput) (*DescribeEdgeConfigurationOutput, error) {
req, out := c.DescribeEdgeConfigurationRequest(input)
return out, req.Send()
} | 0.811512 | aws/aws-sdk-go | service/kinesisvideo/api.go | aws/aws-sdk-go | service/kinesisvideo/api.go | Apache-2.0 | go |
DescribeEdgeConfigurationRequest generates a "aws/request.Request" representing the
client's request for the DescribeEdgeConfiguration operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API ca... | func (c *KinesisVideo) DescribeEdgeConfigurationRequest(input *DescribeEdgeConfigurationInput) (req *request.Request, output *DescribeEdgeConfigurationOutput) {
op := &request.Operation{
Name: opDescribeEdgeConfiguration,
HTTPMethod: "POST",
HTTPPath: "/describeEdgeConfiguration",
}
if input == nil {
... | func (c *KinesisVideo) StartEdgeConfigurationUpdateRequest(input *StartEdgeConfigurationUpdateInput) (req *request.Request, output *StartEdgeConfigurationUpdateOutput) {
op := &request.Operation{
Name: opStartEdgeConfigurationUpdate,
HTTPMethod: "POST",
HTTPPath: "/startEdgeConfigurationUpdate",
}
if ... | 0.765702 | aws/aws-sdk-go | service/kinesisvideo/api.go | aws/aws-sdk-go | service/kinesisvideo/api.go | Apache-2.0 | go |
DescribeEdgeConfigurationRequest generates a "aws/request.Request" representing the
client's request for the DescribeEdgeConfiguration operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API ca... | func (c *KinesisVideo) DescribeEdgeConfigurationRequest(input *DescribeEdgeConfigurationInput) (req *request.Request, output *DescribeEdgeConfigurationOutput) {
op := &request.Operation{
Name: opDescribeEdgeConfiguration,
HTTPMethod: "POST",
HTTPPath: "/describeEdgeConfiguration",
}
if input == nil {
... | func (c *MQ) DescribeConfigurationRequest(input *DescribeConfigurationInput) (req *request.Request, output *DescribeConfigurationOutput) {
op := &request.Operation{
Name: opDescribeConfiguration,
HTTPMethod: "GET",
HTTPPath: "/v1/configurations/{configuration-id}",
}
if input == nil {
input = &Descr... | 0.732179 | aws/aws-sdk-go | service/kinesisvideo/api.go | aws/aws-sdk-go | service/mq/api.go | Apache-2.0 | go |
DescribeEdgeConfigurationRequest generates a "aws/request.Request" representing the
client's request for the DescribeEdgeConfiguration operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API ca... | func (c *KinesisVideo) DescribeEdgeConfigurationRequest(input *DescribeEdgeConfigurationInput) (req *request.Request, output *DescribeEdgeConfigurationOutput) {
op := &request.Operation{
Name: opDescribeEdgeConfiguration,
HTTPMethod: "POST",
HTTPPath: "/describeEdgeConfiguration",
}
if input == nil {
... | func (c *KinesisVideo) DescribeEdgeConfigurationWithContext(ctx aws.Context, input *DescribeEdgeConfigurationInput, opts ...request.Option) (*DescribeEdgeConfigurationOutput, error) {
req, out := c.DescribeEdgeConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.728072 | aws/aws-sdk-go | service/kinesisvideo/api.go | aws/aws-sdk-go | service/kinesisvideo/api.go | Apache-2.0 | go |
AddPodToMesh adds a pod to mesh by
1. Getting the netns (and making sure the netns is cached in the ztunnel state of the world snapshot)
2. Adding the pod's IPs to the hostnetns ipsets for node probe checks
3. Creating iptables rules inside the pod's netns
4. Notifying the connected ztunnel via GRPC to create a proxy f... | func (s *NetServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
log.Info("adding pod to the mesh")
// make sure the cache is aware of the pod, even if we don't have the netns yet.
s.currentPodSnapshot.Ensu... | func (s *meshDataplane) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
// Ordering is important in this func:
//
// - Inject rules and add to ztunnel FIRST
// - Annotate IF rule injection doesn't fail.
// - Add pod IP to ipset IF none of the above has failed, as a las... | 0.793343 | istio/istio | cni/pkg/nodeagent/net_linux.go | istio/istio | cni/pkg/nodeagent/meshdataplane_linux.go | Apache-2.0 | go |
AddPodToMesh adds a pod to mesh by
1. Getting the netns (and making sure the netns is cached in the ztunnel state of the world snapshot)
2. Adding the pod's IPs to the hostnetns ipsets for node probe checks
3. Creating iptables rules inside the pod's netns
4. Notifying the connected ztunnel via GRPC to create a proxy f... | func (s *NetServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
log.Info("adding pod to the mesh")
// make sure the cache is aware of the pod, even if we don't have the netns yet.
s.currentPodSnapshot.Ensu... | func (s *meshDataplane) addPodToHostNSIpset(pod *corev1.Pod, podIPs []netip.Addr) ([]netip.Addr, error) {
// Add the pod UID as an ipset entry comment, so we can (more) easily find and delete
// all relevant entries for a pod later.
podUID := string(pod.ObjectMeta.UID)
ipProto := uint8(unix.IPPROTO_TCP)
log := log... | 0.724153 | istio/istio | cni/pkg/nodeagent/net_linux.go | istio/istio | cni/pkg/nodeagent/meshdataplane_linux.go | Apache-2.0 | go |
AddPodToMesh adds a pod to mesh by
1. Getting the netns (and making sure the netns is cached in the ztunnel state of the world snapshot)
2. Adding the pod's IPs to the hostnetns ipsets for node probe checks
3. Creating iptables rules inside the pod's netns
4. Notifying the connected ztunnel via GRPC to create a proxy f... | func (s *NetServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
log.Info("adding pod to the mesh")
// make sure the cache is aware of the pod, even if we don't have the netns yet.
s.currentPodSnapshot.Ensu... | func (s *meshDataplane) RemovePodFromMesh(ctx context.Context, pod *corev1.Pod, isDelete bool) error {
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
log.WithLabels("deleted", isDelete).Info("removing pod from mesh")
// Remove the hostside ipset entry first, and unconditionally - if later failures hap... | 0.661118 | istio/istio | cni/pkg/nodeagent/net_linux.go | istio/istio | cni/pkg/nodeagent/meshdataplane_linux.go | Apache-2.0 | go |
AddPodToMesh adds a pod to mesh by
1. Getting the netns (and making sure the netns is cached in the ztunnel state of the world snapshot)
2. Adding the pod's IPs to the hostnetns ipsets for node probe checks
3. Creating iptables rules inside the pod's netns
4. Notifying the connected ztunnel via GRPC to create a proxy f... | func (s *NetServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
log.Info("adding pod to the mesh")
// make sure the cache is aware of the pod, even if we don't have the netns yet.
s.currentPodSnapshot.Ensu... | func (s *NetServer) RemovePodFromMesh(ctx context.Context, pod *corev1.Pod, isDelete bool) error {
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
log.WithLabels("delete", isDelete).Debugf("removing pod from the mesh")
// Whether pod is already deleted or not, we need to let go of our netns ref.
openN... | 0.63984 | istio/istio | cni/pkg/nodeagent/net_linux.go | istio/istio | cni/pkg/nodeagent/net_linux.go | Apache-2.0 | go |
AddPodToMesh adds a pod to mesh by
1. Getting the netns (and making sure the netns is cached in the ztunnel state of the world snapshot)
2. Adding the pod's IPs to the hostnetns ipsets for node probe checks
3. Creating iptables rules inside the pod's netns
4. Notifying the connected ztunnel via GRPC to create a proxy f... | func (s *NetServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
log.Info("adding pod to the mesh")
// make sure the cache is aware of the pod, even if we don't have the netns yet.
s.currentPodSnapshot.Ensu... | func (s *NetServer) reconcileExistingPod(pod *corev1.Pod) error {
openNetns, err := s.getNetns(pod)
if err != nil {
return err
}
podCfg := getPodLevelTrafficOverrides(pod)
if err := s.netnsRunner(openNetns, func() error {
return s.podIptables.CreateInpodRules(log, podCfg)
}); err != nil {
return err
}
... | 0.605026 | istio/istio | cni/pkg/nodeagent/net_linux.go | istio/istio | cni/pkg/nodeagent/net_linux.go | Apache-2.0 | go |
PSHUFD performs "Shuffle Packed Doublewords".
Mnemonic : PSHUFD
Supported forms : (2 forms)
* PSHUFD imm8, xmm, xmm [SSE2]
* PSHUFD imm8, m128, xmm [SSE2] | func (self *Program) PSHUFD(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFD", 3, Operands { v0, v1, v2 })
// PSHUFD imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encodin... | func (self *Program) VPSHUFD(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("VPSHUFD", 3, Operands { v0, v1, v2 })
// VPSHUFD imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_AVX)
p.domain = DomainAVX
p.add(0, func(m *_Encoding... | 0.927842 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
PSHUFD performs "Shuffle Packed Doublewords".
Mnemonic : PSHUFD
Supported forms : (2 forms)
* PSHUFD imm8, xmm, xmm [SSE2]
* PSHUFD imm8, m128, xmm [SSE2] | func (self *Program) PSHUFD(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFD", 3, Operands { v0, v1, v2 })
// PSHUFD imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encodin... | func (self *Program) PSHUFHW(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFHW", 3, Operands { v0, v1, v2 })
// PSHUFHW imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Enco... | 0.903761 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
PSHUFD performs "Shuffle Packed Doublewords".
Mnemonic : PSHUFD
Supported forms : (2 forms)
* PSHUFD imm8, xmm, xmm [SSE2]
* PSHUFD imm8, m128, xmm [SSE2] | func (self *Program) PSHUFD(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFD", 3, Operands { v0, v1, v2 })
// PSHUFD imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encodin... | func (self *Program) PSHUFLW(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFLW", 3, Operands { v0, v1, v2 })
// PSHUFLW imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Enco... | 0.898351 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
PSHUFD performs "Shuffle Packed Doublewords".
Mnemonic : PSHUFD
Supported forms : (2 forms)
* PSHUFD imm8, xmm, xmm [SSE2]
* PSHUFD imm8, m128, xmm [SSE2] | func (self *Program) PSHUFD(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFD", 3, Operands { v0, v1, v2 })
// PSHUFD imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encodin... | func (self *Program) PSHUFW(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFW", 3, Operands { v0, v1, v2 })
// PSHUFW imm8, mm, mm
if isImm8(v0) && isMM(v1) && isMM(v2) {
self.require(ISA_MMX_PLUS)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encodin... | 0.89174 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
PSHUFD performs "Shuffle Packed Doublewords".
Mnemonic : PSHUFD
Supported forms : (2 forms)
* PSHUFD imm8, xmm, xmm [SSE2]
* PSHUFD imm8, m128, xmm [SSE2] | func (self *Program) PSHUFD(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("PSHUFD", 3, Operands { v0, v1, v2 })
// PSHUFD imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encodin... | func (self *Program) SHUFPD(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("SHUFPD", 3, Operands { v0, v1, v2 })
// SHUFPD imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE2)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encodin... | 0.840968 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
UpdateViewContentWithContext is the same as UpdateViewContent with the addition of
the ability to pass a context and additional request options.
See UpdateViewContent for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will... | func (c *Connect) UpdateViewContentWithContext(ctx aws.Context, input *UpdateViewContentInput, opts ...request.Option) (*UpdateViewContentOutput, error) {
req, out := c.UpdateViewContentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *ResourceExplorer2) UpdateViewWithContext(ctx aws.Context, input *UpdateViewInput, opts ...request.Option) (*UpdateViewOutput, error) {
req, out := c.UpdateViewRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.864967 | aws/aws-sdk-go | service/connect/api.go | aws/aws-sdk-go | service/resourceexplorer2/api.go | Apache-2.0 | go |
UpdateViewContentWithContext is the same as UpdateViewContent with the addition of
the ability to pass a context and additional request options.
See UpdateViewContent for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will... | func (c *Connect) UpdateViewContentWithContext(ctx aws.Context, input *UpdateViewContentInput, opts ...request.Option) (*UpdateViewContentOutput, error) {
req, out := c.UpdateViewContentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *ConnectWisdomService) UpdateContentWithContext(ctx aws.Context, input *UpdateContentInput, opts ...request.Option) (*UpdateContentOutput, error) {
req, out := c.UpdateContentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.858477 | aws/aws-sdk-go | service/connect/api.go | aws/aws-sdk-go | service/connectwisdomservice/api.go | Apache-2.0 | go |
UpdateViewContentWithContext is the same as UpdateViewContent with the addition of
the ability to pass a context and additional request options.
See UpdateViewContent for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will... | func (c *Connect) UpdateViewContentWithContext(ctx aws.Context, input *UpdateViewContentInput, opts ...request.Option) (*UpdateViewContentOutput, error) {
req, out := c.UpdateViewContentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *Connect) UpdateViewMetadataWithContext(ctx aws.Context, input *UpdateViewMetadataInput, opts ...request.Option) (*UpdateViewMetadataOutput, error) {
req, out := c.UpdateViewMetadataRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.761998 | aws/aws-sdk-go | service/connect/api.go | aws/aws-sdk-go | service/connect/api.go | Apache-2.0 | go |
UpdateViewContentWithContext is the same as UpdateViewContent with the addition of
the ability to pass a context and additional request options.
See UpdateViewContent for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will... | func (c *Connect) UpdateViewContentWithContext(ctx aws.Context, input *UpdateViewContentInput, opts ...request.Option) (*UpdateViewContentOutput, error) {
req, out := c.UpdateViewContentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *Connect) UpdateViewContent(input *UpdateViewContentInput) (*UpdateViewContentOutput, error) {
req, out := c.UpdateViewContentRequest(input)
return out, req.Send()
} | 0.740208 | aws/aws-sdk-go | service/connect/api.go | aws/aws-sdk-go | service/connect/api.go | Apache-2.0 | go |
UpdateViewContentWithContext is the same as UpdateViewContent with the addition of
the ability to pass a context and additional request options.
See UpdateViewContent for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will... | func (c *Connect) UpdateViewContentWithContext(ctx aws.Context, input *UpdateViewContentInput, opts ...request.Option) (*UpdateViewContentOutput, error) {
req, out := c.UpdateViewContentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *Connect) CreateViewVersionWithContext(ctx aws.Context, input *CreateViewVersionInput, opts ...request.Option) (*CreateViewVersionOutput, error) {
req, out := c.CreateViewVersionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.709233 | aws/aws-sdk-go | service/connect/api.go | aws/aws-sdk-go | service/connect/api.go | Apache-2.0 | go |
Write accepts an event to be dispatched to all sinks. This method will never
fail and should never block (hopefully!). The caller cedes the memory to the
broadcaster and should not modify it after calling write. | func (b *Broadcaster) Write(event Event) error {
select {
case b.events <- event:
case <-b.closed:
return ErrSinkClosed
}
return nil
} | func (b *Broadcaster) Write(events ...Event) error {
select {
case b.events <- events:
case <-b.closed:
return ErrSinkClosed
}
return nil
} | 0.886745 | docker/cli | vendor/github.com/docker/go-events/broadcast.go | genuinetools/binctr | vendor/github.com/docker/distribution/notifications/sinks.go | MIT | go |
Write accepts an event to be dispatched to all sinks. This method will never
fail and should never block (hopefully!). The caller cedes the memory to the
broadcaster and should not modify it after calling write. | func (b *Broadcaster) Write(event Event) error {
select {
case b.events <- event:
case <-b.closed:
return ErrSinkClosed
}
return nil
} | func (c *Client) write(event *Event) {
c.mu.RLock()
defer c.mu.RUnlock()
if c.conn == nil {
// Drop the event if disconnected.
c.debugLogEvent(event, true)
return
}
t := time.NewTimer(30 * time.Second)
defer t.Stop()
select {
case c.tx <- event:
case <-t.C:
c.debugLogEvent(event, true)
}
} | 0.725615 | docker/cli | vendor/github.com/docker/go-events/broadcast.go | 42wim/matterbridge | vendor/github.com/lrstanley/girc/conn.go | Apache-2.0 | go |
Write accepts an event to be dispatched to all sinks. This method will never
fail and should never block (hopefully!). The caller cedes the memory to the
broadcaster and should not modify it after calling write. | func (b *Broadcaster) Write(event Event) error {
select {
case b.events <- event:
case <-b.closed:
return ErrSinkClosed
}
return nil
} | func (w *StreamWriter) Send(ctx aws.Context, event Marshaler) error {
if err := w.Err(); err != nil {
return err
}
resultCh := make(chan error)
wrapped := eventWriteAsyncReport{
Event: event,
Result: resultCh,
}
select {
case w.stream <- wrapped:
case <-ctx.Done():
return ctx.Err()
case <-w.done:
... | 0.720631 | docker/cli | vendor/github.com/docker/go-events/broadcast.go | armory/spinnaker-operator | vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/stream_writer.go | Apache-2.0 | go |
Write accepts an event to be dispatched to all sinks. This method will never
fail and should never block (hopefully!). The caller cedes the memory to the
broadcaster and should not modify it after calling write. | func (b *Broadcaster) Write(event Event) error {
select {
case b.events <- event:
case <-b.closed:
return ErrSinkClosed
}
return nil
} | func (provider *Provider) writeEventRaw(
descriptor *eventDescriptor,
activityID guid.GUID,
relatedActivityID guid.GUID,
metadataBlobs [][]byte,
dataBlobs [][]byte) error {
dataDescriptorCount := uint32(1 + len(metadataBlobs) + len(dataBlobs))
dataDescriptors := make([]eventDataDescriptor, 0, dataDescriptorCount... | 0.684885 | docker/cli | vendor/github.com/docker/go-events/broadcast.go | microsoft/go-winio | pkg/etw/provider.go | MIT | go |
Write accepts an event to be dispatched to all sinks. This method will never
fail and should never block (hopefully!). The caller cedes the memory to the
broadcaster and should not modify it after calling write. | func (b *Broadcaster) Write(event Event) error {
select {
case b.events <- event:
case <-b.closed:
return ErrSinkClosed
}
return nil
} | func (es *StartCallAnalyticsStreamTranscriptionEventStream) Send(ctx aws.Context, event AudioStreamEvent) error {
return es.Writer.Send(ctx, event)
} | 0.612221 | docker/cli | vendor/github.com/docker/go-events/broadcast.go | aws/aws-sdk-go | service/transcribestreamingservice/api.go | Apache-2.0 | go |
readLog queries the db for the saved pb.Update record identified by the
specified indexEntry parameter. For each encountered pb.Update record,
h will be invoked with the encountered pb.Update value passed to it. | func (d *db) readLog(ie indexEntry,
h func(u pb.Update, offset int64) bool) (err error) {
fn := makeFilename(d.opts.FS, d.dirname, fileTypeLog, ie.fileNum)
f, err := d.opts.FS.Open(fn)
if err != nil {
return err
}
defer func() {
err = firstError(err, f.Close())
}()
rr := newReader(f, ie.fileNum)
if ie.pos ... | func (d *db) removeEntries(shardID uint64, replicaID uint64, index uint64) error {
return d.remove(shardID, replicaID, index)
} | 0.582737 | lni/dragonboat | internal/tan/db.go | lni/dragonboat | internal/tan/compaction.go | Apache-2.0 | go |
readLog queries the db for the saved pb.Update record identified by the
specified indexEntry parameter. For each encountered pb.Update record,
h will be invoked with the encountered pb.Update value passed to it. | func (d *db) readLog(ie indexEntry,
h func(u pb.Update, offset int64) bool) (err error) {
fn := makeFilename(d.opts.FS, d.dirname, fileTypeLog, ie.fileNum)
f, err := d.opts.FS.Open(fn)
if err != nil {
return err
}
defer func() {
err = firstError(err, f.Close())
}()
rr := newReader(f, ie.fileNum)
if ie.pos ... | func (l *wal) seekEntry(raftIndex uint64) (entry, error) {
if raftIndex == 0 {
return emptyEntry, nil
}
fidx, off := l.slotGe(raftIndex)
if off == -1 {
// The entry is not in the log because it was already processed and compacted.
return emptyEntry, raft.ErrCompacted
} else if off >= maxNumEntries {
// Th... | 0.556112 | lni/dragonboat | internal/tan/db.go | hypermodeinc/dgraph | raftwal/wal.go | Apache-2.0 | go |
readLog queries the db for the saved pb.Update record identified by the
specified indexEntry parameter. For each encountered pb.Update record,
h will be invoked with the encountered pb.Update value passed to it. | func (d *db) readLog(ie indexEntry,
h func(u pb.Update, offset int64) bool) (err error) {
fn := makeFilename(d.opts.FS, d.dirname, fileTypeLog, ie.fileNum)
f, err := d.opts.FS.Open(fn)
if err != nil {
return err
}
defer func() {
err = firstError(err, f.Close())
}()
rr := newReader(f, ie.fileNum)
if ie.pos ... | func (vs *versionSet) logAndApply(
ve *versionEdit,
dir vfs.File,
) error {
if !vs.writing {
panic("MANIFEST not locked for writing")
}
defer vs.logUnlock()
// This is the next manifest filenum, but if the current file is too big we
// will write this ve to the next file which means what ve encodes is the
//... | 0.550195 | lni/dragonboat | internal/tan/db.go | lni/dragonboat | internal/tan/version_set.go | Apache-2.0 | go |
readLog queries the db for the saved pb.Update record identified by the
specified indexEntry parameter. For each encountered pb.Update record,
h will be invoked with the encountered pb.Update value passed to it. | func (d *db) readLog(ie indexEntry,
h func(u pb.Update, offset int64) bool) (err error) {
fn := makeFilename(d.opts.FS, d.dirname, fileTypeLog, ie.fileNum)
f, err := d.opts.FS.Open(fn)
if err != nil {
return err
}
defer func() {
err = firstError(err, f.Close())
}()
rr := newReader(f, ie.fileNum)
if ie.pos ... | func (e *indexEntry) merge(n indexEntry) (indexEntry, indexEntry, bool) {
if e.end+1 == n.start && e.pos+e.length == n.pos &&
e.fileNum == n.fileNum && e.indexBlock() == n.indexBlock() {
result := *e
result.end = n.end
result.length = e.length + n.length
return result, indexEntry{}, true
}
return *e, n, fa... | 0.522486 | lni/dragonboat | internal/tan/db.go | lni/dragonboat | internal/tan/index.go | Apache-2.0 | go |
readLog queries the db for the saved pb.Update record identified by the
specified indexEntry parameter. For each encountered pb.Update record,
h will be invoked with the encountered pb.Update value passed to it. | func (d *db) readLog(ie indexEntry,
h func(u pb.Update, offset int64) bool) (err error) {
fn := makeFilename(d.opts.FS, d.dirname, fileTypeLog, ie.fileNum)
f, err := d.opts.FS.Open(fn)
if err != nil {
return err
}
defer func() {
err = firstError(err, f.Close())
}()
rr := newReader(f, ie.fileNum)
if ie.pos ... | func (l *logContext) infer() error {
// We force-insert a checkpoint whenever we hit the known fixed interval.
if l.nextEntryIndex%searchCheckpointFrequency == 0 {
l.need.Add(FlagSearchCheckpoint)
}
if l.need.Any(FlagSearchCheckpoint) {
l.appendEntry(newSearchCheckpoint(l.blockNum, l.logsSince, l.timestamp))
... | 0.514802 | lni/dragonboat | internal/tan/db.go | ethereum-optimism/optimism | op-supervisor/supervisor/backend/db/logs/state.go | MIT | go |
DeleteChannel API operation for AWS Elemental MediaPackage v2.
Delete a channel to stop AWS Elemental MediaPackage from receiving further
content. You must delete the channel's origin endpoints before you can delete
the channel.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with aws... | func (c *MediaPackageV2) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | func (c *MediaPackage) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | 0.952385 | aws/aws-sdk-go | service/mediapackagev2/api.go | aws/aws-sdk-go | service/mediapackage/api.go | Apache-2.0 | go |
DeleteChannel API operation for AWS Elemental MediaPackage v2.
Delete a channel to stop AWS Elemental MediaPackage from receiving further
content. You must delete the channel's origin endpoints before you can delete
the channel.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with aws... | func (c *MediaPackageV2) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | func (c *MediaLive) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | 0.906757 | aws/aws-sdk-go | service/mediapackagev2/api.go | aws/aws-sdk-go | service/medialive/api.go | Apache-2.0 | go |
DeleteChannel API operation for AWS Elemental MediaPackage v2.
Delete a channel to stop AWS Elemental MediaPackage from receiving further
content. You must delete the channel's origin endpoints before you can delete
the channel.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with aws... | func (c *MediaPackageV2) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | func (c *IVS) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | 0.895785 | aws/aws-sdk-go | service/mediapackagev2/api.go | aws/aws-sdk-go | service/ivs/api.go | Apache-2.0 | go |
DeleteChannel API operation for AWS Elemental MediaPackage v2.
Delete a channel to stop AWS Elemental MediaPackage from receiving further
content. You must delete the channel's origin endpoints before you can delete
the channel.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with aws... | func (c *MediaPackageV2) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | func (c *IoTAnalytics) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | 0.873445 | aws/aws-sdk-go | service/mediapackagev2/api.go | aws/aws-sdk-go | service/iotanalytics/api.go | Apache-2.0 | go |
DeleteChannel API operation for AWS Elemental MediaPackage v2.
Delete a channel to stop AWS Elemental MediaPackage from receiving further
content. You must delete the channel's origin endpoints before you can delete
the channel.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with aws... | func (c *MediaPackageV2) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
} | func (c *MediaPackageV2) DeleteChannelPolicy(input *DeleteChannelPolicyInput) (*DeleteChannelPolicyOutput, error) {
req, out := c.DeleteChannelPolicyRequest(input)
return out, req.Send()
} | 0.870825 | aws/aws-sdk-go | service/mediapackagev2/api.go | aws/aws-sdk-go | service/mediapackagev2/api.go | Apache-2.0 | go |
NewFilteredPodTemplateInformer constructs a new informer for PodTemplate type.
Always prefer using an informer factory to get a shared informer instead of getting an independent
one. This reduces memory footprint and number of connections to the server. | func NewFilteredPodTemplateInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOpt... | func NewPodTemplateInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredPodTemplateInformer(client, namespace, resyncPeriod, indexers, nil)
} | 0.96838 | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/podtemplate.go | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/podtemplate.go | Apache-2.0 | go |
NewFilteredPodTemplateInformer constructs a new informer for PodTemplate type.
Always prefer using an informer factory to get a shared informer instead of getting an independent
one. This reduces memory footprint and number of connections to the server. | func NewFilteredPodTemplateInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOpt... | func NewFilteredPodInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOptions) (r... | 0.864768 | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/podtemplate.go | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/pod.go | Apache-2.0 | go |
NewFilteredPodTemplateInformer constructs a new informer for PodTemplate type.
Always prefer using an informer factory to get a shared informer instead of getting an independent
one. This reduces memory footprint and number of connections to the server. | func NewFilteredPodTemplateInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOpt... | func NewPodInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
return NewFilteredPodInformer(client, namespace, resyncPeriod, indexers, nil)
} | 0.837791 | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/podtemplate.go | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/pod.go | Apache-2.0 | go |
NewFilteredPodTemplateInformer constructs a new informer for PodTemplate type.
Always prefer using an informer factory to get a shared informer instead of getting an independent
one. This reduces memory footprint and number of connections to the server. | func NewFilteredPodTemplateInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOpt... | func NewFilteredPodSchedulingContextInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.Li... | 0.816437 | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/podtemplate.go | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/resource/v1alpha2/podschedulingcontext.go | Apache-2.0 | go |
NewFilteredPodTemplateInformer constructs a new informer for PodTemplate type.
Always prefer using an informer factory to get a shared informer instead of getting an independent
one. This reduces memory footprint and number of connections to the server. | func NewFilteredPodTemplateInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOpt... | func NewFilteredResourceClaimTemplateInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options v1.L... | 0.806848 | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/core/v1/podtemplate.go | k8snetworkplumbingwg/multus-cni | vendor/k8s.io/client-go/informers/resource/v1alpha2/resourceclaimtemplate.go | Apache-2.0 | go |
filterImages returns a slice of images which are passing all specified
filters.
tree must be provided if compileImageFilters indicated it is necessary. | func (r *Runtime) filterImages(ctx context.Context, images []*Image, filters compiledFilters, tree *layerTree) ([]*Image, error) {
result := []*Image{}
for i := range images {
match, err := images[i].applyFilters(ctx, filters, tree)
if err != nil {
return nil, err
}
if match {
result = append(result, im... | func (i *ImageService) Images(imageFilters filters.Args, all bool, withExtraAttrs bool) ([]*types.ImageSummary, error) {
var (
allImages map[image.ID]*image.Image
err error
danglingOnly = false
)
if err := imageFilters.Validate(acceptedImageFilterTags); err != nil {
return nil, err
}
if image... | 0.737455 | containers/podman-tui | vendor/github.com/containers/common/libimage/filters.go | genuinetools/binctr | vendor/github.com/docker/docker/daemon/images/images.go | MIT | go |
filterImages returns a slice of images which are passing all specified
filters.
tree must be provided if compileImageFilters indicated it is necessary. | func (r *Runtime) filterImages(ctx context.Context, images []*Image, filters compiledFilters, tree *layerTree) ([]*Image, error) {
result := []*Image{}
for i := range images {
match, err := images[i].applyFilters(ctx, filters, tree)
if err != nil {
return nil, err
}
if match {
result = append(result, im... | func (r *Runtime) compileImageFilters(ctx context.Context, options *ListImagesOptions) (compiledFilters, bool, error) {
logrus.Tracef("Parsing image filters %s", options.Filters)
if len(options.Filters) == 0 {
return nil, false, nil
}
filterInvalidValue := `invalid image filter %q: must be in the format "filter=... | 0.653979 | containers/podman-tui | vendor/github.com/containers/common/libimage/filters.go | containers/podman-tui | vendor/github.com/containers/common/libimage/filters.go | Apache-2.0 | go |
filterImages returns a slice of images which are passing all specified
filters.
tree must be provided if compileImageFilters indicated it is necessary. | func (r *Runtime) filterImages(ctx context.Context, images []*Image, filters compiledFilters, tree *layerTree) ([]*Image, error) {
result := []*Image{}
for i := range images {
match, err := images[i].applyFilters(ctx, filters, tree)
if err != nil {
return nil, err
}
if match {
result = append(result, im... | func (c *Client) PruneImages(opts PruneImagesOptions) (*PruneImagesResults, error) {
path := "/images/prune?" + queryString(opts)
resp, err := c.do(http.MethodPost, path, doOptions{context: opts.Context})
if err != nil {
return nil, err
}
defer resp.Body.Close()
var results PruneImagesResults
if err := json.Ne... | 0.597589 | containers/podman-tui | vendor/github.com/containers/common/libimage/filters.go | fsouza/go-dockerclient | image.go | BSD-2-Clause | go |
filterImages returns a slice of images which are passing all specified
filters.
tree must be provided if compileImageFilters indicated it is necessary. | func (r *Runtime) filterImages(ctx context.Context, images []*Image, filters compiledFilters, tree *layerTree) ([]*Image, error) {
result := []*Image{}
for i := range images {
match, err := images[i].applyFilters(ctx, filters, tree)
if err != nil {
return nil, err
}
if match {
result = append(result, im... | func (i *Image) getChildren(ctx context.Context, all bool, tree *layerTree) ([]*Image, error) {
if tree == nil {
t, err := i.runtime.newFreshLayerTree()
if err != nil {
return nil, err
}
tree = t
}
return tree.children(ctx, i, all)
} | 0.592542 | containers/podman-tui | vendor/github.com/containers/common/libimage/filters.go | containers/podman-tui | vendor/github.com/containers/common/libimage/image.go | Apache-2.0 | go |
filterImages returns a slice of images which are passing all specified
filters.
tree must be provided if compileImageFilters indicated it is necessary. | func (r *Runtime) filterImages(ctx context.Context, images []*Image, filters compiledFilters, tree *layerTree) ([]*Image, error) {
result := []*Image{}
for i := range images {
match, err := images[i].applyFilters(ctx, filters, tree)
if err != nil {
return nil, err
}
if match {
result = append(result, im... | func FindImages(index v1.ImageIndex, matcher match.Matcher) ([]v1.Image, error) {
matches := []v1.Image{}
manifests, err := FindManifests(index, matcher)
if err != nil {
return nil, err
}
for _, desc := range manifests {
// if it is not an image, ignore it
if !desc.MediaType.IsImage() {
continue
}
img... | 0.58949 | containers/podman-tui | vendor/github.com/containers/common/libimage/filters.go | tektoncd/cli | vendor/github.com/google/go-containerregistry/pkg/v1/partial/index.go | Apache-2.0 | go |
GetComponent API operation for AWS Systems Manager for SAP.
Gets the component of an application registered with AWS Systems Manager
for SAP.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See ... | func (c *SsmSap) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | func (c *Proton) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | 0.858509 | aws/aws-sdk-go | service/ssmsap/api.go | aws/aws-sdk-go | service/proton/api.go | Apache-2.0 | go |
GetComponent API operation for AWS Systems Manager for SAP.
Gets the component of an application registered with AWS Systems Manager
for SAP.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See ... | func (c *SsmSap) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | func (c *AmplifyUIBuilder) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | 0.827782 | aws/aws-sdk-go | service/ssmsap/api.go | aws/aws-sdk-go | service/amplifyuibuilder/api.go | Apache-2.0 | go |
GetComponent API operation for AWS Systems Manager for SAP.
Gets the component of an application registered with AWS Systems Manager
for SAP.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See ... | func (c *SsmSap) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | func (c *Imagebuilder) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | 0.766816 | aws/aws-sdk-go | service/ssmsap/api.go | aws/aws-sdk-go | service/imagebuilder/api.go | Apache-2.0 | go |
GetComponent API operation for AWS Systems Manager for SAP.
Gets the component of an application registered with AWS Systems Manager
for SAP.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See ... | func (c *SsmSap) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | func (c *GreengrassV2) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | 0.756947 | aws/aws-sdk-go | service/ssmsap/api.go | aws/aws-sdk-go | service/greengrassv2/api.go | Apache-2.0 | go |
GetComponent API operation for AWS Systems Manager for SAP.
Gets the component of an application registered with AWS Systems Manager
for SAP.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See ... | func (c *SsmSap) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) {
req, out := c.GetComponentRequest(input)
return out, req.Send()
} | func (c *SsmSap) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) {
req, out := c.GetApplicationRequest(input)
return out, req.Send()
} | 0.748943 | aws/aws-sdk-go | service/ssmsap/api.go | aws/aws-sdk-go | service/ssmsap/api.go | Apache-2.0 | go |
UpdateArtifactWithContext is the same as UpdateArtifact with the addition of
the ability to pass a context and additional request options.
See UpdateArtifact for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. I... | func (c *SageMaker) UpdateArtifactWithContext(ctx aws.Context, input *UpdateArtifactInput, opts ...request.Option) (*UpdateArtifactOutput, error) {
req, out := c.UpdateArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *SageMaker) DeleteArtifactWithContext(ctx aws.Context, input *DeleteArtifactInput, opts ...request.Option) (*DeleteArtifactOutput, error) {
req, out := c.DeleteArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.866192 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
UpdateArtifactWithContext is the same as UpdateArtifact with the addition of
the ability to pass a context and additional request options.
See UpdateArtifact for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. I... | func (c *SageMaker) UpdateArtifactWithContext(ctx aws.Context, input *UpdateArtifactInput, opts ...request.Option) (*UpdateArtifactOutput, error) {
req, out := c.UpdateArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *SageMaker) CreateArtifactWithContext(ctx aws.Context, input *CreateArtifactInput, opts ...request.Option) (*CreateArtifactOutput, error) {
req, out := c.CreateArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.849043 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
UpdateArtifactWithContext is the same as UpdateArtifact with the addition of
the ability to pass a context and additional request options.
See UpdateArtifact for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. I... | func (c *SageMaker) UpdateArtifactWithContext(ctx aws.Context, input *UpdateArtifactInput, opts ...request.Option) (*UpdateArtifactOutput, error) {
req, out := c.UpdateArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *SageMaker) DescribeArtifactWithContext(ctx aws.Context, input *DescribeArtifactInput, opts ...request.Option) (*DescribeArtifactOutput, error) {
req, out := c.DescribeArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.842828 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
UpdateArtifactWithContext is the same as UpdateArtifact with the addition of
the ability to pass a context and additional request options.
See UpdateArtifact for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. I... | func (c *SageMaker) UpdateArtifactWithContext(ctx aws.Context, input *UpdateArtifactInput, opts ...request.Option) (*UpdateArtifactOutput, error) {
req, out := c.UpdateArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *MigrationHub) AssociateCreatedArtifactWithContext(ctx aws.Context, input *AssociateCreatedArtifactInput, opts ...request.Option) (*AssociateCreatedArtifactOutput, error) {
req, out := c.AssociateCreatedArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.811767 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/migrationhub/api.go | Apache-2.0 | go |
UpdateArtifactWithContext is the same as UpdateArtifact with the addition of
the ability to pass a context and additional request options.
See UpdateArtifact for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. I... | func (c *SageMaker) UpdateArtifactWithContext(ctx aws.Context, input *UpdateArtifactInput, opts ...request.Option) (*UpdateArtifactOutput, error) {
req, out := c.UpdateArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | func (c *GreengrassV2) GetComponentVersionArtifactWithContext(ctx aws.Context, input *GetComponentVersionArtifactInput, opts ...request.Option) (*GetComponentVersionArtifactOutput, error) {
req, out := c.GetComponentVersionArtifactRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.777321 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/greengrassv2/api.go | Apache-2.0 | go |
PlainMessage returns the message string with placeholders replaced
* User and group placeholders will be replaced with the name of the user or group respectively.
* File placeholders will be replaced with the name of the file. | func (m *TalkRoomMessageData) PlainMessage() string {
tr := m.Message
for key, value := range m.MessageParameters {
tr = strings.ReplaceAll(tr, "{"+key+"}", value.Name)
}
return tr
} | func Format(m proto.Message) string {
return MarshalOptions{Multiline: true}.Format(m)
} | 0.541208 | 42wim/matterbridge | vendor/gomod.garykim.dev/nc-talk/ocs/message.go | docker/cli | vendor/google.golang.org/protobuf/encoding/protojson/encode.go | Apache-2.0 | go |
PlainMessage returns the message string with placeholders replaced
* User and group placeholders will be replaced with the name of the user or group respectively.
* File placeholders will be replaced with the name of the file. | func (m *TalkRoomMessageData) PlainMessage() string {
tr := m.Message
for key, value := range m.MessageParameters {
tr = strings.ReplaceAll(tr, "{"+key+"}", value.Name)
}
return tr
} | func (o MarshalOptions) Format(m proto.Message) string {
if m == nil || !m.ProtoReflect().IsValid() {
return "<nil>" // invalid syntax, but okay since this is for debugging
}
o.allowInvalidUTF8 = true
o.AllowPartial = true
o.EmitUnknown = true
b, _ := o.Marshal(m)
return string(b)
} | 0.535169 | 42wim/matterbridge | vendor/gomod.garykim.dev/nc-talk/ocs/message.go | appscode/osm | vendor/google.golang.org/protobuf/encoding/prototext/encode.go | Apache-2.0 | go |
PlainMessage returns the message string with placeholders replaced
* User and group placeholders will be replaced with the name of the user or group respectively.
* File placeholders will be replaced with the name of the file. | func (m *TalkRoomMessageData) PlainMessage() string {
tr := m.Message
for key, value := range m.MessageParameters {
tr = strings.ReplaceAll(tr, "{"+key+"}", value.Name)
}
return tr
} | func (o MarshalOptions) Format(m proto.Message) string {
if m == nil || !m.ProtoReflect().IsValid() {
return "<nil>" // invalid syntax, but okay since this is for debugging
}
o.AllowPartial = true
b, _ := o.Marshal(m)
return string(b)
} | 0.510101 | 42wim/matterbridge | vendor/gomod.garykim.dev/nc-talk/ocs/message.go | docker/cli | vendor/google.golang.org/protobuf/encoding/protojson/encode.go | Apache-2.0 | go |
PlainMessage returns the message string with placeholders replaced
* User and group placeholders will be replaced with the name of the user or group respectively.
* File placeholders will be replaced with the name of the file. | func (m *TalkRoomMessageData) PlainMessage() string {
tr := m.Message
for key, value := range m.MessageParameters {
tr = strings.ReplaceAll(tr, "{"+key+"}", value.Name)
}
return tr
} | func String(name string) Message {
return catmsg.String(name)
} | 0.509387 | 42wim/matterbridge | vendor/gomod.garykim.dev/nc-talk/ocs/message.go | Mirantis/cri-dockerd | vendor/golang.org/x/text/message/catalog/catalog.go | Apache-2.0 | go |
PlainMessage returns the message string with placeholders replaced
* User and group placeholders will be replaced with the name of the user or group respectively.
* File placeholders will be replaced with the name of the file. | func (m *TalkRoomMessageData) PlainMessage() string {
tr := m.Message
for key, value := range m.MessageParameters {
tr = strings.ReplaceAll(tr, "{"+key+"}", value.Name)
}
return tr
} | func (r *Response) FormattedMessage(format string, verbose bool) (string, error) {
statusData := r.getMap(verbose)
if format == "json" {
data, err := json.MarshalIndent(statusData, "", " ")
if err != nil {
return "", err
}
return string(data), nil
}
statusString := fmt.Sprintf(`%s %s{{if .statuses}}
... | 0.471593 | 42wim/matterbridge | vendor/gomod.garykim.dev/nc-talk/ocs/message.go | stripe/stripe-cli | pkg/status/status.go | Apache-2.0 | go |
DeleteUserProfileRequest generates a "aws/request.Request" representing the
client's request for the DeleteUserProfile operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the servic... | func (c *SageMaker) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
op := &request.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output = &DeleteUse... | func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
op := &request.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output = &DeleteUser... | 0.958175 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/opsworks/api.go | Apache-2.0 | go |
DeleteUserProfileRequest generates a "aws/request.Request" representing the
client's request for the DeleteUserProfile operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the servic... | func (c *SageMaker) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
op := &request.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output = &DeleteUse... | func (c *CodeStar) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
op := &request.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output = &DeleteUser... | 0.956142 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/codestar/api.go | Apache-2.0 | go |
DeleteUserProfileRequest generates a "aws/request.Request" representing the
client's request for the DeleteUserProfile operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the servic... | func (c *SageMaker) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
op := &request.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output = &DeleteUse... | func (c *SageMaker) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput) {
op := &request.Operation{
Name: opUpdateUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateUserProfileInput{}
}
output = &UpdateUse... | 0.857451 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
DeleteUserProfileRequest generates a "aws/request.Request" representing the
client's request for the DeleteUserProfile operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the servic... | func (c *SageMaker) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
op := &request.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output = &DeleteUse... | func (c *SageMaker) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) {
op := &request.Operation{
Name: opCreateUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateUserProfileInput{}
}
output = &CreateUse... | 0.850259 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
DeleteUserProfileRequest generates a "aws/request.Request" representing the
client's request for the DeleteUserProfile operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the servic... | func (c *SageMaker) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
op := &request.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output = &DeleteUse... | func (c *SageMaker) DescribeUserProfileRequest(input *DescribeUserProfileInput) (req *request.Request, output *DescribeUserProfileOutput) {
op := &request.Operation{
Name: opDescribeUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeUserProfileInput{}
}
output = ... | 0.830078 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
GetMilestoneRequest generates a "aws/request.Request" representing the
client's request for the GetMilestone operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the service.
the "ou... | func (c *WellArchitected) GetMilestoneRequest(input *GetMilestoneInput) (req *request.Request, output *GetMilestoneOutput) {
op := &request.Operation{
Name: opGetMilestone,
HTTPMethod: "GET",
HTTPPath: "/workloads/{WorkloadId}/milestones/{MilestoneNumber}",
}
if input == nil {
input = &GetMilestoneI... | func (c *WellArchitected) CreateMilestoneRequest(input *CreateMilestoneInput) (req *request.Request, output *CreateMilestoneOutput) {
op := &request.Operation{
Name: opCreateMilestone,
HTTPMethod: "POST",
HTTPPath: "/workloads/{WorkloadId}/milestones",
}
if input == nil {
input = &CreateMilestoneInp... | 0.824041 | aws/aws-sdk-go | service/wellarchitected/api.go | aws/aws-sdk-go | service/wellarchitected/api.go | Apache-2.0 | go |
GetMilestoneRequest generates a "aws/request.Request" representing the
client's request for the GetMilestone operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the service.
the "ou... | func (c *WellArchitected) GetMilestoneRequest(input *GetMilestoneInput) (req *request.Request, output *GetMilestoneOutput) {
op := &request.Operation{
Name: opGetMilestone,
HTTPMethod: "GET",
HTTPPath: "/workloads/{WorkloadId}/milestones/{MilestoneNumber}",
}
if input == nil {
input = &GetMilestoneI... | func (c *WellArchitected) GetMilestoneWithContext(ctx aws.Context, input *GetMilestoneInput, opts ...request.Option) (*GetMilestoneOutput, error) {
req, out := c.GetMilestoneRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
} | 0.790923 | aws/aws-sdk-go | service/wellarchitected/api.go | aws/aws-sdk-go | service/wellarchitected/api.go | Apache-2.0 | go |
GetMilestoneRequest generates a "aws/request.Request" representing the
client's request for the GetMilestone operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the service.
the "ou... | func (c *WellArchitected) GetMilestoneRequest(input *GetMilestoneInput) (req *request.Request, output *GetMilestoneOutput) {
op := &request.Operation{
Name: opGetMilestone,
HTTPMethod: "GET",
HTTPPath: "/workloads/{WorkloadId}/milestones/{MilestoneNumber}",
}
if input == nil {
input = &GetMilestoneI... | func (c *WellArchitected) GetMilestone(input *GetMilestoneInput) (*GetMilestoneOutput, error) {
req, out := c.GetMilestoneRequest(input)
return out, req.Send()
} | 0.762408 | aws/aws-sdk-go | service/wellarchitected/api.go | aws/aws-sdk-go | service/wellarchitected/api.go | Apache-2.0 | go |
GetMilestoneRequest generates a "aws/request.Request" representing the
client's request for the GetMilestone operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the service.
the "ou... | func (c *WellArchitected) GetMilestoneRequest(input *GetMilestoneInput) (req *request.Request, output *GetMilestoneOutput) {
op := &request.Operation{
Name: opGetMilestone,
HTTPMethod: "GET",
HTTPPath: "/workloads/{WorkloadId}/milestones/{MilestoneNumber}",
}
if input == nil {
input = &GetMilestoneI... | func (s *IssuesService) GetMilestone(ctx context.Context, owner string, repo string, number int) (*Milestone, *Response, error) {
u := fmt.Sprintf("repos/%v/%v/milestones/%d", owner, repo, number)
req, err := s.client.NewRequest("GET", u, nil)
if err != nil {
return nil, nil, err
}
milestone := new(Milestone)
... | 0.749432 | aws/aws-sdk-go | service/wellarchitected/api.go | tektoncd/cli | vendor/github.com/google/go-github/v55/github/issues_milestones.go | Apache-2.0 | go |
GetMilestoneRequest generates a "aws/request.Request" representing the
client's request for the GetMilestone operation. The "output" return
value will be populated with the request's response once the request completes
successfully.
Use "Send" method on the returned Request to send the API call to the service.
the "ou... | func (c *WellArchitected) GetMilestoneRequest(input *GetMilestoneInput) (req *request.Request, output *GetMilestoneOutput) {
op := &request.Operation{
Name: opGetMilestone,
HTTPMethod: "GET",
HTTPPath: "/workloads/{WorkloadId}/milestones/{MilestoneNumber}",
}
if input == nil {
input = &GetMilestoneI... | func (c *WellArchitected) ListMilestonesRequest(input *ListMilestonesInput) (req *request.Request, output *ListMilestonesOutput) {
op := &request.Operation{
Name: opListMilestones,
HTTPMethod: "POST",
HTTPPath: "/workloads/{WorkloadId}/milestonesSummaries",
Paginator: &request.Paginator{
InputTokens... | 0.720877 | aws/aws-sdk-go | service/wellarchitected/api.go | aws/aws-sdk-go | service/wellarchitected/api.go | Apache-2.0 | go |
UpdateDeviceFleet API operation for Amazon SageMaker Service.
Updates a fleet of devices.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See the AWS API reference guide for Amazon SageMaker Ser... | func (c *SageMaker) UpdateDeviceFleet(input *UpdateDeviceFleetInput) (*UpdateDeviceFleetOutput, error) {
req, out := c.UpdateDeviceFleetRequest(input)
return out, req.Send()
} | func (c *SageMaker) DeleteDeviceFleet(input *DeleteDeviceFleetInput) (*DeleteDeviceFleetOutput, error) {
req, out := c.DeleteDeviceFleetRequest(input)
return out, req.Send()
} | 0.890444 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
UpdateDeviceFleet API operation for Amazon SageMaker Service.
Updates a fleet of devices.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See the AWS API reference guide for Amazon SageMaker Ser... | func (c *SageMaker) UpdateDeviceFleet(input *UpdateDeviceFleetInput) (*UpdateDeviceFleetOutput, error) {
req, out := c.UpdateDeviceFleetRequest(input)
return out, req.Send()
} | func (c *AppStream) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) {
req, out := c.UpdateFleetRequest(input)
return out, req.Send()
} | 0.865039 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/appstream/api.go | Apache-2.0 | go |
UpdateDeviceFleet API operation for Amazon SageMaker Service.
Updates a fleet of devices.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See the AWS API reference guide for Amazon SageMaker Ser... | func (c *SageMaker) UpdateDeviceFleet(input *UpdateDeviceFleetInput) (*UpdateDeviceFleetOutput, error) {
req, out := c.UpdateDeviceFleetRequest(input)
return out, req.Send()
} | func (c *SageMaker) DescribeDeviceFleet(input *DescribeDeviceFleetInput) (*DescribeDeviceFleetOutput, error) {
req, out := c.DescribeDeviceFleetRequest(input)
return out, req.Send()
} | 0.856514 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/sagemaker/api.go | Apache-2.0 | go |
UpdateDeviceFleet API operation for Amazon SageMaker Service.
Updates a fleet of devices.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See the AWS API reference guide for Amazon SageMaker Ser... | func (c *SageMaker) UpdateDeviceFleet(input *UpdateDeviceFleetInput) (*UpdateDeviceFleetOutput, error) {
req, out := c.UpdateDeviceFleetRequest(input)
return out, req.Send()
} | func (c *IoTFleetWise) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) {
req, out := c.UpdateFleetRequest(input)
return out, req.Send()
} | 0.855855 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/iotfleetwise/api.go | Apache-2.0 | go |
UpdateDeviceFleet API operation for Amazon SageMaker Service.
Updates a fleet of devices.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.
See the AWS API reference guide for Amazon SageMaker Ser... | func (c *SageMaker) UpdateDeviceFleet(input *UpdateDeviceFleetInput) (*UpdateDeviceFleetOutput, error) {
req, out := c.UpdateDeviceFleetRequest(input)
return out, req.Send()
} | func (c *CodeBuild) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) {
req, out := c.UpdateFleetRequest(input)
return out, req.Send()
} | 0.85206 | aws/aws-sdk-go | service/sagemaker/api.go | aws/aws-sdk-go | service/codebuild/api.go | Apache-2.0 | go |
CMPB performs "Compare Two Operands".
Mnemonic : CMP
Supported forms : (6 forms)
* CMPB imm8, al
* CMPB imm8, r8
* CMPB r8, r8
* CMPB m8, r8
* CMPB imm8, m8
* CMPB r8, m8 | func (self *Program) CMPB(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPB", 2, Operands { v0, v1 })
// CMPB imm8, al
if isImm8(v0) && v1 == AL {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.emit(0x3c)
m.imm1(toImmAny(v... | func (self *Program) CMPL(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPL", 2, Operands { v0, v1 })
// CMPL imm32, eax
if isImm32(v0) && v1 == EAX {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.emit(0x3d)
m.imm4(toImmA... | 0.9396 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
CMPB performs "Compare Two Operands".
Mnemonic : CMP
Supported forms : (6 forms)
* CMPB imm8, al
* CMPB imm8, r8
* CMPB r8, r8
* CMPB m8, r8
* CMPB imm8, m8
* CMPB r8, m8 | func (self *Program) CMPB(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPB", 2, Operands { v0, v1 })
// CMPB imm8, al
if isImm8(v0) && v1 == AL {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.emit(0x3c)
m.imm1(toImmAny(v... | func (self *Program) CMPQ(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPQ", 2, Operands { v0, v1 })
// CMPQ imm32, rax
if isImm32(v0) && v1 == RAX {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.emit(0x48)
m.emit(0x3d)
... | 0.913872 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
CMPB performs "Compare Two Operands".
Mnemonic : CMP
Supported forms : (6 forms)
* CMPB imm8, al
* CMPB imm8, r8
* CMPB r8, r8
* CMPB m8, r8
* CMPB imm8, m8
* CMPB r8, m8 | func (self *Program) CMPB(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPB", 2, Operands { v0, v1 })
// CMPB imm8, al
if isImm8(v0) && v1 == AL {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.emit(0x3c)
m.imm1(toImmAny(v... | func (self *Program) CMPXCHG8B(v0 interface{}) *Instruction {
p := self.alloc("CMPXCHG8B", 1, Operands { v0 })
// CMPXCHG8B m64
if isM64(v0) {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.rexo(0, addr(v[0]), false)
m.emit(0x0f)
... | 0.815419 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
CMPB performs "Compare Two Operands".
Mnemonic : CMP
Supported forms : (6 forms)
* CMPB imm8, al
* CMPB imm8, r8
* CMPB r8, r8
* CMPB m8, r8
* CMPB imm8, m8
* CMPB r8, m8 | func (self *Program) CMPB(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPB", 2, Operands { v0, v1 })
// CMPB imm8, al
if isImm8(v0) && v1 == AL {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.emit(0x3c)
m.imm1(toImmAny(v... | func (self *Program) CMPSS(v0 interface{}, v1 interface{}, v2 interface{}) *Instruction {
p := self.alloc("CMPSS", 3, Operands { v0, v1, v2 })
// CMPSS imm8, xmm, xmm
if isImm8(v0) && isXMM(v1) && isXMM(v2) {
self.require(ISA_SSE)
p.domain = DomainMMXSSE
p.add(0, func(m *_Encoding, v... | 0.807839 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
CMPB performs "Compare Two Operands".
Mnemonic : CMP
Supported forms : (6 forms)
* CMPB imm8, al
* CMPB imm8, r8
* CMPB r8, r8
* CMPB m8, r8
* CMPB imm8, m8
* CMPB r8, m8 | func (self *Program) CMPB(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPB", 2, Operands { v0, v1 })
// CMPB imm8, al
if isImm8(v0) && v1 == AL {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.emit(0x3c)
m.imm1(toImmAny(v... | func (self *Program) CMPXCHGB(v0 interface{}, v1 interface{}) *Instruction {
p := self.alloc("CMPXCHGB", 2, Operands { v0, v1 })
// CMPXCHGB r8, r8
if isReg8(v0) && isReg8(v1) {
p.domain = DomainGeneric
p.add(0, func(m *_Encoding, v []interface{}) {
m.rexo(hcode(v[0]), v[1], isRe... | 0.7917 | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Telefonica/prometheus-kafka-adapter | vendor/github.com/cloudwego/iasm/x86_64/instructions.go | Apache-2.0 | go |
extractDatabaseFromURI is a helper function to retrieve information about
the database from the passed in URI. It accepts as an argument the currently
parsed URI and returns the remainder of the uri, the database it found,
and any error it encounters while parsing. | func extractDatabaseFromURI(uri string) (extractedDatabase, error) {
if len(uri) == 0 {
return extractedDatabase{}, nil
}
if uri[0] != '/' {
return extractedDatabase{}, errors.New("must have a / separator between hosts and path")
}
uri = uri[1:]
if len(uri) == 0 {
return extractedDatabase{}, nil
}
data... | func compositedUriInfo(uri string, uriPrefix string) (bool, UriInfo) {
if !uriHasPrefix(uri, uriPrefix) {
return false, UriInfo{}
}
//locate user password
rest := uri[len(uriPrefix):]
seps := strings.Split(rest, "@")
if len(seps) != 2 || len(seps[0]) == 0 || len(seps[1]) == 0 {
return false, UriInfo{}
}
sep... | 0.584786 | umputun/tg-spam | vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go | matrixorigin/matrixone | pkg/cdc/util.go | Apache-2.0 | go |
extractDatabaseFromURI is a helper function to retrieve information about
the database from the passed in URI. It accepts as an argument the currently
parsed URI and returns the remainder of the uri, the database it found,
and any error it encounters while parsing. | func extractDatabaseFromURI(uri string) (extractedDatabase, error) {
if len(uri) == 0 {
return extractedDatabase{}, nil
}
if uri[0] != '/' {
return extractedDatabase{}, errors.New("must have a / separator between hosts and path")
}
uri = uri[1:]
if len(uri) == 0 {
return extractedDatabase{}, nil
}
data... | func ParseUri(uriStr string) (uri sip.Uri, err error) {
if strings.TrimSpace(uriStr) == "*" {
// Wildcard '*' URI used in the Contact headers of REGISTERs when unregistering.
return sip.WildcardUri{}, nil
}
colonIdx := strings.Index(uriStr, ":")
if colonIdx == -1 {
err = fmt.Errorf("no ':' in URI %s", uriStr... | 0.579132 | umputun/tg-spam | vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go | ghettovoice/gosip | sip/parser/common.go | BSD-2-Clause | go |
extractDatabaseFromURI is a helper function to retrieve information about
the database from the passed in URI. It accepts as an argument the currently
parsed URI and returns the remainder of the uri, the database it found,
and any error it encounters while parsing. | func extractDatabaseFromURI(uri string) (extractedDatabase, error) {
if len(uri) == 0 {
return extractedDatabase{}, nil
}
if uri[0] != '/' {
return extractedDatabase{}, errors.New("must have a / separator between hosts and path")
}
uri = uri[1:]
if len(uri) == 0 {
return extractedDatabase{}, nil
}
data... | func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintptr) uintptr {
var p uintptr = uintptr(0)
var i int32
if zDatabase != 0 {
for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ {
if Xsqlite3StrICmp(tls, zDatabase, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(... | 0.550974 | umputun/tg-spam | vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go | 42wim/matterbridge | vendor/modernc.org/sqlite/lib/sqlite_openbsd_arm64.go | Apache-2.0 | go |
extractDatabaseFromURI is a helper function to retrieve information about
the database from the passed in URI. It accepts as an argument the currently
parsed URI and returns the remainder of the uri, the database it found,
and any error it encounters while parsing. | func extractDatabaseFromURI(uri string) (extractedDatabase, error) {
if len(uri) == 0 {
return extractedDatabase{}, nil
}
if uri[0] != '/' {
return extractedDatabase{}, errors.New("must have a / separator between hosts and path")
}
uri = uri[1:]
if len(uri) == 0 {
return extractedDatabase{}, nil
}
data... | func (c *Athena) GetDatabase(input *GetDatabaseInput) (*GetDatabaseOutput, error) {
req, out := c.GetDatabaseRequest(input)
return out, req.Send()
} | 0.535568 | umputun/tg-spam | vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go | aws/aws-sdk-go | service/athena/api.go | Apache-2.0 | go |
extractDatabaseFromURI is a helper function to retrieve information about
the database from the passed in URI. It accepts as an argument the currently
parsed URI and returns the remainder of the uri, the database it found,
and any error it encounters while parsing. | func extractDatabaseFromURI(uri string) (extractedDatabase, error) {
if len(uri) == 0 {
return extractedDatabase{}, nil
}
if uri[0] != '/' {
return extractedDatabase{}, errors.New("must have a / separator between hosts and path")
}
uri = uri[1:]
if len(uri) == 0 {
return extractedDatabase{}, nil
}
data... | func (c *SsmSap) GetDatabase(input *GetDatabaseInput) (*GetDatabaseOutput, error) {
req, out := c.GetDatabaseRequest(input)
return out, req.Send()
} | 0.532379 | umputun/tg-spam | vendor/go.mongodb.org/mongo-driver/x/mongo/driver/connstring/connstring.go | aws/aws-sdk-go | service/ssmsap/api.go | Apache-2.0 | go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.