mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Create Interface API. interface Fields top level
This commit is contained in:
parent
5a7bd8c91e
commit
e3a488ccf5
1 changed files with 4 additions and 4 deletions
|
@ -18,8 +18,8 @@ func (f *Network) GetInterfaces(ctx context.Context, params struct{}) (GetInterf
|
|||
}
|
||||
|
||||
type CreateInterfaceParameters struct {
|
||||
Name string
|
||||
Interface definitions.Interface
|
||||
Name string
|
||||
definitions.Interface
|
||||
}
|
||||
|
||||
func (f *Network) CreateInterface(ctx context.Context, params CreateInterfaceParameters) (struct{}, error) {
|
||||
|
@ -36,8 +36,8 @@ func (f *Network) CreateInterface(ctx context.Context, params CreateInterfacePar
|
|||
}
|
||||
|
||||
type UpdateInterfaceParameters struct {
|
||||
Name string
|
||||
Interface definitions.Interface
|
||||
Name string
|
||||
definitions.Interface
|
||||
}
|
||||
|
||||
func (f *Network) UpdateInterface(ctx context.Context, params UpdateInterfaceParameters) (struct{}, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue