mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +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
|
@ -19,7 +19,7 @@ func (f *Network) GetInterfaces(ctx context.Context, params struct{}) (GetInterf
|
||||||
|
|
||||||
type CreateInterfaceParameters struct {
|
type CreateInterfaceParameters struct {
|
||||||
Name string
|
Name string
|
||||||
Interface definitions.Interface
|
definitions.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Network) CreateInterface(ctx context.Context, params CreateInterfaceParameters) (struct{}, error) {
|
func (f *Network) CreateInterface(ctx context.Context, params CreateInterfaceParameters) (struct{}, error) {
|
||||||
|
@ -37,7 +37,7 @@ func (f *Network) CreateInterface(ctx context.Context, params CreateInterfacePar
|
||||||
|
|
||||||
type UpdateInterfaceParameters struct {
|
type UpdateInterfaceParameters struct {
|
||||||
Name string
|
Name string
|
||||||
Interface definitions.Interface
|
definitions.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Network) UpdateInterface(ctx context.Context, params UpdateInterfaceParameters) (struct{}, error) {
|
func (f *Network) UpdateInterface(ctx context.Context, params UpdateInterfaceParameters) (struct{}, error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue