Commit graph

120 commits

Author SHA1 Message Date
836b8e717f
Slash needed? 2022-02-14 15:41:38 +01:00
d9a9af4eae
Omit ALL optional fields.. 2022-02-14 15:39:18 +01:00
63c2a86871
Omit empty fields 2022-02-14 15:35:08 +01:00
b3138a42e5
Fix interfaces path for virtualization and DCIM 2022-02-14 14:35:21 +01:00
Kalle Carlbark
551409f431
Fix virtualization and DCIM interfaces 2022-02-14 14:12:46 +01:00
Kalle Carlbark
232b80583a
Occupied is a bool, not string 2022-02-14 13:33:39 +01:00
Kalle Carlbark
c8c7c4edfc
Recommig f5bf955b0e 2022-02-14 13:29:23 +01:00
Kalle Carlbark
170fde8a31
Add ability to remove interfaces 2022-02-14 12:19:02 +01:00
Kalle Carlbark
2bd3658b60
Update NewInterface
To match Netbox version
2022-02-14 11:21:57 +01:00
Kalle Carlbark
236a9bb23e
When creating objects return the created object
TODO: Do this for all objects
2022-02-14 11:09:50 +01:00
Kalle Carlbark
f5bf955b0e
Make LocalContextData an interface
This so that we can embed JSON in there.
2022-02-09 15:52:27 +01:00
Kalle Carlbark
ffcda95b15
Remove debug prints 2022-02-09 10:43:59 +01:00
Kalle Carlbark
14c9b748c6
Forgot to add the new services to the client 2022-02-09 10:42:44 +01:00
Kalle Carlbark
9d226de485
remove debug 2022-02-09 10:37:28 +01:00
Kalle Carlbark
91f953156e
slash issue? 2022-02-09 10:36:00 +01:00
Kalle Carlbark
517376dd91
DEBUGGGG 2022-02-09 10:15:31 +01:00
Kalle Carlbark
4a5e3740df
debugf 2022-02-09 10:10:49 +01:00
Kalle Carlbark
4f01c4eb9a
Add debugf 2022-02-09 10:04:17 +01:00
Kalle Carlbark
d98de3282c
Update netbox dto's 2022-02-09 09:59:14 +01:00
Kalle Carlbark
d107d2f742
Add new abilities
* List cluster types
* List Platforms
2022-02-09 08:16:20 +01:00
Kalle Carlbark
e47de1a498
Omit empty fields on NewVirtualMachine 2022-02-08 14:56:51 +01:00
Kalle Carlbark
e6298e598a
Add ability to remove virtual-machine 2022-02-08 08:23:25 +01:00
Kalle Carlbark
cdbabd262a
Woops, edited the wrong dto 2022-02-08 07:48:07 +01:00
Kalle Carlbark
8a12a2668e
Add ability to list virtual machines 2022-02-07 22:01:45 +01:00
Kalle Carlbark
2bca52c094
Migrate to use secrets store plugin
Move secrets related code to plugin_secrets_store
While here, mute gosecs false positive for G101 on
secretsPath
2022-01-31 16:38:37 +01:00
Kalle Carlbark
92eacc150c
Refactoring and tests
Break out tenant to its own type
Rearrange structs to better align with memory
2021-12-19 21:24:29 +01:00
Kalle Carlbark
af589e9fc0
Move integration tests 2021-11-29 11:38:01 +01:00
Kalle Carlbark
ce9f27913f
Don't be dependent on static custom_fields
Make custom_fields a interface{}
2021-11-29 10:20:00 +01:00
6a496accb3 Merge pull request 'migrate-to-new-standard' (#1) from migrate-to-new-standard into master
Reviewed-on: #1
2021-11-29 08:03:17 +00:00
Kalle Carlbark
76df693884
Do not clear from memory for now 2021-11-28 00:04:52 +01:00
Kalle Carlbark
a8316057ce
Add forgotten & 2021-11-28 00:00:18 +01:00
Kalle Carlbark
744837b9c7
Fix URL in new request in special FetchSessionKey 2021-11-27 23:57:14 +01:00
Kalle Carlbark
72862609c5
Use built in function for special FetchSessionKey 2021-11-27 23:52:51 +01:00
Kalle Carlbark
36ba50352a
I should add tests.. :) 2021-11-27 23:46:52 +01:00
Kalle Carlbark
03799c289d
Fix wrong path for secret get-session-key 2021-11-27 23:31:44 +01:00
Kalle Carlbark
47dc036112
Fix FetchSessionKey 2021-11-27 13:24:15 +01:00
Kalle Carlbark
b054d32835
Add ability to set custom token prefix 2021-11-27 13:10:56 +01:00
Kalle Carlbark
e23a54368e
Add tls1.2 ciphers. 2021-11-26 13:39:29 +01:00
Kalle Carlbark
eb8f761cbc
Revert categorized services. 2021-11-26 13:34:15 +01:00
Kalle Carlbark
2be4afbbfd
Bump go version and fix relocation. 2021-11-26 13:24:09 +01:00
Kalle Carlbark
c578285a05
Initialize service structs
* DCIM
* Tenancy
* IPAM
* Virtualization
* Secret
2021-11-26 13:21:19 +01:00
Kalle Carlbark
375dc521dc
do not include pre-commit in repo. 2021-11-26 11:16:54 +01:00
Kalle Carlbark
7fb583bd4e
use correct path 2021-11-26 11:15:19 +01:00
Kalle Carlbark
89a5d96e64
Migrate to new client style 2021-11-26 11:09:27 +01:00
3bec026387
features
o Sites
o Sitegroups
2021-06-01 22:53:19 +02:00
3d05f2b930
Add ability to list device roles 2021-05-26 11:03:05 +02:00
3f5f9eff7d
Add ability to list device types 2021-05-26 10:58:32 +02:00
8383ef9bb9
Add Device to its own type 2021-05-24 15:10:20 +02:00
3eb210c9e5
s/string/interface{} 2021-04-13 11:31:51 +02:00
bab46f5a52
Remove duplicate definition 2021-04-13 11:28:35 +02:00