Documentation ¶
Index ¶
- Variables
- func NewConnection(address string) (*grpc.ClientConn, error)
- func RegisterCommitServiceServer(s *grpc.Server, srv CommitServiceServer)
- type Clientset
- type CommitHydratedManifestsRequest
- func (*CommitHydratedManifestsRequest) Descriptor() ([]byte, []int)
- func (m *CommitHydratedManifestsRequest) GetCommitMessage() string
- func (m *CommitHydratedManifestsRequest) GetDrySha() string
- func (m *CommitHydratedManifestsRequest) GetPaths() []*PathDetails
- func (m *CommitHydratedManifestsRequest) GetRepo() *v1alpha1.Repository
- func (m *CommitHydratedManifestsRequest) GetSyncBranch() string
- func (m *CommitHydratedManifestsRequest) GetTargetBranch() string
- func (m *CommitHydratedManifestsRequest) Marshal() (dAtA []byte, err error)
- func (m *CommitHydratedManifestsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CommitHydratedManifestsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CommitHydratedManifestsRequest) ProtoMessage()
- func (m *CommitHydratedManifestsRequest) Reset()
- func (m *CommitHydratedManifestsRequest) Size() (n int)
- func (m *CommitHydratedManifestsRequest) String() string
- func (m *CommitHydratedManifestsRequest) Unmarshal(dAtA []byte) error
- func (m *CommitHydratedManifestsRequest) XXX_DiscardUnknown()
- func (m *CommitHydratedManifestsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommitHydratedManifestsRequest) XXX_Merge(src proto.Message)
- func (m *CommitHydratedManifestsRequest) XXX_Size() int
- func (m *CommitHydratedManifestsRequest) XXX_Unmarshal(b []byte) error
- type CommitHydratedManifestsResponse
- func (*CommitHydratedManifestsResponse) Descriptor() ([]byte, []int)
- func (m *CommitHydratedManifestsResponse) GetHydratedSha() string
- func (m *CommitHydratedManifestsResponse) Marshal() (dAtA []byte, err error)
- func (m *CommitHydratedManifestsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CommitHydratedManifestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CommitHydratedManifestsResponse) ProtoMessage()
- func (m *CommitHydratedManifestsResponse) Reset()
- func (m *CommitHydratedManifestsResponse) Size() (n int)
- func (m *CommitHydratedManifestsResponse) String() string
- func (m *CommitHydratedManifestsResponse) Unmarshal(dAtA []byte) error
- func (m *CommitHydratedManifestsResponse) XXX_DiscardUnknown()
- func (m *CommitHydratedManifestsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommitHydratedManifestsResponse) XXX_Merge(src proto.Message)
- func (m *CommitHydratedManifestsResponse) XXX_Size() int
- func (m *CommitHydratedManifestsResponse) XXX_Unmarshal(b []byte) error
- type CommitServiceClient
- type CommitServiceServer
- type HydratedManifestDetails
- func (*HydratedManifestDetails) Descriptor() ([]byte, []int)
- func (m *HydratedManifestDetails) GetManifestJSON() string
- func (m *HydratedManifestDetails) Marshal() (dAtA []byte, err error)
- func (m *HydratedManifestDetails) MarshalTo(dAtA []byte) (int, error)
- func (m *HydratedManifestDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HydratedManifestDetails) ProtoMessage()
- func (m *HydratedManifestDetails) Reset()
- func (m *HydratedManifestDetails) Size() (n int)
- func (m *HydratedManifestDetails) String() string
- func (m *HydratedManifestDetails) Unmarshal(dAtA []byte) error
- func (m *HydratedManifestDetails) XXX_DiscardUnknown()
- func (m *HydratedManifestDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HydratedManifestDetails) XXX_Merge(src proto.Message)
- func (m *HydratedManifestDetails) XXX_Size() int
- func (m *HydratedManifestDetails) XXX_Unmarshal(b []byte) error
- type PathDetails
- func (*PathDetails) Descriptor() ([]byte, []int)
- func (m *PathDetails) GetCommands() []string
- func (m *PathDetails) GetManifests() []*HydratedManifestDetails
- func (m *PathDetails) GetPath() string
- func (m *PathDetails) Marshal() (dAtA []byte, err error)
- func (m *PathDetails) MarshalTo(dAtA []byte) (int, error)
- func (m *PathDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PathDetails) ProtoMessage()
- func (m *PathDetails) Reset()
- func (m *PathDetails) Size() (n int)
- func (m *PathDetails) String() string
- func (m *PathDetails) Unmarshal(dAtA []byte) error
- func (m *PathDetails) XXX_DiscardUnknown()
- func (m *PathDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PathDetails) XXX_Merge(src proto.Message)
- func (m *PathDetails) XXX_Size() int
- func (m *PathDetails) XXX_Unmarshal(b []byte) error
- type UnimplementedCommitServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewConnection ¶
func NewConnection(address string) (*grpc.ClientConn, error)
NewConnection creates new connection to commit server
func RegisterCommitServiceServer ¶
func RegisterCommitServiceServer(s *grpc.Server, srv CommitServiceServer)
Types ¶
type Clientset ¶
type Clientset interface {
NewCommitServerClient() (io.Closer, CommitServiceClient, error)
}
Clientset represents commit server api clients
func NewCommitServerClientset ¶
NewCommitServerClientset creates new instance of commit server Clientset
type CommitHydratedManifestsRequest ¶
type CommitHydratedManifestsRequest struct { // Repo contains repository information including, at minimum, the URL of the repository. Generally it will contain // repo credentials. Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // SyncBranch is the branch Argo CD syncs from, i.e. the hydrated branch. SyncBranch string `protobuf:"bytes,2,opt,name=syncBranch,proto3" json:"syncBranch,omitempty"` // TargetBranch is the branch Argo CD is committing to, i.e. the branch that will be updated. TargetBranch string `protobuf:"bytes,3,opt,name=targetBranch,proto3" json:"targetBranch,omitempty"` // DrySha is the commit SHA from the dry branch, i.e. pre-rendered manifest branch. DrySha string `protobuf:"bytes,4,opt,name=drySha,proto3" json:"drySha,omitempty"` // CommitMessage is the commit message to use when committing changes. CommitMessage string `protobuf:"bytes,5,opt,name=commitMessage,proto3" json:"commitMessage,omitempty"` // Paths contains the paths to write hydrated manifests to, along with the manifests and commands to execute. Paths []*PathDetails `protobuf:"bytes,6,rep,name=paths,proto3" json:"paths,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CommitHydratedManifestsRequest is the request to commit hydrated manifests to a repository.
func (*CommitHydratedManifestsRequest) Descriptor ¶
func (*CommitHydratedManifestsRequest) Descriptor() ([]byte, []int)
func (*CommitHydratedManifestsRequest) GetCommitMessage ¶
func (m *CommitHydratedManifestsRequest) GetCommitMessage() string
func (*CommitHydratedManifestsRequest) GetDrySha ¶
func (m *CommitHydratedManifestsRequest) GetDrySha() string
func (*CommitHydratedManifestsRequest) GetPaths ¶
func (m *CommitHydratedManifestsRequest) GetPaths() []*PathDetails
func (*CommitHydratedManifestsRequest) GetRepo ¶
func (m *CommitHydratedManifestsRequest) GetRepo() *v1alpha1.Repository
func (*CommitHydratedManifestsRequest) GetSyncBranch ¶
func (m *CommitHydratedManifestsRequest) GetSyncBranch() string
func (*CommitHydratedManifestsRequest) GetTargetBranch ¶
func (m *CommitHydratedManifestsRequest) GetTargetBranch() string
func (*CommitHydratedManifestsRequest) Marshal ¶
func (m *CommitHydratedManifestsRequest) Marshal() (dAtA []byte, err error)
func (*CommitHydratedManifestsRequest) MarshalTo ¶
func (m *CommitHydratedManifestsRequest) MarshalTo(dAtA []byte) (int, error)
func (*CommitHydratedManifestsRequest) MarshalToSizedBuffer ¶
func (m *CommitHydratedManifestsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CommitHydratedManifestsRequest) ProtoMessage ¶
func (*CommitHydratedManifestsRequest) ProtoMessage()
func (*CommitHydratedManifestsRequest) Reset ¶
func (m *CommitHydratedManifestsRequest) Reset()
func (*CommitHydratedManifestsRequest) Size ¶
func (m *CommitHydratedManifestsRequest) Size() (n int)
func (*CommitHydratedManifestsRequest) String ¶
func (m *CommitHydratedManifestsRequest) String() string
func (*CommitHydratedManifestsRequest) Unmarshal ¶
func (m *CommitHydratedManifestsRequest) Unmarshal(dAtA []byte) error
func (*CommitHydratedManifestsRequest) XXX_DiscardUnknown ¶
func (m *CommitHydratedManifestsRequest) XXX_DiscardUnknown()
func (*CommitHydratedManifestsRequest) XXX_Marshal ¶
func (m *CommitHydratedManifestsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommitHydratedManifestsRequest) XXX_Merge ¶
func (m *CommitHydratedManifestsRequest) XXX_Merge(src proto.Message)
func (*CommitHydratedManifestsRequest) XXX_Size ¶
func (m *CommitHydratedManifestsRequest) XXX_Size() int
func (*CommitHydratedManifestsRequest) XXX_Unmarshal ¶
func (m *CommitHydratedManifestsRequest) XXX_Unmarshal(b []byte) error
type CommitHydratedManifestsResponse ¶
type CommitHydratedManifestsResponse struct { // HydratedSha is the commit SHA of the hydrated manifests commit. HydratedSha string `protobuf:"bytes,1,opt,name=hydratedSha,proto3" json:"hydratedSha,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ManifestsResponse is the response to the ManifestsRequest.
func (*CommitHydratedManifestsResponse) Descriptor ¶
func (*CommitHydratedManifestsResponse) Descriptor() ([]byte, []int)
func (*CommitHydratedManifestsResponse) GetHydratedSha ¶
func (m *CommitHydratedManifestsResponse) GetHydratedSha() string
func (*CommitHydratedManifestsResponse) Marshal ¶
func (m *CommitHydratedManifestsResponse) Marshal() (dAtA []byte, err error)
func (*CommitHydratedManifestsResponse) MarshalTo ¶
func (m *CommitHydratedManifestsResponse) MarshalTo(dAtA []byte) (int, error)
func (*CommitHydratedManifestsResponse) MarshalToSizedBuffer ¶
func (m *CommitHydratedManifestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CommitHydratedManifestsResponse) ProtoMessage ¶
func (*CommitHydratedManifestsResponse) ProtoMessage()
func (*CommitHydratedManifestsResponse) Reset ¶
func (m *CommitHydratedManifestsResponse) Reset()
func (*CommitHydratedManifestsResponse) Size ¶
func (m *CommitHydratedManifestsResponse) Size() (n int)
func (*CommitHydratedManifestsResponse) String ¶
func (m *CommitHydratedManifestsResponse) String() string
func (*CommitHydratedManifestsResponse) Unmarshal ¶
func (m *CommitHydratedManifestsResponse) Unmarshal(dAtA []byte) error
func (*CommitHydratedManifestsResponse) XXX_DiscardUnknown ¶
func (m *CommitHydratedManifestsResponse) XXX_DiscardUnknown()
func (*CommitHydratedManifestsResponse) XXX_Marshal ¶
func (m *CommitHydratedManifestsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommitHydratedManifestsResponse) XXX_Merge ¶
func (m *CommitHydratedManifestsResponse) XXX_Merge(src proto.Message)
func (*CommitHydratedManifestsResponse) XXX_Size ¶
func (m *CommitHydratedManifestsResponse) XXX_Size() int
func (*CommitHydratedManifestsResponse) XXX_Unmarshal ¶
func (m *CommitHydratedManifestsResponse) XXX_Unmarshal(b []byte) error
type CommitServiceClient ¶
type CommitServiceClient interface { // Commit commits hydrated manifests to a repository. CommitHydratedManifests(ctx context.Context, in *CommitHydratedManifestsRequest, opts ...grpc.CallOption) (*CommitHydratedManifestsResponse, error) }
CommitServiceClient is the client API for CommitService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommitServiceClient ¶
func NewCommitServiceClient(cc *grpc.ClientConn) CommitServiceClient
type CommitServiceServer ¶
type CommitServiceServer interface { // Commit commits hydrated manifests to a repository. CommitHydratedManifests(context.Context, *CommitHydratedManifestsRequest) (*CommitHydratedManifestsResponse, error) }
CommitServiceServer is the server API for CommitService service.
type HydratedManifestDetails ¶
type HydratedManifestDetails struct { // ManifestJSON is the hydrated manifest as JSON. ManifestJSON string `protobuf:"bytes,1,opt,name=manifestJSON,proto3" json:"manifestJSON,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ManifestDetails contains the hydrated manifests.
func (*HydratedManifestDetails) Descriptor ¶
func (*HydratedManifestDetails) Descriptor() ([]byte, []int)
func (*HydratedManifestDetails) GetManifestJSON ¶
func (m *HydratedManifestDetails) GetManifestJSON() string
func (*HydratedManifestDetails) Marshal ¶
func (m *HydratedManifestDetails) Marshal() (dAtA []byte, err error)
func (*HydratedManifestDetails) MarshalTo ¶
func (m *HydratedManifestDetails) MarshalTo(dAtA []byte) (int, error)
func (*HydratedManifestDetails) MarshalToSizedBuffer ¶
func (m *HydratedManifestDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HydratedManifestDetails) ProtoMessage ¶
func (*HydratedManifestDetails) ProtoMessage()
func (*HydratedManifestDetails) Reset ¶
func (m *HydratedManifestDetails) Reset()
func (*HydratedManifestDetails) Size ¶
func (m *HydratedManifestDetails) Size() (n int)
func (*HydratedManifestDetails) String ¶
func (m *HydratedManifestDetails) String() string
func (*HydratedManifestDetails) Unmarshal ¶
func (m *HydratedManifestDetails) Unmarshal(dAtA []byte) error
func (*HydratedManifestDetails) XXX_DiscardUnknown ¶
func (m *HydratedManifestDetails) XXX_DiscardUnknown()
func (*HydratedManifestDetails) XXX_Marshal ¶
func (m *HydratedManifestDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HydratedManifestDetails) XXX_Merge ¶
func (m *HydratedManifestDetails) XXX_Merge(src proto.Message)
func (*HydratedManifestDetails) XXX_Size ¶
func (m *HydratedManifestDetails) XXX_Size() int
func (*HydratedManifestDetails) XXX_Unmarshal ¶
func (m *HydratedManifestDetails) XXX_Unmarshal(b []byte) error
type PathDetails ¶
type PathDetails struct { // Path is the path to write the hydrated manifests to. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Manifests contains the manifests to write to the path. Manifests []*HydratedManifestDetails `protobuf:"bytes,2,rep,name=manifests,proto3" json:"manifests,omitempty"` // Commands contains the commands executed when hydrating the manifests. Commands []string `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PathDetails holds information about hydrated manifests to be written to a particular path in the hydrated manifests commit.
func (*PathDetails) Descriptor ¶
func (*PathDetails) Descriptor() ([]byte, []int)
func (*PathDetails) GetCommands ¶
func (m *PathDetails) GetCommands() []string
func (*PathDetails) GetManifests ¶
func (m *PathDetails) GetManifests() []*HydratedManifestDetails
func (*PathDetails) GetPath ¶
func (m *PathDetails) GetPath() string
func (*PathDetails) Marshal ¶
func (m *PathDetails) Marshal() (dAtA []byte, err error)
func (*PathDetails) MarshalToSizedBuffer ¶
func (m *PathDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PathDetails) ProtoMessage ¶
func (*PathDetails) ProtoMessage()
func (*PathDetails) Reset ¶
func (m *PathDetails) Reset()
func (*PathDetails) Size ¶
func (m *PathDetails) Size() (n int)
func (*PathDetails) String ¶
func (m *PathDetails) String() string
func (*PathDetails) Unmarshal ¶
func (m *PathDetails) Unmarshal(dAtA []byte) error
func (*PathDetails) XXX_DiscardUnknown ¶
func (m *PathDetails) XXX_DiscardUnknown()
func (*PathDetails) XXX_Marshal ¶
func (m *PathDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PathDetails) XXX_Merge ¶
func (m *PathDetails) XXX_Merge(src proto.Message)
func (*PathDetails) XXX_Size ¶
func (m *PathDetails) XXX_Size() int
func (*PathDetails) XXX_Unmarshal ¶
func (m *PathDetails) XXX_Unmarshal(b []byte) error
type UnimplementedCommitServiceServer ¶
type UnimplementedCommitServiceServer struct { }
UnimplementedCommitServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCommitServiceServer) CommitHydratedManifests ¶
func (*UnimplementedCommitServiceServer) CommitHydratedManifests(ctx context.Context, req *CommitHydratedManifestsRequest) (*CommitHydratedManifestsResponse, error)