Skip to content

Commit

Permalink
tet
Browse files Browse the repository at this point in the history
  • Loading branch information
muriloAvlis committed Mar 5, 2024
1 parent b957c5d commit 178d3aa
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 330 deletions.
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/gercom-ufpa/iqos-xapp
go 1.22.0

require (
github.com/gogo/protobuf v1.3.2
github.com/onosproject/onos-api/go v0.10.31
github.com/onosproject/onos-lib-go v0.10.24
github.com/onosproject/onos-ric-sdk-go v0.8.12
Expand All @@ -11,14 +12,15 @@ require (
require (
github.com/Shopify/sarama v1.31.1 // indirect
github.com/atomix/atomix/api v0.8.0 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/eapache/go-resiliency v1.2.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
github.com/eapache/queue v1.1.0 // indirect
github.com/ericchiang/oidc v0.0.0-20160908143337-11f62933e071 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.6.0 // indirect
Expand Down
5 changes: 5 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ github.com/atomix/atomix/api v0.8.0 h1:KJVf3xY/8+Dd+CsAp7sUMJGsWW3DtRoIWmRIMCoWH
github.com/atomix/atomix/api v0.8.0/go.mod h1:Fz8zXQH6n28U0NTu5xctKhkNrN5RsWgX56lrMhqXlPg=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
Expand Down Expand Up @@ -105,6 +107,8 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
Expand Down Expand Up @@ -512,6 +516,7 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
14 changes: 7 additions & 7 deletions pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"

appConfig "github.com/gercom-ufpa/iqos-xapp/pkg/config"
"github.com/gercom-ufpa/iqos-xapp/pkg/nib/uenib"
"github.com/gercom-ufpa/iqos-xapp/pkg/southbound/e2"
ueclient "github.com/gercom-ufpa/iqos-xapp/pkg/ueclient"
"github.com/onosproject/onos-lib-go/pkg/logging"
)

Expand All @@ -22,13 +22,13 @@ func NewManager(config Config) *Manager {

// Creates App Clients
// UE-NIB Client
ueClientConfig := ueclient.Config{
uenibConfig := uenib.Config{
UeNibEndpoint: config.UeNibEndpoint,
UeNibPort: config.UeNibPort,
CertPath: config.CertPath,
KeyPath: config.KeyPath,
}
ueClient, err := ueclient.NewClient(context.Background(), ueClientConfig)
uenibClient, err := uenib.NewClient(context.Background(), uenibConfig)
if err != nil {
log.Warn(err)
}
Expand Down Expand Up @@ -59,10 +59,10 @@ func NewManager(config Config) *Manager {

// App Manager
manager := &Manager{
appConfig: appCfg,
config: config,
E2Manager: e2Manager,
UeClient: ueClient,
appConfig: appCfg,
config: config,
E2Manager: e2Manager,
UenibClient: uenibClient,
}

return manager
Expand Down
10 changes: 5 additions & 5 deletions pkg/manager/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package manager

import (
appConfig "github.com/gercom-ufpa/iqos-xapp/pkg/config"
"github.com/gercom-ufpa/iqos-xapp/pkg/nib/uenib"
"github.com/gercom-ufpa/iqos-xapp/pkg/southbound/e2"
ueclient "github.com/gercom-ufpa/iqos-xapp/pkg/ueclient"
)

// manager configuration
Expand All @@ -27,8 +27,8 @@ type Config struct {

// Manager is an abstract struct for manager
type Manager struct {
appConfig appConfig.Config
config Config
E2Manager e2.Manager
UeClient ueclient.Client
appConfig appConfig.Config
config Config
E2Manager e2.Manager
UenibClient uenib.Client
}
17 changes: 0 additions & 17 deletions pkg/ueclient/options.go

This file was deleted.

Loading

0 comments on commit 178d3aa

Please sign in to comment.