Documentation
¶
Overview ¶
Copyright 2026 Flant JSC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package socket serves the API over a Unix socket. The socket lives in the container's own filesystem with mode 0600, so only this process's user reaches it — this is the transport for endpoints carrying package values, rendered manifests or hook snapshots.
Example access: curl --unix-socket /path/to/socket http://localhost/endpoint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves the given handler on the Unix socket at its path.
func NewServer ¶
NewServer creates a server for the given socket path. Nothing is bound until Start.
func (*Server) Shutdown ¶
Shutdown stops serving and unlinks the socket file. Safe to call when Start was never reached, which happens when the other transport failed to bind.