Categorygithub.com/jolheiser/tailscale-gitops-pusher
modulepackage
0.0.0-20250211170701-944858746410
Repository: https://github.com/jolheiser/tailscale-gitops-pusher.git
Documentation: pkg.go.dev

# README

Tailscale GitOps Pusher

This is just extracted code from https://github.com/tailscale/tailscale/tree/26de518413277e0869b815c373f694f6b5d18562/cmd/gitops-pusher to avoid pulling in the entirety of tailscale.com for a small CLI.

All modifications should be linked to a permalink for their source.

I don't claim any of this code as being original, it is simply copied for the above reasons.

License

BSD-3, same as the original

# Functions

LoadCache loads the cache from a given file.
Shuck removes the first and last character of a string, analogous to shucking off the husk of an ear of corn.

# Structs

ACLGitopsTestError is redefined here so we can add a custom .Error() response.
ACLTestError is ErrResponse but with an extra field to account for ACLTestFailureSummary.
ACLTestFailureSummary specifies a user for which ACL tests failed and the related user-friendly error messages.
Cache contains cached information about the last time this tool was run.
ErrResponse is the HTTP error returned by the Tailscale server.